@miden-sdk/miden-sdk 0.14.5 → 0.14.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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -18
  3. package/dist/mt/Cargo-DKB2aRX-.js +25826 -0
  4. package/dist/mt/Cargo-DKB2aRX-.js.map +1 -0
  5. package/dist/{api-types.d.ts → mt/api-types.d.ts} +18 -3
  6. package/dist/mt/assets/miden_client_web.wasm +0 -0
  7. package/dist/mt/crates/miden_client_web.d.ts +4726 -0
  8. package/dist/{docs-entry.d.ts → mt/docs-entry.d.ts} +2 -2
  9. package/dist/mt/eager.js +35 -0
  10. package/dist/mt/eager.js.map +1 -0
  11. package/dist/{index.d.ts → mt/index.d.ts} +9 -7
  12. package/dist/mt/index.js +3371 -0
  13. package/dist/mt/index.js.map +1 -0
  14. package/dist/{wasm.js → mt/wasm.js} +1 -1
  15. package/dist/mt/wasm.js.map +1 -0
  16. package/dist/mt/workerHelpers.js +28 -0
  17. package/dist/mt/workers/Cargo-DKB2aRX--C6T4l3AF.js +25827 -0
  18. package/dist/mt/workers/Cargo-DKB2aRX--C6T4l3AF.js.map +1 -0
  19. package/dist/mt/workers/assets/miden_client_web.wasm +0 -0
  20. package/dist/mt/workers/web-client-methods-worker.js +26560 -0
  21. package/dist/mt/workers/web-client-methods-worker.js.map +1 -0
  22. package/dist/{workers → mt/workers}/web-client-methods-worker.module.js +17 -1
  23. package/dist/mt/workers/web-client-methods-worker.module.js.map +1 -0
  24. package/dist/mt/workers/workerHelpers.js +28 -0
  25. package/dist/{Cargo-M3382VZc.js → st/Cargo-jOTNoFyS.js} +6714 -5926
  26. package/dist/st/Cargo-jOTNoFyS.js.map +1 -0
  27. package/dist/st/api-types.d.ts +1051 -0
  28. package/dist/{workers → st}/assets/miden_client_web.wasm +0 -0
  29. package/dist/{crates → st/crates}/miden_client_web.d.ts +31 -0
  30. package/dist/st/docs-entry.d.ts +35 -0
  31. package/dist/{eager.js → st/eager.js} +1 -1
  32. package/dist/st/eager.js.map +1 -0
  33. package/dist/st/index.d.ts +89 -0
  34. package/dist/{index.js → st/index.js} +126 -13
  35. package/dist/st/index.js.map +1 -0
  36. package/dist/st/wasm.js +23 -0
  37. package/dist/st/wasm.js.map +1 -0
  38. package/dist/{workers/Cargo-M3382VZc-Dfw4tXwh.js → st/workers/Cargo-jOTNoFyS-DRTcF6wf.js} +6714 -5926
  39. package/dist/st/workers/Cargo-jOTNoFyS-DRTcF6wf.js.map +1 -0
  40. package/dist/{assets → st/workers/assets}/miden_client_web.wasm +0 -0
  41. package/dist/{workers → st/workers}/web-client-methods-worker.js +6731 -5926
  42. package/dist/st/workers/web-client-methods-worker.js.map +1 -0
  43. package/dist/st/workers/web-client-methods-worker.module.js +571 -0
  44. package/dist/st/workers/web-client-methods-worker.module.js.map +1 -0
  45. package/lazy/package.json +4 -0
  46. package/mt/lazy/package.json +4 -0
  47. package/mt/package.json +4 -0
  48. package/package.json +66 -44
  49. package/dist/Cargo-M3382VZc.js.map +0 -1
  50. package/dist/eager.js.map +0 -1
  51. package/dist/index.js.map +0 -1
  52. package/dist/wasm.js.map +0 -1
  53. package/dist/workers/Cargo-M3382VZc-Dfw4tXwh.js.map +0 -1
  54. package/dist/workers/web-client-methods-worker.js.map +0 -1
  55. package/dist/workers/web-client-methods-worker.module.js.map +0 -1
