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 content type dependencies and imports #629

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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/selfish-worms-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/mls-client": patch
---

Update content type dependencies and imports
1 change: 1 addition & 0 deletions packages/mls-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
},
"dependencies": {
"@xmtp/content-type-primitives": "^1.0.1",
"@xmtp/content-type-text": "^1.0.0",
"@xmtp/mls-client-bindings-node": "^0.0.4",
"@xmtp/proto": "^3.61.1"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/mls-client/src/Client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { join } from 'node:path'
import process from 'node:process'
import type {
ContentCodec,
ContentTypeId,
EncodedContent,
} from '@xmtp/content-type-primitives'
import { TextCodec } from '@xmtp/content-type-text'
import {
createClient,
generateInboxId,
Expand All @@ -8,12 +14,6 @@ import {
type NapiClient,
type NapiMessage,
} from '@xmtp/mls-client-bindings-node'
import {
TextCodec,
type ContentCodec,
type ContentTypeId,
type EncodedContent,
} from '@xmtp/xmtp-js'
import {
ContentTypeGroupUpdated,
GroupUpdatedCodec,
Expand Down
2 changes: 1 addition & 1 deletion packages/mls-client/src/Conversation.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ContentTypeId } from '@xmtp/content-type-primitives'
import type {
NapiGroup,
NapiListMessagesOptions,
} from '@xmtp/mls-client-bindings-node'
import type { ContentTypeId } from '@xmtp/xmtp-js'
import { AsyncStream, type StreamCallback } from '@/AsyncStream'
import type { Client } from '@/Client'
import { DecodedMessage } from '@/DecodedMessage'
Expand Down
2 changes: 1 addition & 1 deletion packages/mls-client/src/DecodedMessage.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ContentTypeId } from '@xmtp/content-type-primitives'
import {
NapiDeliveryStatus,
NapiGroupMessageKind,
type NapiMessage,
} from '@xmtp/mls-client-bindings-node'
import { ContentTypeId } from '@xmtp/xmtp-js'
import type { Client } from '@/Client'
import { nsToDate } from '@/helpers/date'

Expand Down
2 changes: 1 addition & 1 deletion packages/mls-client/test/Conversation.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContentTypeText } from '@xmtp/xmtp-js'
import { ContentTypeText } from '@xmtp/content-type-text'
import { describe, expect, it } from 'vitest'
import { createRegisteredClient, createUser } from '@test/helpers'

Expand Down
2 changes: 1 addition & 1 deletion packages/mls-client/test/Conversations.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContentTypeText } from '@xmtp/xmtp-js'
import { ContentTypeText } from '@xmtp/content-type-text'
import { describe, expect, it } from 'vitest'
import { createRegisteredClient, createUser } from '@test/helpers'

Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2872,6 +2872,15 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/content-type-text@npm:^1.0.0":
version: 1.0.0
resolution: "@xmtp/content-type-text@npm:1.0.0"
dependencies:
"@xmtp/content-type-primitives": "npm:^1.0.1"
checksum: 10/b195060ad5686a6ace2772d5208d535d1f5062820629764aec52cedf3f2630885b5913aea6d2f0186a49139845c20d2ded783c6bf998884f09374c07b183141f
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"
Expand All @@ -2891,6 +2900,7 @@ __metadata:
"@typescript-eslint/parser": "npm:^7.8.0"
"@vitest/coverage-v8": "npm:^1.6.0"
"@xmtp/content-type-primitives": "npm:^1.0.1"
"@xmtp/content-type-text": "npm:^1.0.0"
"@xmtp/mls-client-bindings-node": "npm:^0.0.4"
"@xmtp/proto": "npm:^3.61.1"
"@xmtp/xmtp-js": "workspace:^"
Expand Down
Loading