Skip to content

Commit

Permalink
feat: update to latest version of ucanto and @web3-storage libraries (#…
Browse files Browse the repository at this point in the history
…514)

delightfully simple
  • Loading branch information
travis authored May 8, 2023
1 parent 6c9de97 commit e1ee301
Show file tree
Hide file tree
Showing 13 changed files with 155 additions and 105 deletions.
4 changes: 2 additions & 2 deletions examples/react/w3console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"devDependencies": {
"@preact/preset-vite": "^2.4.0",
"@types/blueimp-md5": "^2.18.0",
"@ucanto/core": "^5.2.0",
"@ucanto/interface": "^6.2.0",
"@ucanto/core": "^7.1.1",
"@ucanto/interface": "^7.1.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.4",
Expand Down
6 changes: 2 additions & 4 deletions examples/react/w3console/src/components/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export const accessServicePrincipal = DID.parse(

export const accessServiceConnection = connect<Service>({
id: accessServicePrincipal,
encoder: CAR,
decoder: CBOR,
codec: CAR.outbound,
channel: HTTP.open<Record<string, any>>({
url: accessServiceURL,
method: 'POST',
Expand All @@ -34,8 +33,7 @@ export const uploadServicePrincipal = DID.parse(

export const uploadServiceConnection = connect<Service>({
id: uploadServicePrincipal,
encoder: CAR,
decoder: CBOR,
codec: CAR.outbound,
channel: HTTP.open<Record<string, any>>({
url: uploadServiceURL,
method: 'POST',
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"@types/jest": "^29.4.0",
"@types/jsdom": "^20.0.1",
"@types/react": "^18.0.26",
"@ucanto/client": "^5.1.0",
"@ucanto/server": "^6.1.0",
"@ucanto/transport": "^5.1.1",
"@ucanto/client": "^7.0.1",
"@ucanto/server": "^7.0.2",
"@ucanto/transport": "^7.0.3",
"@web-std/file": "^3.0.2",
"@web3-storage/capabilities": "^4.0.0",
"@web3-storage/capabilities": "^5.0.0",
"esm": "^3.2.25",
"fake-indexeddb": "^4.0.1",
"hd-scripts": "^4.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/keyring-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
},
"homepage": "https://github.com/web3-storage/w3ui/tree/main/packages/keyring-core",
"dependencies": {
"@ucanto/interface": "^6.2.0",
"@ucanto/principal": "^5.1.0",
"@web3-storage/access": "^12.0.2"
"@ucanto/interface": "^7.1.0",
"@ucanto/principal": "^7.0.0",
"@web3-storage/access": "^13.0.0"
},
"eslintConfig": {
"extends": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"devDependencies": {
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@ucanto/interface": "^6.2.0",
"@ucanto/principal": "^5.1.0"
"@ucanto/interface": "^7.1.0",
"@ucanto/principal": "^7.0.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@w3ui/react-keyring": "workspace:^",
"@w3ui/uploader-core": "workspace:^",
"@web3-storage/capabilities": "^4.0.0",
"@web3-storage/capabilities": "^5.0.0",
"ariakit-react-utils": "0.17.0-next.27"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/solid-keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"homepage": "https://github.com/web3-storage/w3ui/tree/main/packages/solid-keyring",
"dependencies": {
"@ucanto/interface": "^6.2.0",
"@ucanto/principal": "^5.1.0",
"@ucanto/interface": "^7.1.0",
"@ucanto/principal": "^7.0.0",
"@w3ui/keyring-core": "workspace:^"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-uploads-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"solid-js": "^1.5.0"
},
"devDependencies": {
"@ucanto/interface": "^6.2.0"
"@ucanto/interface": "^7.1.0"
},
"eslintConfig": {
"extends": [
Expand Down
4 changes: 2 additions & 2 deletions packages/uploader-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"homepage": "https://github.com/web3-storage/w3ui/tree/main/packages/uploader-core",
"dependencies": {
"@ucanto/interface": "^6.2.0",
"@web3-storage/upload-client": "^8.3.0",
"@ucanto/interface": "^7.1.0",
"@web3-storage/upload-client": "^9.0.0",
"multiformats": "^11.0.1"
},
"eslintConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/uploads-list-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"homepage": "https://github.com/web3-storage/w3ui/tree/main/packages/uploads-list-core",
"dependencies": {
"@ucanto/interface": "^6.2.0",
"@web3-storage/upload-client": "^8.0.0"
"@ucanto/interface": "^7.1.0",
"@web3-storage/upload-client": "^9.0.0"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/uploads-list-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {
ListResponse,
UploadListResult,
UploadListItem as UploadListResult,
Service
} from '@web3-storage/upload-client/types'
import { ConnectionView, Principal } from '@ucanto/interface'
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"vue": "^3.0.0"
},
"devDependencies": {
"@ucanto/interface": "^6.2.0",
"@ucanto/principal": "^5.1.0"
"@ucanto/interface": "^7.1.0",
"@ucanto/principal": "^7.0.0"
},
"eslintConfig": {
"extends": [
Expand Down
Loading

0 comments on commit e1ee301

Please sign in to comment.