package/package.json CHANGED
@@ -1,79 +1,101 @@
1
1
  {
2
2
  "name": "@miden-sdk/miden-sdk",
3
- "version": "0.14.5",
3
+ "version": "0.14.9",
4
4
  "description": "Miden Wasm SDK",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/0xMiden/web-sdk",
9
+ "directory": "crates/web-client"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/0xMiden/web-sdk/issues"
13
+ },
5
14
  "collaborators": [
6
15
  "Miden"
7
16
  ],
8
17
  "type": "module",
9
- "main": "./dist/eager.js",
10
- "browser": "./dist/eager.js",
11
- "types": "./dist/index.d.ts",
18
+ "main": "./dist/st/eager.js",
19
+ "browser": "./dist/st/eager.js",
20
+ "types": "./dist/st/index.d.ts",
12
21
  "exports": {
13
22
  ".": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/eager.js"
23
+ "import": {
24
+ "types": "./dist/st/index.d.ts",
25
+ "default": "./dist/st/eager.js"
26
+ }
16
27
  },
17
28
  "./lazy": {
18
- "types": "./dist/index.d.ts",
19
- "default": "./dist/index.js"
20
- }
29
+ "import": {
30
+ "types": "./dist/st/index.d.ts",
31
+ "default": "./dist/st/index.js"
32
+ }
33
+ },
34
+ "./mt": {
35
+ "import": {
36
+ "types": "./dist/mt/index.d.ts",
37
+ "default": "./dist/mt/eager.js"
38
+ }
39
+ },
40
+ "./mt/lazy": {
41
+ "import": {
42
+ "types": "./dist/mt/index.d.ts",
43
+ "default": "./dist/mt/index.js"
44
+ }
45
+ },
46
+ "./package.json": "./package.json"
21
47
  },
22
48
  "files": [
23
49
  "dist",
50
+ "lazy",
51
+ "mt",
24
52
  "../LICENSE.md"
25
53
  ],
26
- "scripts": {
27
- "build-rust-client-js": "cd ../idxdb-store/src/ && yarn && yarn build",
28
- "build": "rimraf dist && npm run build-rust-client-js && cross-env RUSTFLAGS=\"--cfg getrandom_backend=\\\"wasm_js\\\"\" rollup -c rollup.config.js && cpr js/types dist && node clean.js",
29
- "build-dev": "npm install && MIDEN_WEB_DEV=true npm run build",
30
- "check:wasm-types": "node ./scripts/check-bindgen-types.js",
31
- "check:method-classification": "node ./scripts/check-method-classification.js",
32
- "check:standalone-types": "node ./scripts/check-standalone-types.js",
33
- "test": "yarn playwright install --with-deps && yarn playwright test",
34
- "test:ci": "yarn playwright install --with-deps chromium && yarn playwright test",
35
- "test:ci:remote_prover": "yarn playwright install --with-deps && cross-env TEST_MIDEN_PROVER_URL=localhost yarn playwright test -g 'with remote prover'",
36
- "test:devnet": "cross-env TEST_MIDEN_NETWORK=devnet yarn test",
37
- "test:testnet": "cross-env TEST_MIDEN_NETWORK=testnet yarn test",
38
- "test:remote_prover": "yarn install && yarn playwright install --with-deps && cross-env MIDEN_WEB_DEV=true yarn run build && cross-env TEST_MIDEN_PROVER_URL=localhost yarn playwright test -g 'with remote prover' ",
39
- "test:remote_prover:devnet": "cross-env TEST_MIDEN_NETWORK=devnet TEST_MIDEN_PROVER_URL=devnet yarn run test:remote_prover",
40
- "test:remote_prover:testnet": "cross-env TEST_MIDEN_NETWORK=testnet TEST_MIDEN_PROVER_URL=testnet yarn run test:remote_prover",
41
- "test:clean": "yarn install && yarn playwright install --with-deps && MIDEN_WEB_DEV=true yarn run build && yarn playwright test ",
42
- "test:clean:opt": "yarn install && yarn playwright install --with-deps && yarn run build && yarn playwright test ",
43
- "typedoc": "typedoc"
44
- },
45
54
  "devDependencies": {
46
55
  "@playwright/test": "^1.55.0",
47
56
  "@rollup/plugin-commonjs": "^25.0.7",
57
+ "@vitest/coverage-v8": "^3.0.0",
48
58
  "@rollup/plugin-node-resolve": "^15.2.3",
49
59
  "@types/node": "^24.9.2",
50
60
  "@wasm-tool/rollup-plugin-rust": "^3.0.3",
51
61
  "binaryen": "^129.0.0",
52
- "chai": "^5.1.1",
53
- "cpr": "^3.0.1",
54
62
  "cross-env": "^7.0.3",
55
- "esm": "^3.2.25",
56
- "http-server": "^14.1.1",
57
- "mocha": "^10.7.3",
58
- "puppeteer": "^23.1.0",
59
63
  "rimraf": "^6.0.1",
60
64
  "rollup": "^4.59.0",
61
65
  "rollup-plugin-copy": "^3.5.0",
62
- "ts-node": "^10.9.2",
63
66
  "typedoc": "^0.28.1",
64
67
  "typedoc-plugin-markdown": "^4.8.1",
65
- "typescript": "^5.5.4"
68
+ "typescript": "^5.5.4",
69
+ "vitest": "^3.0.0"
66
70
  },
