node-cqrs 1.0.0 → 1.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.0.1-beta.1](https://github.com/snatalenko/node-cqrs/compare/v1.0.0...v1.0.1-beta.1) (2026-03-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Fixes
|
|
5
|
+
|
|
6
|
+
* Use setImmediate in Node.js for nextCycle to avoid setTimeout performance overhead ([4b63706](https://github.com/snatalenko/node-cqrs/commit/4b63706c4271afd85470dff8b956605133863e9d))
|
|
7
|
+
|
|
8
|
+
### Internal Fixes
|
|
9
|
+
|
|
10
|
+
* Fix vulnerability in dev dependency ([610757b](https://github.com/snatalenko/node-cqrs/commit/610757ba24d39939b3827d99e2af2183758225b6))
|
|
11
|
+
|
|
12
|
+
|
|
1
13
|
# [1.0.0](https://github.com/snatalenko/node-cqrs/compare/v0.17.0...v1.0.0) (2026-03-21)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nextCycle = void 0;
|
|
4
|
+
const schedule = typeof setImmediate === 'function' ? setImmediate : (fn) => setTimeout(fn, 0);
|
|
4
5
|
/**
|
|
5
6
|
* @returns Promise that resolves on next event loop cycle
|
|
6
7
|
*/
|
|
7
|
-
const nextCycle = () => new Promise(rs =>
|
|
8
|
+
const nextCycle = () => new Promise(rs => schedule(rs));
|
|
8
9
|
exports.nextCycle = nextCycle;
|
|
9
10
|
//# sourceMappingURL=nextCycle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextCycle.js","sourceRoot":"","sources":["../../../../src/in-memory/utils/nextCycle.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACI,MAAM,SAAS,GAAG,GAAkB,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"nextCycle.js","sourceRoot":"","sources":["../../../../src/in-memory/utils/nextCycle.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,OAAO,YAAY,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAc,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAE3G;;GAEG;AACI,MAAM,SAAS,GAAG,GAAkB,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;AAAjE,QAAA,SAAS,aAAwD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
const schedule = typeof setImmediate === 'function' ? setImmediate : (fn) => setTimeout(fn, 0);
|
|
1
2
|
/**
|
|
2
3
|
* @returns Promise that resolves on next event loop cycle
|
|
3
4
|
*/
|
|
4
|
-
export const nextCycle = () => new Promise(rs =>
|
|
5
|
+
export const nextCycle = () => new Promise(rs => schedule(rs));
|
|
5
6
|
//# sourceMappingURL=nextCycle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextCycle.js","sourceRoot":"","sources":["../../../../src/in-memory/utils/nextCycle.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,GAAkB,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"nextCycle.js","sourceRoot":"","sources":["../../../../src/in-memory/utils/nextCycle.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,OAAO,YAAY,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAc,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAE3G;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,GAAkB,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED