Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update xmtp-js to version 11 #82

Merged
merged 7 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/kind-moose-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/react-sdk": minor
---

Update xmtp-js to version 11
12 changes: 12 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
Copy link
Contributor Author

@neekolas neekolas Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is all that is required to force it to publish with a beta tag instead of to the main npm package.

"mode": "pre",
"tag": "beta",
"initialVersions": {
"@xmtp/react-quickstart-example": "0.0.0",
"eslint-config-xmtp-web": "1.0.0",
"@xmtp/react-components": "1.0.0-preview.0",
"@xmtp/react-sdk": "1.3.4",
"@xmtp/tsconfig": "0.0.0"
},
"changesets": []
}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- beta

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@changesets/cli": "^2.26.2"
},
"resolutions": {
"@xmtp/xmtp-js": "^10.2.0",
"@xmtp/xmtp-js": "^11.0.0-beta.8",
"vite": "^4.4.9"
}
}
12 changes: 6 additions & 6 deletions packages/react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
"typedoc": "typedoc"
},
"dependencies": {
"@xmtp/content-type-reaction": "^1.0.1",
"@xmtp/content-type-read-receipt": "^1.0.1",
"@xmtp/content-type-remote-attachment": "^1.0.7",
"@xmtp/content-type-reply": "^1.0.0",
"@xmtp/xmtp-js": "^10.2.1",
"@xmtp/content-type-reaction": "^1.1.0",
"@xmtp/content-type-read-receipt": "^1.1.0",
"@xmtp/content-type-remote-attachment": "^1.1.0",
"@xmtp/content-type-reply": "^1.1.0",
"@xmtp/xmtp-js": "^11.0.0-beta.8",
"async-mutex": "^0.4.0",
"date-fns": "^2.30.0",
"dexie": "^3.2.4",
Expand Down Expand Up @@ -109,7 +109,7 @@
"vitest": "^0.34.2"
},
"peerDependencies": {
"@xmtp/xmtp-js": "^10.2.1",
"@xmtp/xmtp-js": "^11.0.0-beta.8",
"react": ">=16.14"
},
"engines": {
Expand Down
5 changes: 1 addition & 4 deletions packages/react-sdk/src/hooks/useSendMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ describe("useSendMessage", () => {
testConversation,
testAttachment,
ContentTypeAttachment,
{
contentFallback: "test",
},
{},
neekolas marked this conversation as resolved.
Show resolved Hide resolved
);
expect(sentMessage).toEqual({ id: 1 });
});
Expand All @@ -107,7 +105,6 @@ describe("useSendMessage", () => {
testAttachment,
ContentTypeAttachment,
{
contentFallback: "test",
onError: onErrorMock,
onSuccess: onSuccessMock,
},
Expand Down
82 changes: 59 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7421,15 +7421,26 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/content-type-read-receipt@npm:^1.0.1":
version: 1.0.1
resolution: "@xmtp/content-type-read-receipt@npm:1.0.1"
"@xmtp/content-type-reaction@npm:^1.1.0":
version: 1.1.0
resolution: "@xmtp/content-type-reaction@npm:1.1.0"
dependencies:
"@xmtp/xmtp-js": ^9.1.7
peerDependencies:
"@xmtp/xmtp-js": ^9.1.7
checksum: 0a01e35c53e7719045e72e196e8931475fefc39dba277923410f4f94a1f7bcaa8bd25d9829039d2d4bc98570597bdd963c0c4f2976240c81248f52093e083ffb
languageName: node
linkType: hard

"@xmtp/content-type-read-receipt@npm:^1.1.0":
version: 1.1.0
resolution: "@xmtp/content-type-read-receipt@npm:1.1.0"
dependencies:
"@xmtp/proto": ^3.26.0
"@xmtp/xmtp-js": ^9.2.0
peerDependencies:
"@xmtp/xmtp-js": ^9.2.0
checksum: 106445a2fd5ce6c6535abb646fefaf912f4ef434abe5226e6395fc41571e92863c8854ece8c619eccfce785ae3305e07e3f56b71350fff9d0ab874ebe6d46d07
checksum: 337b23b3c7479444bace54149e20719e13eecc18fa81b17da741553f81121a29e491196de6cffb61c9885c17106b08584ee6f4d194e5050164e4a0fc465a19b9
languageName: node
linkType: hard

Expand All @@ -7446,6 +7457,19 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/content-type-remote-attachment@npm:^1.1.0":
version: 1.1.0
resolution: "@xmtp/content-type-remote-attachment@npm:1.1.0"
dependencies:
"@noble/secp256k1": ^1.7.1
"@xmtp/proto": ^3.25.0
"@xmtp/xmtp-js": ^9.1.7
peerDependencies:
"@xmtp/xmtp-js": ^9.1.7
checksum: 02c3693f7653bce1d24dc46fca8a400fd2493c4b843bcb2e7b8f53a2919ef3d617d8af4eefd092a73295bb2f4b8a33a376266adf74966a846a050923c4382e31
languageName: node
linkType: hard

"@xmtp/content-type-reply@npm:^1.0.0":
version: 1.0.0
resolution: "@xmtp/content-type-reply@npm:1.0.0"
Expand All @@ -7458,15 +7482,15 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/proto@npm:^3.24.0":
version: 3.25.0
resolution: "@xmtp/proto@npm:3.25.0"
"@xmtp/content-type-reply@npm:^1.1.0":
version: 1.1.0
resolution: "@xmtp/content-type-reply@npm:1.1.0"
dependencies:
long: ^5.2.0
protobufjs: ^7.0.0
rxjs: ^7.8.0
undici: ^5.8.1
checksum: 9673abcbe5b53252d12216bd24743c1176e4c7578c0214333668009fa1ef98dd9a422c388122096d5a175fc886651b87107d35d7cb836e6d647c9923b290fd77
"@xmtp/proto": ^3.26.0
"@xmtp/xmtp-js": ^9.2.0
peerDependencies:
"@xmtp/xmtp-js": ^9.2.0
checksum: df1737da76281539e2a2d7303887ddd18c8c66c9035f0d07d4f1c922806476cdbfad1322e710d29a42d11a852025d2ff44db0ecd08d3f5e42df36baaab426280
languageName: node
linkType: hard

Expand All @@ -7482,6 +7506,18 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/proto@npm:^3.28.0-beta.1":
version: 3.28.0-beta.1
resolution: "@xmtp/proto@npm:3.28.0-beta.1"
dependencies:
long: ^5.2.0
protobufjs: ^7.0.0
rxjs: ^7.8.0
undici: ^5.8.1
checksum: d222356318e72359bf54aea0fb967c3beeac94c82649c2e9c8cdb0a5a01ecf5c1264af1f1a4d2eeffb0d8b05561f0e3ee9b1ee44fa5742edfb0e1b288af8b96d
languageName: node
linkType: hard

"@xmtp/react-components@workspace:*, @xmtp/react-components@workspace:packages/react-components":
version: 0.0.0-use.local
resolution: "@xmtp/react-components@workspace:packages/react-components"
Expand Down Expand Up @@ -7566,12 +7602,12 @@ __metadata:
"@types/uuid": ^9.0.2
"@vitejs/plugin-react": ^4.0.4
"@vitest/coverage-v8": ^0.34.2
"@xmtp/content-type-reaction": ^1.0.1
"@xmtp/content-type-read-receipt": ^1.0.1
"@xmtp/content-type-remote-attachment": ^1.0.7
"@xmtp/content-type-reply": ^1.0.0
"@xmtp/content-type-reaction": ^1.1.0
"@xmtp/content-type-read-receipt": ^1.1.0
"@xmtp/content-type-remote-attachment": ^1.1.0
"@xmtp/content-type-reply": ^1.1.0
"@xmtp/tsconfig": "workspace:*"
"@xmtp/xmtp-js": ^10.2.1
"@xmtp/xmtp-js": ^11.0.0-beta.8
async-mutex: ^0.4.0
date-fns: ^2.30.0
dexie: ^3.2.4
Expand All @@ -7593,7 +7629,7 @@ __metadata:
vitest: ^0.34.2
zod: ^3.22.1
peerDependencies:
"@xmtp/xmtp-js": ^10.2.1
"@xmtp/xmtp-js": ^11.0.0-beta.8
react: ">=16.14"
languageName: unknown
linkType: soft
Expand All @@ -7604,17 +7640,17 @@ __metadata:
languageName: unknown
linkType: soft

"@xmtp/xmtp-js@npm:^10.2.0":
version: 10.2.0
resolution: "@xmtp/xmtp-js@npm:10.2.0"
"@xmtp/xmtp-js@npm:^11.0.0-beta.8":
version: 11.0.0-beta.8
resolution: "@xmtp/xmtp-js@npm:11.0.0-beta.8"
dependencies:
"@noble/secp256k1": ^1.5.2
"@xmtp/proto": ^3.24.0
"@xmtp/proto": ^3.28.0-beta.1
async-mutex: ^0.4.0
elliptic: ^6.5.4
ethers: ^5.5.3
long: ^5.2.0
checksum: 116a34b4232c817494f292082d24c5ab84ec4536203b950e7cc079a4acbe5b43da594a6e52bffacab51cea3a4b00ac006dec9f32aba69919acf5098c5b22cf2a
checksum: 2b2f1c1e7cd5aa202246a57728ea40024056a63ba1bceaa07bc5a9e5ab6d7308ebadbc64baaa730a43d5160f90173651f774eb89b86ca8e23088446eadc72f8a
languageName: node
linkType: hard

Expand Down