67
71
  "dependencies": {
68
- "@rollup/plugin-typescript": "^12.3.0",
69
72
  "dexie": "^4.0.1",
70
73
  "glob": "^11.0.0"
71
74
  },
72
- "resolutions": {
73
- "rollup": ">=4.59.0",
74
- "basic-ftp": ">=5.2.0",
75
- "tar": ">=7.5.8",
76
- "qs": ">=6.14.1",
77
- "minimatch": ">=10.2.1"
75
+ "scripts": {
76
+ "build-rust-client-js": "pnpm --filter web_store run build",
77
+ "build": "rimraf dist && pnpm run build-rust-client-js && pnpm run build-st && pnpm run build-mt && pnpm run build-types && node ./scripts/post-build.js",
78
+ "build-st": "cross-env MIDEN_BUILD_VARIANT=st rollup -c rollup.config.js",
79
+ "build-mt": "cross-env MIDEN_BUILD_VARIANT=mt rollup -c rollup.config.js",
80
+ "build-types": "node ./scripts/build-types.js",
81
+ "build-dev": "pnpm install && cross-env MIDEN_WEB_DEV=true pnpm run build",
82
+ "check:wasm-types": "node ./scripts/check-bindgen-types.js",
83
+ "check:method-classification": "node ./scripts/check-method-classification.js",
84
+ "check:standalone-types": "node ./scripts/check-standalone-types.js",
85
+ "test:install": "pnpm exec playwright install --with-deps",
86
+ "test:install:ci": "pnpm exec playwright install --with-deps chromium",
87
+ "test": "pnpm exec playwright test",
88
+ "test:ci": "pnpm exec playwright test",
89
+ "test:ci:remote_prover": "cross-env TEST_MIDEN_PROVER_URL=localhost pnpm exec playwright test --project=chromium -g 'with remote prover'",
90
+ "test:devnet": "cross-env TEST_MIDEN_NETWORK=devnet pnpm exec playwright test",
91
+ "test:testnet": "cross-env TEST_MIDEN_NETWORK=testnet pnpm exec playwright test",
92
+ "test:remote_prover": "cross-env TEST_MIDEN_PROVER_URL=localhost pnpm exec playwright test -g 'with remote prover'",
93
+ "test:remote_prover:devnet": "cross-env TEST_MIDEN_NETWORK=devnet TEST_MIDEN_PROVER_URL=devnet pnpm exec playwright test -g 'with remote prover'",
94
+ "test:remote_prover:testnet": "cross-env TEST_MIDEN_NETWORK=testnet TEST_MIDEN_PROVER_URL=testnet pnpm exec playwright test -g 'with remote prover'",
95
+ "test:clean": "pnpm exec playwright test",
96
+ "test:clean:opt": "pnpm exec playwright test",
97
+ "test:unit": "vitest run",
98
+ "test:coverage": "vitest run --coverage",
99
+ "typedoc": "typedoc"
78
100
  }
79
- }
101
+ }