Skip to content

Commit

Permalink
feat: upgrade to new ucanto (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala authored Mar 8, 2023
1 parent 1d3d562 commit 790750d
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 126 deletions.
14 changes: 7 additions & 7 deletions packages/access-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"license": "(Apache-2.0 OR MIT)",
"dependencies": {
"@ipld/dag-ucan": "^3.2.0",
"@ucanto/core": "^5.0.0",
"@ucanto/interface": "^5.0.0",
"@ucanto/principal": "^5.0.0",
"@ucanto/server": "^5.0.0",
"@ucanto/transport": "^5.0.0",
"@ucanto/validator": "^5.0.0",
"@ucanto/core": "^5.1.0",
"@ucanto/interface": "^6.0.0",
"@ucanto/principal": "^5.1.0",
"@ucanto/server": "^6.0.0",
"@ucanto/transport": "^5.1.0",
"@ucanto/validator": "^6.0.0",
"@web3-storage/access": "workspace:^",
"@web3-storage/capabilities": "workspace:^",
"@web3-storage/worker-utils": "0.4.3-dev",
Expand All @@ -47,7 +47,7 @@
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.18",
"@types/qrcode": "^1.5.0",
"@ucanto/client": "^5.0.0",
"@ucanto/client": "^5.1.0",
"better-sqlite3": "8.0.1",
"buffer": "^6.0.3",
"dotenv": "^16.0.3",
Expand Down
14 changes: 7 additions & 7 deletions packages/access-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
"@ipld/car": "^5.0.3",
"@ipld/dag-cbor": "^9.0.0",
"@ipld/dag-ucan": "^3.2.0",
"@ucanto/client": "^5.0.0",
"@ucanto/core": "^5.0.0",
"@ucanto/interface": "^5.0.0",
"@ucanto/principal": "^5.0.0",
"@ucanto/transport": "^5.0.0",
"@ucanto/validator": "^5.0.0",
"@ucanto/client": "^5.1.0",
"@ucanto/core": "^5.1.0",
"@ucanto/interface": "^6.0.0",
"@ucanto/principal": "^5.1.0",
"@ucanto/transport": "^5.1.0",
"@ucanto/validator": "^6.0.0",
"@web3-storage/capabilities": "workspace:^",
"bigint-mod-arith": "^3.1.2",
"conf": "10.2.0",
Expand All @@ -91,7 +91,7 @@
"@types/node": "^18.11.18",
"@types/varint": "^6.0.1",
"@types/ws": "^8.5.4",
"@ucanto/server": "^5.0.0",
"@ucanto/server": "^6.0.0",
"assert": "^2.0.0",
"delay": "^5.0.0",
"hd-scripts": "^4.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/capabilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"dist/src/**/*.d.ts.map"
],
"dependencies": {
"@ucanto/core": "^5.0.0",
"@ucanto/interface": "^5.0.0",
"@ucanto/principal": "^5.0.0",
"@ucanto/transport": "^5.0.0",
"@ucanto/validator": "^5.0.0"
"@ucanto/core": "^5.1.0",
"@ucanto/interface": "^6.0.0",
"@ucanto/principal": "^5.1.0",
"@ucanto/transport": "^5.1.0",
"@ucanto/validator": "^6.0.0"
},
"devDependencies": {
"@types/assert": "^1.5.6",
Expand Down
16 changes: 8 additions & 8 deletions packages/upload-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@
},
"dependencies": {
"@sentry/serverless": "^7.22.0",
"@ucanto/client": "^5.0.0",
"@ucanto/interface": "^5.0.0",
"@ucanto/principal": "^5.0.0",
"@ucanto/server": "^5.0.0",
"@ucanto/transport": "^5.0.0",
"@ucanto/client": "^5.1.0",
"@ucanto/interface": "^6.0.0",
"@ucanto/principal": "^5.1.0",
"@ucanto/server": "^6.0.0",
"@ucanto/transport": "^5.1.0",
"@web3-storage/capabilities": "^3.0.0",
"multiformats": "^11.0.1",
"p-retry": "^5.1.2"
},
"devDependencies": {
"@ipld/car": "^5.0.1",
"@ucanto/core": "^5.0.0",
"@types/mocha": "^10.0.1",
"mocha": "^10.2.0",
"@web3-storage/sigv4": "^1.0.2"
"@ucanto/core": "^5.1.0",
"@web3-storage/sigv4": "^1.0.2",
"mocha": "^10.2.0"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-api/test/store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('store/*', () => {
const dudewhereBucket = new DudewhereBucket()
const signer = await Signer.generate()
const id = signer.withDID('did:web:test.web3.storage')
const access = AccessVerifier.create({ id: signer })
const access = AccessVerifier.create({ id })

try {
await test(assert, {
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-api/test/upload.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('upload/*', () => {
const dudewhereBucket = new DudewhereBucket()
const signer = await Signer.generate()
const id = signer.withDID('did:web:test.web3.storage')
const access = AccessVerifier.create({ id: signer })
const access = AccessVerifier.create({ id })

try {
await test(assert, {
Expand Down
10 changes: 5 additions & 5 deletions packages/upload-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
"@ipld/car": "^5.0.3",
"@ipld/dag-ucan": "^3.2.0",
"@ipld/unixfs": "^2.0.1",
"@ucanto/client": "^5.0.0",
"@ucanto/interface": "^5.0.0",
"@ucanto/transport": "^5.0.0",
"@ucanto/client": "^5.1.0",
"@ucanto/interface": "^6.0.0",
"@ucanto/transport": "^5.1.0",
"@web3-storage/capabilities": "workspace:^",
"multiformats": "^11.0.1",
"p-queue": "^7.3.0",
Expand All @@ -77,8 +77,8 @@
"devDependencies": {
"@types/assert": "^1.5.6",
"@types/mocha": "^10.0.1",
"@ucanto/principal": "^5.0.0",
"@ucanto/server": "^5.0.0",
"@ucanto/principal": "^5.1.0",
"@ucanto/server": "^6.0.0",
"assert": "^2.0.0",
"blockstore-core": "^3.0.0",
"c8": "^7.12.0",
Expand Down
Loading

0 comments on commit 790750d

Please sign in to comment.