@supabase/realtime-js
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.2.0"; | ||
export declare const version = "2.3.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.2.0'; | ||
exports.version = '2.3.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -54,3 +54,3 @@ import { CHANNEL_STATES } from './lib/constants'; | ||
}> = RealtimePostgresInsertPayload<T> | RealtimePostgresUpdatePayload<T> | RealtimePostgresDeletePayload<T>; | ||
export declare type RealtimePostgresChangesFilter<T extends string> = { | ||
export declare type RealtimePostgresChangesFilter<T extends `${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}`> = { | ||
event: T; | ||
@@ -71,2 +71,5 @@ schema: string; | ||
PRESENCE = "presence", | ||
/** | ||
* listen to Postgres changes. | ||
*/ | ||
POSTGRES_CHANGES = "postgres_changes" | ||
@@ -73,0 +76,0 @@ } |
@@ -55,2 +55,5 @@ "use strict"; | ||
REALTIME_LISTEN_TYPES["PRESENCE"] = "presence"; | ||
/** | ||
* listen to Postgres changes. | ||
*/ | ||
REALTIME_LISTEN_TYPES["POSTGRES_CHANGES"] = "postgres_changes"; | ||
@@ -57,0 +60,0 @@ })(REALTIME_LISTEN_TYPES = exports.REALTIME_LISTEN_TYPES || (exports.REALTIME_LISTEN_TYPES = {})); |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.2.0"; | ||
export declare const version = "2.3.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.2.0'; | ||
export const version = '2.3.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -54,3 +54,3 @@ import { CHANNEL_STATES } from './lib/constants'; | ||
}> = RealtimePostgresInsertPayload<T> | RealtimePostgresUpdatePayload<T> | RealtimePostgresDeletePayload<T>; | ||
export declare type RealtimePostgresChangesFilter<T extends string> = { | ||
export declare type RealtimePostgresChangesFilter<T extends `${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}`> = { | ||
event: T; | ||
@@ -71,2 +71,5 @@ schema: string; | ||
PRESENCE = "presence", | ||
/** | ||
* listen to Postgres changes. | ||
*/ | ||
POSTGRES_CHANGES = "postgres_changes" | ||
@@ -73,0 +76,0 @@ } |
@@ -26,2 +26,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
REALTIME_LISTEN_TYPES["PRESENCE"] = "presence"; | ||
/** | ||
* listen to Postgres changes. | ||
*/ | ||
REALTIME_LISTEN_TYPES["POSTGRES_CHANGES"] = "postgres_changes"; | ||
@@ -28,0 +31,0 @@ })(REALTIME_LISTEN_TYPES || (REALTIME_LISTEN_TYPES = {})); |
{ | ||
"name": "@supabase/realtime-js", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Listen to realtime updates to your PostgreSQL database", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,1 +0,1 @@ | ||
export const version = '2.2.0' | ||
export const version = '2.3.0' |
@@ -60,6 +60,20 @@ import { CHANNEL_EVENTS, CHANNEL_STATES } from './lib/constants' | ||
export type RealtimePostgresChangesFilter<T extends string> = { | ||
export type RealtimePostgresChangesFilter< | ||
T extends `${REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}` | ||
> = { | ||
/* | ||
* The type of database change to listen to. | ||
*/ | ||
event: T | ||
/* | ||
* The database schema to listen to. | ||
*/ | ||
schema: string | ||
/* | ||
* The database table to listen to. | ||
*/ | ||
table?: string | ||
/* | ||
* Receive database changes when filter is matched. | ||
*/ | ||
filter?: string | ||
@@ -80,2 +94,5 @@ } | ||
PRESENCE = 'presence', | ||
/** | ||
* listen to Postgres changes. | ||
*/ | ||
POSTGRES_CHANGES = 'postgres_changes', | ||
@@ -82,0 +99,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345134
6128