@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/LICENSE +21 -0
- package/README.md +11 -11
- package/dist/main/RealtimeChannel.d.ts +9 -3
- package/dist/main/RealtimeChannel.d.ts.map +1 -1
- package/dist/main/RealtimeChannel.js +9 -3
- package/dist/main/RealtimeChannel.js.map +1 -1
- package/dist/main/lib/constants.d.ts +2 -2
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/module/RealtimeChannel.d.ts +9 -3
- package/dist/module/RealtimeChannel.d.ts.map +1 -1
- package/dist/module/RealtimeChannel.js +9 -3
- package/dist/module/RealtimeChannel.js.map +1 -1
- package/dist/module/lib/constants.d.ts +2 -2
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/src/RealtimeChannel.ts +9 -3
- package/src/RealtimeClient.ts +0 -0
- package/src/index.ts +0 -0
- package/src/lib/constants.ts +0 -0
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supabase/realtime-js",
|
|
3
|
-
"version": "2.105.5-beta.
|
|
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.
|
|
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
|
+
}
|
package/src/RealtimeChannel.ts
CHANGED
|
@@ -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
|
-
*
|
|
837
|
-
*
|
|
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(
|
package/src/RealtimeClient.ts
CHANGED
|
File without changes
|
package/src/index.ts
CHANGED
|
File without changes
|
package/src/lib/constants.ts
CHANGED
|
File without changes
|
package/src/lib/version.ts
CHANGED
|
@@ -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.
|
|
7
|
+
export const version = '2.105.5-beta.8'
|