@supabase/realtime-js 2.105.5-beta.0 → 2.105.5-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/realtime-js",
3
- "version": "2.105.5-beta.0",
3
+ "version": "2.105.5-beta.8",
4
4
  "description": "Listen to realtime updates to your PostgreSQL database",
5
5
  "keywords": [
6
6
  "realtime",
@@ -27,20 +27,8 @@
27
27
  },
28
28
  "author": "Supabase",
29
29
  "license": "MIT",
30
- "scripts": {
31
- "build": "npm run build:main && npm run build:module",
32
- "build:main": "tsc -p tsconfig.json",
33
- "build:module": "tsc -p tsconfig.module.json",
34
- "test": "vitest run",
35
- "test:watch": "vitest",
36
- "test:coverage": "vitest run --coverage.enabled true --coverage.reporter=text",
37
- "docs": "typedoc src/index.ts --out docs/v2",
38
- "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
39
- "check-exports": "attw --pack .",
40
- "test:ci": "vitest run --coverage"
41
- },
42
30
  "dependencies": {
43
- "@supabase/phoenix": "^0.4.1",
31
+ "@supabase/phoenix": "^0.4.2",
44
32
  "tslib": "2.8.1"
45
33
  },
46
34
  "devDependencies": {
@@ -54,5 +42,17 @@
54
42
  },
55
43
  "engines": {
56
44
  "node": ">=20.0.0"
45
+ },
46
+ "scripts": {
47
+ "build": "npm run build:main && npm run build:module",
48
+ "build:main": "tsc -p tsconfig.json",
49
+ "build:module": "tsc -p tsconfig.module.json",
50
+ "test": "vitest run",
51
+ "test:watch": "vitest",
52
+ "test:coverage": "vitest run --coverage.enabled true --coverage.reporter=text",
53
+ "docs": "typedoc src/index.ts --out docs/v2",
54
+ "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
55
+ "check-exports": "attw --pack .",
56
+ "test:ci": "vitest run --coverage"
57
57
  }
58
- }
58
+ }
@@ -809,6 +809,8 @@ export default class RealtimeChannel {
809
809
  * @remarks
810
810
  * - When using REST you don't need to subscribe to the channel
811
811
  * - REST calls are only available from 2.37.0 onwards
812
+ * - If you create a channel only to send a REST broadcast, remove it from
813
+ * the client when the send completes
812
814
  *
813
815
  * @example Send a message via websocket
814
816
  * ```js
@@ -832,9 +834,13 @@ export default class RealtimeChannel {
832
834
  *
833
835
  * @example Send a message via REST
834
836
  * ```js
835
- * supabase
836
- * .channel('room1')
837
- * .httpSend('cursor-pos', { x: Math.random(), y: Math.random() })
837
+ * const channel = supabase.channel('room1')
838
+ *
839
+ * try {
840
+ * await channel.httpSend('cursor-pos', { x: Math.random(), y: Math.random() })
841
+ * } finally {
842
+ * await supabase.removeChannel(channel)
843
+ * }
838
844
  * ```
839
845
  */
840
846
  async send(
File without changes
package/src/index.ts CHANGED
File without changes
File without changes
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.105.5-beta.0'
7
+ export const version = '2.105.5-beta.8'