@provablehq/wasm 0.10.2-rc.1 → 0.10.3

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/package.json CHANGED
@@ -1,21 +1,46 @@
1
1
  {
2
2
  "name": "@provablehq/wasm",
3
- "version": "0.10.2-rc.1",
3
+ "version": "0.10.3",
4
4
  "type": "module",
5
5
  "description": "SnarkVM WASM binaries with javascript bindings",
6
6
  "collaborators": [
7
7
  "The Provable Team"
8
8
  ],
9
9
  "license": "GPL-3.0",
10
- "main": "./dist/testnet/index.js",
10
+ "main": "./dist/testnet/index.cjs",
11
11
  "browser": "./dist/testnet/index.js",
12
+ "module": "./dist/testnet/index.js",
12
13
  "types": "./dist/testnet/index.d.ts",
13
14
  "exports": {
14
- ".": "./dist/testnet/index.js",
15
+ ".": {
16
+ "types": {
17
+ "import": "./dist/testnet/index.d.ts",
18
+ "require": "./dist/testnet/index.d.cts"
19
+ },
20
+ "import": "./dist/testnet/index.js",
21
+ "require": "./dist/testnet/index.cjs",
22
+ "default": "./dist/testnet/index.js"
23
+ },
15
24
  "./worker.js": "./dist/testnet/worker.js",
16
- "./testnet.js": "./dist/testnet/index.js",
25
+ "./testnet.js": {
26
+ "types": {
27
+ "import": "./dist/testnet/index.d.ts",
28
+ "require": "./dist/testnet/index.d.cts"
29
+ },
30
+ "import": "./dist/testnet/index.js",
31
+ "require": "./dist/testnet/index.cjs",
32
+ "default": "./dist/testnet/index.js"
33
+ },
17
34
  "./testnet/worker.js": "./dist/testnet/worker.js",
18
- "./mainnet.js": "./dist/mainnet/index.js",
35
+ "./mainnet.js": {
36
+ "types": {
37
+ "import": "./dist/mainnet/index.d.ts",
38
+ "require": "./dist/mainnet/index.d.cts"
39
+ },
40
+ "import": "./dist/mainnet/index.js",
41
+ "require": "./dist/mainnet/index.cjs",
42
+ "default": "./dist/mainnet/index.js"
43
+ },
19
44
  "./mainnet/worker.js": "./dist/mainnet/worker.js"
20
45
  },
21
46
  "files": [
@@ -39,11 +64,14 @@
39
64
  "homepage": "https://github.com/ProvableHQ/sdk#readme",
40
65
  "scripts": {
41
66
  "build": "rimraf dist && node build.js",
42
- "test": "node test.js"
67
+ "test": "node test.js",
68
+ "_comment:test:attw": "cjs-resolves-to-esm is ignored because the worker subpath (./worker.js, ./testnet/worker.js, ./mainnet/worker.js) is ESM-only by design — the Node polyfill loads it via `eval` + dynamic import() from a CJS parent, not synchronous require().",
69
+ "test:attw": "yarn pack --filename /tmp/provablehq-wasm-attw.tgz && attw /tmp/provablehq-wasm-attw.tgz --profile=node16 --ignore-rules=cjs-resolves-to-esm"
43
70
  },
44
71
  "devDependencies": {
72
+ "@arethetypeswrong/cli": "^0.18.2",
45
73
  "@rollup/plugin-virtual": "^3.0.2",
46
- "@wasm-tool/rollup-plugin-rust": "^3.1.4",
74
+ "@wasm-tool/rollup-plugin-rust": "^3.1.5",
47
75
  "binaryen": "^120.0.0",
48
76
  "rimraf": "^6.0.1",
49
77
  "rollup": "^4.59.0"