From 5f07575ebdc72aeabf21bbea70241cd20a460f59 Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Thu, 13 Jun 2024 12:05:15 -0500 Subject: [PATCH] Use content type primitives --- packages/mls-client/package.json | 4 ++-- packages/mls-client/src/codecs/GroupUpdatedCodec.ts | 4 ++-- yarn.lock | 13 +++++++++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/mls-client/package.json b/packages/mls-client/package.json index c3c178fe3..917aaabd4 100644 --- a/packages/mls-client/package.json +++ b/packages/mls-client/package.json @@ -52,9 +52,9 @@ "typecheck": "tsc" }, "dependencies": { + "@xmtp/content-type-primitives": "^1.0.1", "@xmtp/mls-client-bindings-node": "^0.0.4", - "@xmtp/proto": "^3.61.1", - "@xmtp/xmtp-js": "^11.6.2" + "@xmtp/proto": "^3.61.1" }, "devDependencies": { "@ianvs/prettier-plugin-sort-imports": "^4.2.1", diff --git a/packages/mls-client/src/codecs/GroupUpdatedCodec.ts b/packages/mls-client/src/codecs/GroupUpdatedCodec.ts index fe540fb20..402318edc 100644 --- a/packages/mls-client/src/codecs/GroupUpdatedCodec.ts +++ b/packages/mls-client/src/codecs/GroupUpdatedCodec.ts @@ -1,9 +1,9 @@ -import { mlsTranscriptMessages } from '@xmtp/proto' import { ContentTypeId, type ContentCodec, type EncodedContent, -} from '@xmtp/xmtp-js' +} from '@xmtp/content-type-primitives' +import { mlsTranscriptMessages } from '@xmtp/proto' export const ContentTypeGroupUpdated = new ContentTypeId({ authorityId: 'xmtp.org', diff --git a/yarn.lock b/yarn.lock index 637ae8496..bc22a00af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2863,6 +2863,15 @@ __metadata: languageName: node linkType: hard +"@xmtp/content-type-primitives@npm:^1.0.1": + version: 1.0.1 + resolution: "@xmtp/content-type-primitives@npm:1.0.1" + dependencies: + "@xmtp/proto": "npm:^3.61.1" + checksum: 10/656826cda74328e3079c7f5937eeb694260bd68a66090303fdf6abf4c54c8bbf924064eb6895b9e66addee1269779dfe1c3f0e836fcd8857f784c5645c7b7bf5 + languageName: node + linkType: hard + "@xmtp/mls-client-bindings-node@npm:^0.0.4": version: 0.0.4 resolution: "@xmtp/mls-client-bindings-node@npm:0.0.4" @@ -2881,9 +2890,9 @@ __metadata: "@typescript-eslint/eslint-plugin": "npm:^7.8.0" "@typescript-eslint/parser": "npm:^7.8.0" "@vitest/coverage-v8": "npm:^1.6.0" + "@xmtp/content-type-primitives": "npm:^1.0.1" "@xmtp/mls-client-bindings-node": "npm:^0.0.4" "@xmtp/proto": "npm:^3.61.1" - "@xmtp/xmtp-js": "npm:^11.6.2" eslint: "npm:^8.57.0" eslint-config-prettier: "npm:^9.1.0" eslint-config-standard: "npm:^17.1.0" @@ -2963,7 +2972,7 @@ __metadata: languageName: node linkType: hard -"@xmtp/xmtp-js@npm:^11.6.2, @xmtp/xmtp-js@workspace:packages/js-sdk": +"@xmtp/xmtp-js@workspace:packages/js-sdk": version: 0.0.0-use.local resolution: "@xmtp/xmtp-js@workspace:packages/js-sdk" dependencies: