Skip to content

Commit

Permalink
Use official group updated content type
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Oct 28, 2024
1 parent 7c941b8 commit f3d57da
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 50 deletions.
1 change: 1 addition & 0 deletions sdks/node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@xmtp/content-type-group-updated": "^1.0.0",
"@xmtp/content-type-primitives": "^1.0.2",
"@xmtp/content-type-text": "^1.0.0",
"@xmtp/node-bindings": "^0.0.14",
Expand Down
3 changes: 2 additions & 1 deletion sdks/node-sdk/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import tsConfigPaths from "rollup-plugin-tsconfig-paths";
const external = [
"node:path",
"node:process",
"@xmtp/content-type-text",
"@xmtp/content-type-group-updated",
"@xmtp/content-type-primitives",
"@xmtp/content-type-text",
"@xmtp/node-bindings",
"@xmtp/proto",
"@xmtp/xmtp-js",
Expand Down
8 changes: 4 additions & 4 deletions sdks/node-sdk/src/Client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { join } from "node:path";
import process from "node:process";
import {
ContentTypeGroupUpdated,
GroupUpdatedCodec,
} from "@xmtp/content-type-group-updated";
import type {
ContentCodec,
ContentTypeId,
Expand All @@ -15,10 +19,6 @@ import {
type NapiClient,
type NapiMessage,
} from "@xmtp/node-bindings";
import {
ContentTypeGroupUpdated,
GroupUpdatedCodec,
} from "@/codecs/GroupUpdatedCodec";
import { Conversations } from "@/Conversations";

export const ApiUrls = {
Expand Down
41 changes: 0 additions & 41 deletions sdks/node-sdk/src/codecs/GroupUpdatedCodec.ts

This file was deleted.

4 changes: 0 additions & 4 deletions sdks/node-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ export { Client, ApiUrls } from "./Client";
export { Conversation } from "./Conversation";
export { Conversations } from "./Conversations";
export { DecodedMessage } from "./DecodedMessage";
export {
ContentTypeGroupUpdated,
GroupUpdatedCodec,
} from "./codecs/GroupUpdatedCodec";
export type { StreamCallback } from "./AsyncStream";
export type * from "@xmtp/node-bindings";
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4847,6 +4847,7 @@ __metadata:
"@rollup/plugin-typescript": "npm:^12.1.1"
"@types/node": "npm:^20.16.12"
"@vitest/coverage-v8": "npm:^2.1.3"
"@xmtp/content-type-group-updated": "npm:^1.0.0"
"@xmtp/content-type-primitives": "npm:^1.0.2"
"@xmtp/content-type-text": "npm:^1.0.0"
"@xmtp/node-bindings": "npm:^0.0.14"
Expand Down

0 comments on commit f3d57da

Please sign in to comment.