Skip to content

Commit

Permalink
Update content type dependencies and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Jun 14, 2024
1 parent 7c8b957 commit 7595bdb
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
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

0 comments on commit 7595bdb

Please sign in to comment.