@calimero-network/mero-js 23.8.1 → 23.9.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 +95 -0
- package/dist/account/account-admin.d.ts +82 -0
- package/dist/account/account-admin.js +360 -0
- package/dist/account/application-id.d.ts +48 -0
- package/dist/account/application-id.js +83 -0
- package/dist/account/bootstrap-from-invitation.d.ts +117 -0
- package/dist/account/bootstrap-from-invitation.js +86 -0
- package/dist/account/create-context.d.ts +105 -0
- package/dist/account/create-context.js +237 -0
- package/dist/account/govern.d.ts +24 -0
- package/dist/account/govern.js +50 -0
- package/dist/account/index.d.ts +18 -0
- package/dist/account/index.js +10 -0
- package/dist/account/join-as-account.d.ts +23 -0
- package/dist/account/join-as-account.js +34 -0
- package/dist/account/join-with-node.d.ts +124 -0
- package/dist/account/join-with-node.js +165 -0
- package/dist/account/node-admin.d.ts +20 -0
- package/dist/account/node-admin.js +33 -0
- package/dist/account/relay-from-invitation.d.ts +157 -0
- package/dist/account/relay-from-invitation.js +216 -0
- package/dist/account/session.d.ts +214 -0
- package/dist/account/session.js +789 -0
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +4302 -2970
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/index.mjs +4292 -2970
- package/dist/index.mjs.map +4 -4
- package/dist/namespace-op/namespace-op.d.ts +6 -1
- package/dist/namespace-op/namespace-op.js +6 -1
- package/package.json +6 -3
|
@@ -54,8 +54,13 @@ import { type Signer } from '../signer/signer.js';
|
|
|
54
54
|
* at 20, so against rc.75 every namespace op an account signs with them (a
|
|
55
55
|
* join, a create, any governance op) is refused "schema version mismatch:
|
|
56
56
|
* expected 21, got 20".
|
|
57
|
+
*
|
|
58
|
+
* 22: `GroupOp::SharedWritersRotated` is appended, a `SharedStorage` cell's
|
|
59
|
+
* writer-set step (calimero-network/core#4263), and a capability revoke voids
|
|
60
|
+
* the member's concurrent ops that needed a removed bit
|
|
61
|
+
* (calimero-network/core#4453). No layout this module signs changes.
|
|
57
62
|
*/
|
|
58
|
-
export declare const SIGNED_NAMESPACE_OP_SCHEMA_VERSION =
|
|
63
|
+
export declare const SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 22;
|
|
59
64
|
/**
|
|
60
65
|
* Borsh-encode a `SignedGroupOpenInvitation`.
|
|
61
66
|
*
|
|
@@ -40,8 +40,13 @@ import { resolveSigner } from '../signer/signer.js';
|
|
|
40
40
|
* at 20, so against rc.75 every namespace op an account signs with them (a
|
|
41
41
|
* join, a create, any governance op) is refused "schema version mismatch:
|
|
42
42
|
* expected 21, got 20".
|
|
43
|
+
*
|
|
44
|
+
* 22: `GroupOp::SharedWritersRotated` is appended, a `SharedStorage` cell's
|
|
45
|
+
* writer-set step (calimero-network/core#4263), and a capability revoke voids
|
|
46
|
+
* the member's concurrent ops that needed a removed bit
|
|
47
|
+
* (calimero-network/core#4453). No layout this module signs changes.
|
|
43
48
|
*/
|
|
44
|
-
export const SIGNED_NAMESPACE_OP_SCHEMA_VERSION =
|
|
49
|
+
export const SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 22;
|
|
45
50
|
/** Domain prefixed to the signable bytes; core's `NAMESPACE_GOVERNANCE_SIGN_DOMAIN`. */
|
|
46
51
|
const NAMESPACE_SIGN_DOMAIN = new TextEncoder().encode('calimero.namespace.v1');
|
|
47
52
|
/** `NamespaceOp::Root` is the first variant. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calimero-network/mero-js",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.9.0",
|
|
4
4
|
"description": "Pure JavaScript SDK for Calimero",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
"module": "./dist/index.mjs",
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"sideEffects": false,
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@phala/dcap-qvl": "0.5.3"
|
|
21
|
+
},
|
|
19
22
|
"devDependencies": {
|
|
20
|
-
"@phala/dcap-qvl": "0.5.3",
|
|
21
23
|
"@semantic-release/changelog": "^6.0.3",
|
|
22
24
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
23
25
|
"@semantic-release/exec": "^7.0.0",
|
|
@@ -31,13 +33,14 @@
|
|
|
31
33
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
32
34
|
"esbuild": "^0.28.1",
|
|
33
35
|
"eslint": "^8.57.0",
|
|
36
|
+
"jsdom": "^29.1.1",
|
|
34
37
|
"rimraf": "^3.0.0",
|
|
35
38
|
"semantic-release": "^24.2.9",
|
|
36
39
|
"typescript": "^4.9.5",
|
|
37
40
|
"vitest": "^3.2.6"
|
|
38
41
|
},
|
|
39
42
|
"scripts": {
|
|
40
|
-
"build": "tsc && esbuild src/index.ts --bundle --platform=neutral --target=es2020 --format=esm --outfile=dist/index.mjs --sourcemap && esbuild src/index.ts --bundle --platform=neutral --target=es2020 --format=cjs --outfile=dist/index.cjs --sourcemap && esbuild src/index.ts --bundle --platform=browser --target=es2020 --format=esm --outfile=dist/index.browser.mjs --sourcemap --minify",
|
|
43
|
+
"build": "tsc && esbuild src/index.ts --bundle --platform=neutral --external:@phala/dcap-qvl --target=es2020 --format=esm --outfile=dist/index.mjs --sourcemap && esbuild src/index.ts --bundle --platform=neutral --external:@phala/dcap-qvl --target=es2020 --format=cjs --outfile=dist/index.cjs --sourcemap && esbuild src/index.ts --bundle --platform=browser --external:@phala/dcap-qvl --target=es2020 --format=esm --outfile=dist/index.browser.mjs --sourcemap --minify",
|
|
41
44
|
"test": "vitest run --passWithNoTests",
|
|
42
45
|
"test:unit": "vitest run --config vitest.config.ts",
|
|
43
46
|
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|