Skip to content

Commit

Permalink
chore: upgrade dependencies (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw authored Jan 22, 2025
1 parent 6d54400 commit e743572
Show file tree
Hide file tree
Showing 16 changed files with 1,888 additions and 1,970 deletions.
14 changes: 7 additions & 7 deletions packages/access-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,20 @@
],
"dependencies": {
"@ipld/car": "^5.1.1",
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@scure/bip39": "^1.2.1",
"@storacha/capabilities": "workspace:^",
"@storacha/did-mailto": "workspace:^",
"@storacha/one-webcrypto": "^1.0.1",
"@ucanto/client": "^9.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/principal": "^9.0.2",
"@ucanto/transport": "^9.1.1",
"@ucanto/validator": "^9.0.2",
"@ucanto/validator": "^9.0.3",
"bigint-mod-arith": "^3.1.2",
"conf": "11.0.2",
"multiformats": "^12.1.2",
"multiformats": "^13.3.1",
"p-defer": "^4.0.0",
"type-fest": "^4.9.0",
"uint8arrays": "^4.0.6"
Expand All @@ -126,7 +126,7 @@
"@types/sinon": "^10.0.19",
"@types/varint": "^6.0.1",
"@types/ws": "^8.5.4",
"@ucanto/server": "^10.0.0",
"@ucanto/server": "^10.1.0",
"assert": "^2.0.0",
"mocha": "^10.2.0",
"playwright-test": "^12.3.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/blob-index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"@ipld/dag-cbor": "^9.0.6",
"@storacha/capabilities": "workspace:^",
"@storacha/one-webcrypto": "^1.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"carstream": "^2.1.0",
"multiformats": "^13.0.1",
"uint8arrays": "^5.0.3"
Expand Down
10 changes: 5 additions & 5 deletions packages/capabilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@
"dist/src/**/*.d.ts.map"
],
"dependencies": {
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/principal": "^9.0.2",
"@ucanto/transport": "^9.1.1",
"@ucanto/validator": "^9.0.2",
"@ucanto/validator": "^9.0.3",
"@web3-storage/data-segment": "^5.2.0",
"uint8arrays": "^5.0.3"
},
"devDependencies": {
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@storacha/eslint-config": "workspace:^",
"@types/assert": "^1.5.6",
"@types/mocha": "^10.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"@storacha/eslint-config": "workspace:^",
"@storacha/upload-api": "workspace:^",
"@types/update-notifier": "^6.0.5",
"@ucanto/interface": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/server": "^10.0.0",
"@ucanto/interface": "^10.1.1",
"@ucanto/principal": "^9.0.2",
"@ucanto/server": "^10.1.0",
"@web-std/blob": "^3.0.5",
"@web3-storage/sigv4": "^1.0.2",
"entail": "^2.1.1",
Expand All @@ -51,12 +51,12 @@
"@inquirer/prompts": "^3.3.0",
"@ipld/car": "^5.2.4",
"@ipld/dag-json": "^10.1.5",
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@storacha/access": "workspace:^",
"@storacha/client": "workspace:^",
"@storacha/did-mailto": "workspace:^",
"@ucanto/client": "^9.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/transport": "^9.1.1",
"@web3-storage/content-claims": "^5.1.3",
"@web3-storage/data-segment": "^5.0.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/filecoin-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@
"coverage": "c8 -r text -r html npm run test"
},
"dependencies": {
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@storacha/capabilities": "workspace:^",
"@ucanto/client": "^9.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/server": "^10.0.0",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/server": "^10.1.0",
"@ucanto/transport": "^9.1.1",
"@web3-storage/content-claims": "^5.0.0",
"@web3-storage/data-segment": "^5.2.0",
Expand All @@ -173,11 +173,11 @@
"@types/assert": "^1.5.10",
"@types/mocha": "^10.0.1",
"@ucanto/client": "^9.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/principal": "^9.0.2",
"@web-std/blob": "^3.0.5",
"c8": "^10.1.2",
"mocha": "^10.2.0",
"multiformats": "^12.1.2",
"multiformats": "^13.3.1",
"p-wait-for": "^5.0.2",
"typescript": "5.2.2"
},
Expand Down
14 changes: 7 additions & 7 deletions packages/filecoin-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,26 @@
"dist/src/**/*.d.ts.map"
],
"dependencies": {
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@storacha/capabilities": "workspace:^",
"@ucanto/client": "^9.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/transport": "^9.1.1"
},
"devDependencies": {
"@ipld/dag-json": "^10.1.4",
"@storacha/eslint-config": "workspace:^",
"@types/assert": "^1.5.6",
"@types/mocha": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/server": "^10.0.0",
"@web3-storage/data-segment": "^4.0.0",
"@ucanto/principal": "^9.0.2",
"@ucanto/server": "^10.1.0",
"@web3-storage/data-segment": "^5.3.0",
"assert": "^2.0.0",
"c8": "^7.13.0",
"hundreds": "^0.0.9",
"mocha": "^10.2.0",
"multiformats": "^12.1.2",
"multiformats": "^13.3.1",
"npm-run-all": "^4.1.5",
"playwright-test": "^12.3.4",
"typescript": "5.2.2"
Expand Down
12 changes: 6 additions & 6 deletions packages/upload-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,24 +196,24 @@
"@storacha/did-mailto": "workspace:^",
"@storacha/filecoin-api": "workspace:^",
"@ucanto/client": "^9.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/principal": "^9.0.2",
"@ucanto/server": "^10.0.0",
"@ucanto/transport": "^9.1.1",
"@ucanto/validator": "^9.0.2",
"@ucanto/validator": "^9.0.3",
"@web3-storage/content-claims": "^5.1.3",
"@web3-storage/upload-api": "^19.0.0",
"multiformats": "^12.1.2",
"multiformats": "^13.3.1",
"uint8arrays": "^5.0.3"
},
"devDependencies": {
"@ipld/car": "^5.1.1",
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@storacha/blob-index": "workspace:^",
"@storacha/eslint-config": "workspace:^",
"@storacha/one-webcrypto": "^1.0.1",
"@types/mocha": "^10.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/core": "^10.2.1",
"@web-std/blob": "^3.0.5",
"is-subset": "^0.1.1",
"mocha": "^10.2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/upload-api/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import type {
Variant,
HTTPRequest,
HTTPResponse,
PrincipalResolver,
} from '@ucanto/interface'
import type { ProviderInput, ConnectionView } from '@ucanto/server'

