@rocket.chat/ddp-client 0.3.4 → 0.3.5-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @rocket.chat/ddp-client
2
2
 
3
+ ## 0.3.5-rc.2
4
+
5
+ ### Patch Changes
6
+
7
+ - <details><summary>Updated dependencies []:</summary>
8
+
9
+ - @rocket.chat/core-typings@6.12.0-rc.2
10
+ - @rocket.chat/rest-typings@6.12.0-rc.2
11
+ - @rocket.chat/api-client@0.2.5-rc.2
12
+ </details>
13
+
14
+ ## 0.3.5-rc.1
15
+
16
+ ### Patch Changes
17
+
18
+ - <details><summary>Updated dependencies []:</summary>
19
+
20
+ - @rocket.chat/core-typings@6.12.0-rc.1
21
+ - @rocket.chat/rest-typings@6.12.0-rc.1
22
+ - @rocket.chat/api-client@0.2.5-rc.1
23
+ </details>
24
+
25
+ ## 0.3.5-rc.0
26
+
27
+ ### Patch Changes
28
+
29
+ - <details><summary>Updated dependencies [b764c415dc, 7937ff741a, 58c0efc732, e28be46db7, 58c0efc732]:</summary>
30
+
31
+ - @rocket.chat/rest-typings@6.12.0-rc.0
32
+ - @rocket.chat/core-typings@6.12.0-rc.0
33
+ - @rocket.chat/api-client@0.2.4-rc.0
34
+ </details>
35
+
3
36
  ## 0.3.4
4
37
 
5
38
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,9 @@
1
1
  export * from './DDPSDK';
2
2
  export * from './legacy/RocketchatSDKLegacy';
3
3
  export * from './livechat/LivechatClientImpl';
4
+ export * from './livechat/types/LivechatSDK';
5
+ export * from './types/ClientStream';
6
+ export * from './types/methods';
7
+ export * from './types/streams';
8
+ export type { SDK } from './types/SDK';
4
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,YAAY,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -17,4 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DDPSDK"), exports);
18
18
  __exportStar(require("./legacy/RocketchatSDKLegacy"), exports);
19
19
  __exportStar(require("./livechat/LivechatClientImpl"), exports);
20
+ __exportStar(require("./livechat/types/LivechatSDK"), exports);
21
+ __exportStar(require("./types/ClientStream"), exports);
22
+ __exportStar(require("./types/methods"), exports);
23
+ __exportStar(require("./types/streams"), exports);
20
24
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+DAA6C;AAC7C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+DAA6C;AAC7C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,kDAAgC;AAChC,kDAAgC"}
@@ -9,5 +9,4 @@ export interface ServerMethods {
9
9
  export type ServerMethodName = keyof ServerMethods;
10
10
  export type ServerMethodParameters<MethodName extends ServerMethodName> = Parameters<ServerMethods[MethodName]>;
11
11
  export type ServerMethodReturn<MethodName extends ServerMethodName> = Awaited<ReturnType<ServerMethods[MethodName]>>;
12
- export type ServerMethodFunction<MethodName extends ServerMethodName> = (...args: ServerMethodParameters<MethodName>) => Promise<ServerMethodReturn<MethodName>>;
13
12
  //# sourceMappingURL=methods.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/types/methods.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC7B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3C,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAClD;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,sBAAsB,CAAC,UAAU,SAAS,gBAAgB,IAAI,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;AAEhH,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,gBAAgB,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAErH,MAAM,MAAM,oBAAoB,CAAC,UAAU,SAAS,gBAAgB,IAAI,CACvE,GAAG,IAAI,EAAE,sBAAsB,CAAC,UAAU,CAAC,KACvC,OAAO,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/types/methods.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC7B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3C,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAClD;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,sBAAsB,CAAC,UAAU,SAAS,gBAAgB,IAAI,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;AAEhH,MAAM,MAAM,kBAAkB,CAAC,UAAU,SAAS,gBAAgB,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "@rocket.chat/ddp-client",
3
- "version": "0.3.4",
3
+ "version": "0.3.5-rc.2",
4
4
  "devDependencies": {
5
- "@swc/core": "^1.3.95",
6
- "@swc/jest": "^0.2.29",
7
- "@types/jest": "^29.5.12",
5
+ "@rocket.chat/jest-presets": "~0.0.1",
6
+ "@types/jest": "~29.5.12",
8
7
  "@types/ws": "^8.5.8",
9
8
  "eslint": "~8.45.0",
10
- "jest": "~29.6.4",
11
- "jest-environment-jsdom": "~29.6.4",
12
- "jest-websocket-mock": "^2.4.0",
13
- "ts-jest": "^29.1.2",
9
+ "jest": "~29.7.0",
10
+ "jest-websocket-mock": "~2.5.0",
14
11
  "typescript": "~5.3.3",
15
12
  "ws": "^8.13.0"
16
13
  },
@@ -18,12 +15,12 @@
18
15
  "@rocket.chat/emitter": "*"
19
16
  },
20
17
  "scripts": {
18
+ "build": "tsc",
19
+ "dev": "tsc --watch --preserveWatchOutput",
21
20
  "lint": "eslint --ext .js,.jsx,.ts,.tsx .",
22
21
  "lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
23
- "unit": "jest",
24
- "testunit": "jest",
25
- "build": "rm -rf dist && tsc -p tsconfig.json",
26
- "dev": "tsc -p tsconfig.json --watch --preserveWatchOutput"
22
+ "test": "jest",
23
+ "testunit": "jest"
27
24
  },
28
25
  "main": "./dist/index.js",
29
26
  "typings": "./dist/index.d.ts",
@@ -34,7 +31,8 @@
34
31
  "extends": "../../../package.json"
35
32
  },
36
33
  "dependencies": {
37
- "@rocket.chat/api-client": "^0.2.4",
38
- "@rocket.chat/rest-typings": "^6.11.1"
34
+ "@rocket.chat/api-client": "^0.2.5-rc.2",
35
+ "@rocket.chat/core-typings": "~6.12.0-rc.2",
36
+ "@rocket.chat/rest-typings": "^6.12.0-rc.2"
39
37
  }
40
38
  }