diff --git a/packages/client/package.json b/packages/client/package.json index 28695cf4..fbaac3e7 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,7 +1,7 @@ { "name": "@ucanto/client", "description": "UCAN RPC Client", - "version": "3.0.4", + "version": "3.0.5", "keywords": [ "UCAN", "RPC", @@ -29,13 +29,13 @@ "build": "tsc --build" }, "dependencies": { - "@ucanto/interface": "^4.0.0", + "@ucanto/interface": "^3.0.1", "multiformats": "^10.0.2" }, "devDependencies": { "@types/chai": "^4.3.3", "@types/mocha": "^9.1.0", - "@ucanto/principal": "^4.0.1", + "@ucanto/principal": "^3.0.1", "@ucanto/core": "^3.0.4", "@ucanto/transport": "^3.0.4", "@web-std/fetch": "^4.1.0", diff --git a/packages/core/package.json b/packages/core/package.json index 21609419..04ac1201 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@ucanto/core", "description": "ucanto core", - "version": "3.0.4", + "version": "3.0.5", "keywords": [ "UCAN", "RPC", @@ -32,13 +32,13 @@ "@ipld/car": "^5.0.0", "@ipld/dag-cbor": "^8.0.0", "@ipld/dag-ucan": "^2.0.0", - "@ucanto/interface": "^4.0.0", + "@ucanto/interface": "^3.0.1", "multiformats": "^10.0.2" }, "devDependencies": { "@types/chai": "^4.3.3", "@types/mocha": "^9.1.0", - "@ucanto/principal": "^4.0.1", + "@ucanto/principal": "^3.0.1", "c8": "^7.11.0", "chai": "^4.3.6", "mocha": "^10.1.0", diff --git a/packages/server/package.json b/packages/server/package.json index 9d802d6a..82625282 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,7 +1,7 @@ { "name": "@ucanto/server", "description": "UCAN RPC Server", - "version": "3.0.7", + "version": "3.0.8", "types": "./dist/src/lib.d.ts", "main": "./src/lib.js", "keywords": [ @@ -29,14 +29,14 @@ }, "dependencies": { "@ucanto/core": "^3.0.4", - "@ucanto/interface": "^4.0.0", + "@ucanto/interface": "^3.0.1", "@ucanto/validator": "^3.0.6" }, "devDependencies": { "@types/chai": "^4.3.3", "@types/chai-subset": "^1.3.3", "@types/mocha": "^9.1.0", - "@ucanto/principal": "^4.0.1", + "@ucanto/principal": "^3.0.1", "@ucanto/client": "^3.0.4", "@ucanto/transport": "^3.0.4", "@web-std/fetch": "^4.1.0", diff --git a/packages/server/test/server.spec.js b/packages/server/test/server.spec.js index b2bd53cb..d734c275 100644 --- a/packages/server/test/server.spec.js +++ b/packages/server/test/server.spec.js @@ -272,36 +272,3 @@ test('execution error', async () => { }, }) }) - -test('did:web server', async () => { - const car = await CAR.codec.write({ - roots: [await CBOR.codec.write({ hello: 'world ' })], - }) - - const server = Server.create({ - service: Service.create(), - decoder: CAR, - encoder: CBOR, - id: w3.withDID('did:web:web3.storage'), - }) - - const connection = Client.connect({ - id: server.id, - encoder: CAR, - decoder: CBOR, - channel: server, - }) - - const identify = Client.invoke({ - issuer: alice, - audience: server.id, - capability: { - can: 'access/identify', - with: 'did:email:alice@mail.com', - }, - }) - - const register = await identify.execute(connection) - - assert.deepEqual(register, null) -}) diff --git a/packages/transport/package.json b/packages/transport/package.json index f2c679c3..2be25c4c 100644 --- a/packages/transport/package.json +++ b/packages/transport/package.json @@ -32,13 +32,13 @@ "@ipld/car": "^5.0.0", "@ipld/dag-cbor": "^8.0.0", "@ucanto/core": "^3.0.4", - "@ucanto/interface": "^4.0.0", + "@ucanto/interface": "^3.0.1", "multiformats": "^10.0.2" }, "devDependencies": { "@types/chai": "^4.3.3", "@types/mocha": "^9.1.0", - "@ucanto/principal": "^4.0.1", + "@ucanto/principal": "^3.0.1", "@web-std/fetch": "^4.1.0", "c8": "^7.11.0", "chai": "^4.3.6", diff --git a/packages/validator/package.json b/packages/validator/package.json index 141d7d31..ba97df03 100644 --- a/packages/validator/package.json +++ b/packages/validator/package.json @@ -1,7 +1,7 @@ { "name": "@ucanto/validator", "description": "UCAN RPC validators", - "version": "3.0.6", + "version": "3.0.7", "keywords": [ "UCAN", "ed25519", @@ -30,7 +30,7 @@ "@ipld/car": "^5.0.0", "@ipld/dag-cbor": "^8.0.0", "@ucanto/core": "^3.0.4", - "@ucanto/interface": "^4.0.0", + "@ucanto/interface": "^3.0.1", "multiformats": "^10.0.2" }, "devDependencies": { @@ -38,7 +38,7 @@ "@types/chai-subset": "^1.3.3", "@types/mocha": "^9.1.0", "@ucanto/client": "^3.0.4", - "@ucanto/principal": "^4.0.1", + "@ucanto/principal": "^3.0.1", "c8": "^7.11.0", "chai": "^4.3.6", "chai-subset": "^1.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85ef4748..07d9aa14 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,8 +20,8 @@ importers: '@types/chai': ^4.3.3 '@types/mocha': ^9.1.0 '@ucanto/core': ^3.0.4 - '@ucanto/interface': ^4.0.0 - '@ucanto/principal': ^4.0.1 + '@ucanto/interface': ^3.0.1 + '@ucanto/principal': ^3.0.1 '@ucanto/transport': ^3.0.4 '@web-std/fetch': ^4.1.0 '@web-std/file': ^3.0.2 @@ -33,13 +33,13 @@ importers: playwright-test: ^8.1.1 typescript: ^4.8.4 dependencies: - '@ucanto/interface': link:../interface + '@ucanto/interface': 3.0.1 multiformats: 10.0.2 devDependencies: '@types/chai': 4.3.3 '@types/mocha': 9.1.1 '@ucanto/core': link:../core - '@ucanto/principal': link:../principal + '@ucanto/principal': 3.0.1 '@ucanto/transport': link:../transport '@web-std/fetch': 4.1.0 '@web-std/file': 3.0.2 @@ -57,8 +57,8 @@ importers: '@ipld/dag-ucan': ^2.0.0 '@types/chai': ^4.3.3 '@types/mocha': ^9.1.0 - '@ucanto/interface': ^4.0.0 - '@ucanto/principal': ^4.0.1 + '@ucanto/interface': ^3.0.1 + '@ucanto/principal': ^3.0.1 c8: ^7.11.0 chai: ^4.3.6 mocha: ^10.1.0 @@ -70,12 +70,12 @@ importers: '@ipld/car': 5.0.0 '@ipld/dag-cbor': 8.0.0 '@ipld/dag-ucan': 2.0.0 - '@ucanto/interface': link:../interface + '@ucanto/interface': 3.0.1 multiformats: 10.0.2 devDependencies: '@types/chai': 4.3.3 '@types/mocha': 9.1.1 - '@ucanto/principal': link:../principal + '@ucanto/principal': 3.0.1 c8: 7.12.0 chai: 4.3.6 mocha: 10.1.0 @@ -132,8 +132,8 @@ importers: '@types/mocha': ^9.1.0 '@ucanto/client': ^3.0.4 '@ucanto/core': ^3.0.4 - '@ucanto/interface': ^4.0.0 - '@ucanto/principal': ^4.0.1 + '@ucanto/interface': ^3.0.1 + '@ucanto/principal': ^3.0.1 '@ucanto/transport': ^3.0.4 '@ucanto/validator': ^3.0.6 '@web-std/fetch': ^4.1.0 @@ -148,14 +148,14 @@ importers: typescript: ^4.8.4 dependencies: '@ucanto/core': link:../core - '@ucanto/interface': link:../interface + '@ucanto/interface': 3.0.1 '@ucanto/validator': link:../validator devDependencies: '@types/chai': 4.3.3 '@types/chai-subset': 1.3.3 '@types/mocha': 9.1.1 '@ucanto/client': link:../client - '@ucanto/principal': link:../principal + '@ucanto/principal': 3.0.1 '@ucanto/transport': link:../transport '@web-std/fetch': 4.1.0 '@web-std/file': 3.0.2 @@ -175,8 +175,8 @@ importers: '@types/chai': ^4.3.3 '@types/mocha': ^9.1.0 '@ucanto/core': ^3.0.4 - '@ucanto/interface': ^4.0.0 - '@ucanto/principal': ^4.0.1 + '@ucanto/interface': ^3.0.1 + '@ucanto/principal': ^3.0.1 '@web-std/fetch': ^4.1.0 c8: ^7.11.0 chai: ^4.3.6 @@ -189,12 +189,12 @@ importers: '@ipld/car': 5.0.0 '@ipld/dag-cbor': 8.0.0 '@ucanto/core': link:../core - '@ucanto/interface': link:../interface + '@ucanto/interface': 3.0.1 multiformats: 10.0.2 devDependencies: '@types/chai': 4.3.3 '@types/mocha': 9.1.1 - '@ucanto/principal': link:../principal + '@ucanto/principal': 3.0.1 '@web-std/fetch': 4.1.0 c8: 7.12.0 chai: 4.3.6 @@ -212,8 +212,8 @@ importers: '@types/mocha': ^9.1.0 '@ucanto/client': ^3.0.4 '@ucanto/core': ^3.0.4 - '@ucanto/interface': ^4.0.0 - '@ucanto/principal': ^4.0.1 + '@ucanto/interface': ^3.0.1 + '@ucanto/principal': ^3.0.1 c8: ^7.11.0 chai: ^4.3.6 chai-subset: ^1.6.0 @@ -226,14 +226,14 @@ importers: '@ipld/car': 5.0.0 '@ipld/dag-cbor': 8.0.0 '@ucanto/core': link:../core - '@ucanto/interface': link:../interface + '@ucanto/interface': 3.0.1 multiformats: 10.0.2 devDependencies: '@types/chai': 4.3.3 '@types/chai-subset': 1.3.3 '@types/mocha': 9.1.1 '@ucanto/client': link:../client - '@ucanto/principal': link:../principal + '@ucanto/principal': 3.0.1 c8: 7.12.0 chai: 4.3.6 chai-subset: 1.6.0 @@ -463,7 +463,6 @@ packages: dependencies: cborg: 1.9.5 multiformats: 10.0.2 - dev: false /@ipld/dag-cbor/8.0.0: resolution: {integrity: sha512-VfedC21yAD/ZIahcrHTeMcc17kEVRlCmHQl0JY9/Rwbd102v0QcuXtBN8KGH8alNO82S89+H6MM/hxP85P4Veg==} @@ -478,7 +477,6 @@ packages: dependencies: cborg: 1.9.5 multiformats: 10.0.2 - dev: false /@ipld/dag-ucan/2.0.0: resolution: {integrity: sha512-Fep3MDup7nwistsRAt8fvcgY4QzUzp17atgfMQ9771DnCM1psbz3LITBBbKhhPphIQTxrscZlbK0A38D41/HiA==} @@ -486,7 +484,6 @@ packages: '@ipld/dag-cbor': 7.0.3 '@ipld/dag-json': 8.0.11 multiformats: 10.0.2 - dev: false /@istanbuljs/load-nyc-config/1.1.0: resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} @@ -544,7 +541,6 @@ packages: /@noble/ed25519/1.7.1: resolution: {integrity: sha512-Rk4SkJFaXZiznFyC/t77Q0NKS4FL7TLJJsVG2V2oiEq3kJVeTdxysEe/yRWSpnWMe808XRDJ+VFh5pt/FN5plw==} - dev: false /@nodelib/fs.scandir/2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -593,6 +589,22 @@ packages: resolution: {integrity: sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==} dev: true + /@ucanto/interface/3.0.1: + resolution: {integrity: sha512-1UlyLMjJwgzAmhlqu/V1gz0xrE9MUiI3gdzxOJbIXwrS7zAWsbtUZqIS/SPpr1+PYnNO8PHSGyGekb+N0dqtWQ==} + dependencies: + '@ipld/dag-ucan': 2.0.0 + multiformats: 10.0.2 + + /@ucanto/principal/3.0.1: + resolution: {integrity: sha512-0U0EF2ddfR55LKKc7FkzTkH8OFvjZvEeRqMkyV5FyeSsFEF7lXhgEXZrNgggK2zlriXjYC9VVCpPhsGb4cI72g==} + dependencies: + '@ipld/dag-ucan': 2.0.0 + '@noble/ed25519': 1.7.1 + '@ucanto/interface': 3.0.1 + multiformats: 10.0.2 + one-webcrypto: 1.0.3 + dev: true + /@web-std/blob/3.0.4: resolution: {integrity: sha512-+dibyiw+uHYK4dX5cJ7HA+gtDAaUUe6JsOryp2ZpAC7h4ICsh49E34JwHoEKPlPvP0llCrNzz45vvD+xX5QDBg==} dependencies: @@ -860,7 +872,6 @@ packages: /cborg/1.9.5: resolution: {integrity: sha512-fLBv8wmqtlXqy1Yu+pHzevAIkW6k2K0ZtMujNzWphLsA34vzzg9BHn+5GmZqOJkSA9V7EMKsWrf6K976c1QMjQ==} hasBin: true - dev: false /chai-subset/1.6.0: resolution: {integrity: sha512-K3d+KmqdS5XKW5DWPd5sgNffL3uxdDe+6GdnJh3AYPhwnBGRY5urfvfcbRtWIvvpz+KxkL9FeBB6MZewLUNwug==} @@ -2348,7 +2359,6 @@ packages: /one-webcrypto/1.0.3: resolution: {integrity: sha512-fu9ywBVBPx0gS9K0etIROTiCkvI5S1TDjFsYFb3rC1ewFxeOqsbzq7aIMBHsYfrTHBcGXJaONXXjTl8B01cW1Q==} - dev: false /onetime/5.1.2: resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}