@polyengine/wasi 0.4.0-pre.gebdce7f → 0.4.0

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.
Files changed (2) hide show
  1. package/esm/io.js +5 -1
  2. package/package.json +3 -3
package/esm/io.js CHANGED
@@ -79,7 +79,7 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
79
79
  if (target) Object.defineProperty(target, contextIn.name, descriptor);
80
80
  done = true;
81
81
  };
82
- import { defineBrand, POLLABLE } from "@polyengine/protocol";
82
+ import { defineBrand, defineRealmLocal, POLLABLE } from "@polyengine/protocol";
83
83
  import { suspending, ComponentException } from "@polyengine/runtime/embedder";
84
84
  /** The engine setTimeout ceiling: delays above 2^31-1 ms are clamped to
85
85
  * ~0 (node/Deno warn and fire at 1 ms). `Pollable.timer` sleeps in
@@ -135,6 +135,10 @@ let Pollable = (() => {
135
135
  constructor(ready = () => true, wait = () => Promise.resolve()) {
136
136
  this.#ready = ready;
137
137
  this.#wait = wait;
138
+ // A20 realm-local pill (contracts/embedder-api.md §"Realm boundaries
139
+ // and structured-clone-safe forms"; issue #131): stateful handles fail
140
+ // loud at a raw structuredClone/postMessage instead of husking.
141
+ defineRealmLocal(this);
138
142
  }
139
143
  /**
140
144
  * A pollable that becomes ready at `deadline` (nanoseconds on the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyengine/wasi",
3
- "version": "0.4.0-pre.gebdce7f",
3
+ "version": "0.4.0",
4
4
  "description": "WASI providers for polyengine hosts: the p2 baseline and p3 clocks, one module per semver track.",
5
5
  "homepage": "https://github.com/polymorph-components/polyengine#readme",
6
6
  "repository": {
@@ -91,8 +91,8 @@
91
91
  "access": "public"
92
92
  },
93
93
  "dependencies": {
94
- "@polyengine/protocol": "^0.2.0",
95
- "@polyengine/runtime": "0.4.0-pre.gebdce7f"
94
+ "@polyengine/protocol": "^0.2.1",
95
+ "@polyengine/runtime": "0.4.0"
96
96
  },
97
97
  "_generatedBy": "dnt@0.43.2"
98
98
  }