@atolljs/core 0.1.8 → 0.1.9

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/dist/index23.js CHANGED
@@ -63,6 +63,6 @@ function f() {
63
63
  };
64
64
  }
65
65
  }
66
- f();
66
+ queueMicrotask(f);
67
67
  //#endregion
68
68
  export { f as installWorkerListener };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolljs/core",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Typed shared-memory worker pools — defineWorker/connectWorker, SharedArrayBuffer contracts, cross-thread reactivity",
5
5
  "homepage": "https://jwhenry3.github.io/atolljs/consumer/quickstart/",
6
6
  "type": "module",
@@ -47,8 +47,8 @@
47
47
  "@angular/core": "^22.2.0",
48
48
  "@angular/platform-browser": "^22.2.0",
49
49
  "@angular/platform-browser-dynamic": "^22.2.0",
50
- "@nestjs/common": "^11.2.6",
51
- "@nestjs/core": "^11.2.6",
50
+ "@nestjs/common": "^12.1.2",
51
+ "@nestjs/core": "^12.1.2",
52
52
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
53
53
  "@types/react": "^19.3.0",
54
54
  "@types/react-dom": "^19.3.0",
@@ -95,4 +95,9 @@ export function installWorkerListener(): void {
95
95
  };
96
96
  }
97
97
 
98
- installWorkerListener();
98
+ // Deferred to a microtask so the whole worker entry graph evaluates first:
99
+ // bundlers that flatten modules into shared chunks (rolldown/rollup) cannot
100
+ // guarantee this module runs after a `self`-binding shim, and deferring
101
+ // still beats the first inbound port message, which arrives on a later
102
+ // macrotask.
103
+ queueMicrotask(installWorkerListener);