@onda-lang/binaryen-web 0.5.4 → 0.7.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.
package/README.md CHANGED
@@ -31,7 +31,8 @@ a JSON string, a MessagePack `ArrayBuffer`/typed-array view, or a decoded object
31
31
  for inspection; the browser compiler and test corpus use MessagePack as the production transport.
32
32
 
33
33
  The generated module exports `memory`, `__heap_base`, `onda_init(params_ptr, state_ptr)`, the
34
- 11-argument processor `onda_process`, and one `onda_event_N` function per declared event. These are
34
+ 11-argument processor `onda_process`, and one `onda_event_N` function per declared event. Each
35
+ function returns zero on success or a positive generated execution-failure code. These are
35
36
  the complete wasm32-module profile of the generic
36
37
  [`Onda processor ABI`](../../docs/processor-abi.md), not a Web Audio-specific interface. The host
37
38
  owns allocation in linear memory. Metadata contains resolved target/integration facts,
@@ -53,7 +54,9 @@ The executable backend supports:
53
54
  - input loads, output stores, and immutable constant-data loads
54
55
  - scalar/fixed-array event payload loads and event ABI wrappers
55
56
  - scalar/fixed-array control-output stores in the shared state blob
56
- - interleaved mono/static/dynamic external buffers, including reads, writes, bounds modes, and runtime metadata queries
57
+ - interleaved mono/static/dynamic external buffers, uniformly clamped source access, fixed
58
+ constant-time buffer collections, nullable host pointers with neutral zero/discard storage, and
59
+ runtime metadata queries
57
60
  - checked slice construction plus fixed-array/slice reference windows
58
61
  - address-taken scalar locals legalized through per-function reference scratch storage
59
62
  - SIMD contiguous slice fill with a scalar tail and bulk-memory contiguous slice copy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onda-lang/binaryen-web",
3
- "version": "0.5.4",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "description": "Binaryen backend for versioned Onda MIR in browsers and Node.js",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "verify-mir": "node ./scripts/verify-mir.mjs"
45
45
  },
46
46
  "dependencies": {
47
- "@onda-lang/processor-abi": "0.5.4",
47
+ "@onda-lang/processor-abi": "0.7.0",
48
48
  "binaryen": "130.0.0"
49
49
  },
50
50
  "publishConfig": {
package/src/artifact.d.ts CHANGED
@@ -3,6 +3,8 @@ export {
3
3
  PROCESSOR_ABI_VERSION,
4
4
  PROCESSOR_ARTIFACT_FORMAT,
5
5
  PROCESSOR_ARTIFACT_FORMAT_VERSION,
6
+ PROCESSOR_EXECUTION_OK,
7
+ PROCESSOR_EXECUTION_RUNTIME_SAFETY_FAILURE,
6
8
  PROCESSOR_SNAPSHOT_FORMAT_VERSION,
7
9
  createProcessorArtifactFiles,
8
10
  loadProcessorArtifactFiles,
package/src/constants.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Synchronized from format-versions.json; do not edit this copy directly.
2
- export const SUPPORTED_MIR_SCHEMA_VERSION = 1;
2
+ export const SUPPORTED_MIR_SCHEMA_VERSION = 4;
package/src/index.d.ts CHANGED
@@ -4,6 +4,8 @@ export {
4
4
  PROCESSOR_ABI_VERSION,
5
5
  PROCESSOR_ARTIFACT_FORMAT,
6
6
  PROCESSOR_ARTIFACT_FORMAT_VERSION,
7
+ PROCESSOR_EXECUTION_OK,
8
+ PROCESSOR_EXECUTION_RUNTIME_SAFETY_FAILURE,
7
9
  PROCESSOR_SNAPSHOT_FORMAT_VERSION,
8
10
  createProcessorArtifactFiles,
9
11
  loadProcessorArtifactFiles,