Skip to content

Commit

Permalink
feat: update @ucanto/* to ~4.2.3 (#405)
Browse files Browse the repository at this point in the history
Motivation:
* upgrade to latest ucanto
* unblock #390
  • Loading branch information
gobengo authored Jan 30, 2023
1 parent 953cbae commit 50c0c80
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 97 deletions.
12 changes: 6 additions & 6 deletions packages/access-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"license": "(Apache-2.0 OR MIT)",
"dependencies": {
"@ipld/dag-ucan": "^3.2.0",
"@ucanto/core": "^4.1.0",
"@ucanto/interface": "^4.1.0",
"@ucanto/principal": "^4.1.0",
"@ucanto/server": "^4.1.0",
"@ucanto/transport": "^4.1.0",
"@ucanto/core": "^4.2.3",
"@ucanto/interface": "^4.2.3",
"@ucanto/principal": "^4.2.3",
"@ucanto/server": "^4.2.3",
"@ucanto/transport": "^4.2.3",
"@web3-storage/access": "workspace:^",
"@web3-storage/capabilities": "workspace:^",
"@web3-storage/worker-utils": "0.4.3-dev",
Expand All @@ -43,7 +43,7 @@
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.18",
"@types/qrcode": "^1.5.0",
"@ucanto/client": "^4.1.0",
"@ucanto/client": "^4.2.3",
"better-sqlite3": "8.0.1",
"buffer": "^6.0.3",
"dotenv": "^16.0.3",
Expand Down
3 changes: 1 addition & 2 deletions packages/access-api/src/ucanto/client-codec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Delegation } from '@ucanto/core'
import * as UCAN from '@ipld/dag-ucan'
import { UTF8 } from '@ucanto/transport'

/** @type {import('./types.js').ClientCodec} */
export const clientCodec = {
async encode(invocations, options) {
const headers = new Headers()
const chain = await Delegation.delegate(invocations[0])
const chain = await invocations[0].delegate()

// TODO iterate over proofs and send them too
// for (const ucan of chain.iterate()) {
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": "^4.1.0",
"@ucanto/core": "^4.1.0",
"@ucanto/interface": "^4.1.0",
"@ucanto/principal": "^4.1.0",
"@ucanto/transport": "^4.1.0",
"@ucanto/validator": "^4.1.0",
"@ucanto/client": "^4.2.3",
"@ucanto/core": "^4.2.3",
"@ucanto/interface": "^4.2.3",
"@ucanto/principal": "^4.2.3",
"@ucanto/transport": "^4.2.3",
"@ucanto/validator": "^4.2.3",
"@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": "^4.1.0",
"@ucanto/server": "^4.2.3",
"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 @@ -60,11 +60,11 @@
"dist/src/**/*.d.ts.map"
],
"dependencies": {
"@ucanto/core": "^4.1.0",
"@ucanto/interface": "^4.1.0",
"@ucanto/principal": "^4.1.0",
"@ucanto/transport": "^4.1.0",
"@ucanto/validator": "^4.1.0"
"@ucanto/core": "^4.2.3",
"@ucanto/interface": "^4.2.3",
"@ucanto/principal": "^4.2.3",
"@ucanto/transport": "^4.2.3",
"@ucanto/validator": "^4.2.3"
},
"devDependencies": {
"@types/assert": "^1.5.6",
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": "^4.1.0",
"@ucanto/interface": "^4.1.0",
"@ucanto/transport": "^4.1.0",
"@ucanto/client": "^4.2.3",
"@ucanto/interface": "^4.2.3",
"@ucanto/transport": "^4.2.3",
"@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": "^4.1.0",
"@ucanto/server": "^4.1.0",
"@ucanto/principal": "^4.2.3",
"@ucanto/server": "^4.2.3",
"assert": "^2.0.0",
"blockstore-core": "^3.0.0",
"c8": "^7.12.0",
Expand Down
144 changes: 72 additions & 72 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50c0c80

Please sign in to comment.