v2.1.0
What's New
Introduces synchronous method versions.
-
Sync methods use Atomics.wait, which may not be allowed on the main thread in a browser environment. In these cases, their existing async versions (e.g.
lockSync
->lock
) should be used. -
Interfaces:
- SyncBasicLockable
- SyncLockable
- SyncTimedLockable
-
Classes:
Mutex
now extendsSyncLockable
.RecursiveMutex
now extendsSyncLockable
.RecursiveTimedMutex
now extendsSyncTimedLockable
.TimedMutex
now extendsSyncTimedLockable
.UniqueLock
now extendsSyncTimedLockable
.
-
Utilities:
- lockGuardSync
Misc
-
Add support for JSR:
jsr add @rojas/semafy
-
Update dev dependencies:
- npm: bump typedoc-plugin-markdown from 4.0.1 to 4.0.2 by @dependabot in #19
- npm: bump esbuild from 0.21.2 to 0.21.3 by @dependabot in #18
- npm: bump typescript-eslint from 7.9.0 to 7.10.0 by @dependabot in #17
- npm: bump rollup-plugin-dts from 6.1.0 to 6.1.1 by @dependabot in #16
- npm: bump typedoc-plugin-markdown from 4.0.2 to 4.0.3 by @dependabot in #24
- npm: bump rollup from 4.17.2 to 4.18.0 by @dependabot in #23
- npm: bump esbuild from 0.21.3 to 0.21.4 by @dependabot in #22
- npm: bump ts-jest from 29.1.2 to 29.1.3 by @dependabot in #21
- npm: bump typescript-eslint from 7.10.0 to 7.11.0 by @dependabot in #20
- npm: bump prettier from 3.2.5 to 3.3.0 by @dependabot in #28
- npm: bump typescript-eslint from 7.11.0 to 7.12.0 by @dependabot in #27
- npm: bump ts-jest from 29.1.3 to 29.1.4 by @dependabot in #26
- npm: bump lint-staged from 15.2.2 to 15.2.5 by @dependabot in #25
- npm: bump tslib from 2.6.2 to 2.6.3 by @dependabot in #32
- npm: bump typescript-eslint from 7.12.0 to 7.13.0 by @dependabot in #31
- npm: bump esbuild from 0.21.4 to 0.21.5 by @dependabot in #30
- npm: bump prettier from 3.3.0 to 3.3.2 by @dependabot in #33
New Contributors
- @dependabot made their first contribution in #19
Full Changelog: v2.0.7...v2.1.0