-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating js-db project structure and integrating 4.0.0 of @matrixai/async-locks
#62
Conversation
Currently using
It mostly applies to the lock system, so that makes sense. Most likely due to changes to We may also proceed to fix this by replacing the |
This will be important before we propagate the 4.0.0 async-locks to everywhere that uses it. I've already done it pre-emptively for async-init though @tegefaulkes. |
Ok turns out the problem was just that we no longer just take Which kind of reminds me, I believe js-contexts still needs to have that brought in even if we haven't yet integrated the |
daf7f4a
to
bea669d
Compare
…ng `ContextTimedInput`
bea669d
to
7717f9f
Compare
Cool, so those problems are fixed for now. But I need to also update to just using the |
15d1cf9
to
950bfad
Compare
@matrixai/async-locks
@matrixai/async-locks
There is now a Furthermore, the API is the same, but any timeouts must be done with a context. So:
All work. Note that the last one, applies the |
Description
The project structure of PK projects have been changing bringing in things like swc for testing, updates to the eslint structure, updates to library versions and switching to node 18.15. The biggest change will be the
@matrixai/async-locks
due to its replacement ofasync-mutex
with its own semaphore and introducingMonitor
. TheMonitor
system can replace some of what we are already doing inside theDBTransaction
and in fact was based on it.Issues Fixed
Tasks
DBTransaction
with the new 4.0.0 of@matrixai/async-locks
Monitor
inside theDBTransaction
Final checklist