Expand Down Expand Up @@ -461,7 +462,7 @@ export interface ServiceContext
UsageServiceContext,
LegacyStoreServiceContext {}

export interface UcantoServerContext extends ServiceContext, RevocationChecker {
export interface UcantoServerContext extends ServiceContext, RevocationChecker, PrincipalResolver {
id: Signer
codec?: InboundCodec
errorReporter: ErrorReporter
Expand Down
2 changes: 0 additions & 2 deletions packages/upload-api/test/external-service/storage-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ export class BrowserStorageNode {
contentStore,
allocationStore,
}),
// @ts-expect-error
resolveDIDKey,
validateAuthorization: () => ({ ok: {} }),
})
Expand Down Expand Up @@ -231,7 +230,6 @@ export class StorageNode {
contentStore,
allocationStore,
}),
// @ts-expect-error
resolveDIDKey,
validateAuthorization: () => ({ ok: {} }),
})
Expand Down
1 change: 0 additions & 1 deletion packages/upload-api/test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export async function randomCAR(size) {
const hash = await sha256.digest(bytes)
const root = CID.create(1, raw.code, hash)

// @ts-expect-error old multiformats in @ipld/car
const { writer, out } = CarWriter.create(root)
writer.put({ cid: root, bytes })
writer.close()
Expand Down
16 changes: 8 additions & 8 deletions packages/upload-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@
"dependencies": {
"@ipld/car": "^5.2.2",
"@ipld/dag-cbor": "^9.0.6",
"@ipld/dag-ucan": "^3.4.0",
"@ipld/unixfs": "^2.1.1",
"@ipld/dag-ucan": "^3.4.5",
"@ipld/unixfs": "^3.0.0",
"@storacha/blob-index": "workspace:^",
"@storacha/capabilities": "workspace:^",
"@storacha/filecoin-client": "workspace:^",
"@ucanto/client": "^9.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/transport": "^9.1.1",
"@web3-storage/data-segment": "^5.1.0",
"ipfs-utils": "^9.0.14",
"multiformats": "^12.1.2",
"multiformats": "^13.3.1",
"p-retry": "^5.1.2",
"varint": "^6.0.0"
},
Expand All @@ -102,9 +102,9 @@
"@types/assert": "^1.5.6",
"@types/mocha": "^10.0.1",
"@types/varint": "^6.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/server": "^10.0.0",
"@web3-storage/content-claims": "^5.0.0",
"@ucanto/principal": "^9.0.2",
"@ucanto/server": "^10.1.0",
"@web3-storage/content-claims": "^5.1.3",
"assert": "^2.0.0",
"blockstore-core": "^3.0.0",
"c8": "^7.13.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-client/src/receipts.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async function get(taskCid, options = {}) {
headers: {},
})
// Get receipt from the potential multiple receipts in the message
const receipt = agentMessage.receipts.get(taskCid.toString())
const receipt = agentMessage.receipts.get(`${taskCid}`)
if (!receipt) {
return {
error: new ReceiptMissing(taskCid),
Expand Down
1 change: 0 additions & 1 deletion packages/upload-client/test/helpers/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { toBlock } from './block.js'
*/
export async function toCAR(bytes) {
const block = await toBlock(bytes)
// @ts-expect-error old multiformats in @ipld/car
const { writer, out } = CarWriter.create(block.cid)
writer.put(block)
writer.close()
Expand Down
14 changes: 7 additions & 7 deletions packages/w3up-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,28 +144,28 @@
"docs": "npm run build && typedoc --out docs-generated"
},
"dependencies": {
"@ipld/dag-ucan": "^3.4.0",
"@ipld/dag-ucan": "^3.4.5",
"@storacha/access": "workspace:^",
"@storacha/blob-index": "workspace:^",
"@storacha/capabilities": "workspace:^",
"@storacha/did-mailto": "workspace:^",
"@storacha/filecoin-client": "workspace:^",
"@storacha/upload-client": "workspace:^",
"@ucanto/client": "^9.0.1",
"@ucanto/core": "^10.0.1",
"@ucanto/interface": "^10.0.1",
"@ucanto/principal": "^9.0.1",
"@ucanto/core": "^10.2.1",
"@ucanto/interface": "^10.1.1",
"@ucanto/principal": "^9.0.2",
"@ucanto/transport": "^9.1.1"
},
"devDependencies": {
"@ipld/car": "^5.1.1",
"@ipld/unixfs": "^2.1.1",
"@ipld/unixfs": "^3.0.0",
"@storacha/eslint-config": "workspace:^",
"@storacha/upload-api": "workspace:^",
"@types/assert": "^1.5.6",
"@types/mocha": "^10.0.1",
"@types/node": "^20.8.4",
"@ucanto/server": "^10.0.0",
"@ucanto/server": "^10.1.0",
"@web3-storage/access": "^20.1.0",
"@web3-storage/content-claims": "^4.0.4",
"@web3-storage/data-segment": "^5.0.0",
Expand All @@ -175,7 +175,7 @@
"esbuild": "^0.24.0",
"hundreds": "^0.0.9",
"mocha": "^10.8.2",
"multiformats": "^12.1.2",
"multiformats": "^13.3.1",
"npm-run-all": "^4.1.5",
"playwright-test": "^12.3.4",
"typedoc": "^0.25.3",
Expand Down
1 change: 0 additions & 1 deletion packages/w3up-client/test/helpers/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export async function toCAR(bytes) {
const hash = await sha256.digest(bytes)
const root = CID.create(1, raw.code, hash)

// @ts-expect-error old multiformats in @ipld/car
const { writer, out } = CarWriter.create(root)
writer.put({ cid: root, bytes })
writer.close()
Expand Down
Loading

0 comments on commit e743572

Please sign in to comment.