Skip to content

Commit 8116b22

Browse files
refactor: Migrate from @rocket.chat/sdk to @rocket.chat/ddp-client (#1308)
* refactor(api): replace @rocket.chat/sdk with @rocket.chat/ddp-client * refactor(api): use sdk.rest for all REST calls * fix(api): normalize REST endpoint paths for sdk.rest * refactor(api): use typed sdk.rest.get/post for type-safe API surface * chore: commit modernized API changes, reaction toggle support, DOM warning fixes, and pinned messages features * refactor(api): address PR review comments
1 parent 0f0ebd0 commit 8116b22

15 files changed

Lines changed: 808 additions & 714 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/lib/index.mjs b/lib/index.mjs
2+
index 35c18fc129e349205d3db64bfb7b9c589c726d35..7fe10a375d6e6d4d46bb1c4a776fdc75f062c3d3 100644
3+
--- a/lib/index.mjs
4+
+++ b/lib/index.mjs
5+
@@ -1,4 +1,4 @@
6+
-import * as module from './module.mjs';
7+
+import * as _module from './module.mjs';
8+
export { assert, assertEquals, assertGuard, assertGuardEquals, createAssert, createAssertEquals, createAssertGuard, createAssertGuardEquals, createEquals, createIs, createRandom, createValidate, createValidateEquals, equals, is, random, validate, validateEquals } from './module.mjs';
9+
import * as functional from './functional.mjs';
10+
export { functional };
11+
@@ -22,5 +22,5 @@ export { TypeGuardError } from './TypeGuardError.mjs';
12+
13+
14+
15+
-export { module as default };
16+
+export { _module as default };
17+
//# sourceMappingURL=index.mjs.map

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
},
3232
"resolutions": {
3333
"react": "^19.0.0",
34-
"react-dom": "^19.0.0"
34+
"react-dom": "^19.0.0",
35+
"typia": "patch:typia@npm%3A9.7.2#./.yarn/patches/typia-npm-9.7.2-5c5d9c80b4.patch"
3536
}
3637
}

packages/api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@embeddedchat/auth": "workspace:^",
27-
"@rocket.chat/sdk": "^1.0.0-alpha.42"
27+
"@rocket.chat/ddp-client": "1.0.9-rc.2",
28+
"@rocket.chat/emitter": "^0.31.25"
2829
}
2930
}

0 commit comments

Comments
 (0)