1.0.0 (2022-12-22)
Bug Fixes
-
add back heartbeat message push (59da9b8)
-
add RealtimeChannel (ead7a93)
-
Added call back on 'otherEvent' to check if ignoredSpy is not called (7c2585a)
-
adds a return type to disconnect() (7dfcbc2)
-
bumps websocket to make it isomorphic (5033c8a)
-
change channel configs to config (fab3e28)
-
Close open handles to allow testing without --exit flag (#99) (93c6f44)
-
default current presences to empty array (c134659)
-
disconnect callback should be optional (1d32c12)
-
enable compatibility with single tenant Realtime (8f9b1e1)
-
error parsing JSON when transforming array data types (f304e7d)
-
force client to listen to unique subscriptions (816fef2)
-
generate realtime config via filter and map methods (75fa3a6)
-
gitignore only v2 docs (35863b4)
-
improve realtime postgres changes types (cdc0982)
-
include @types/phoenix as dependencies (d3172f6)
-
include src for source maps (6a681e3)
-
instructions to disconnect the socket (54b9be6)
-
keep second channel with same topic open on rapid re-subscribe (702594e)
-
keep second channel with same topic open on rapid re-subscribe (c32db96)
-
large influx of messages prevents heartbeat reply (6cc3cc4)
-
migrates all exports over to the proper naming conventions (d9baed7)
-
move @types/* to devDependencies (f9bc6b0)
-
moves type to prod dependencies since it is imported into projects (30ca281)
-
name (6ab2563)
-
only push tokens to joined channels (8a6b28d)
-
pass postgres changes to getPayloadRecords (2a1b284)
-
prevent channel configs completely overwrite (5f36715)
-
push access token only to joined channels (a6fa3f3)
-
remove lodash clonedeep and isequal (f47fb71)
-
remove RealtimeChannel and RealtimePresence (836e8d6)
-
remove URL instance with vsndate from params (69d5a3d)
-
resolve channel send when time out (ae6a18b)
-
return push instance on channel send (a6befa6)
-
set heartbeat ref to null on incoming message (603e94b)
-
trigger release for exporting Options type fix (c260097)
-
types in package.json (31c6092)
-
Typescript not picking up the latest changes. Adds some jsdoc to trigger a new deploy (2580f2b)
-
update channel join payload for successful reconnect (b5f73ae)
-
update eventFilter type (3f73f39)
-
update logic that sets versionDate in RealtimeClient instance (00c9f86)
-
update node versions in ci, docs, release yml files (#110) (7aa12b6)
-
update Push to enable RealtimeChannel (b4de4c2)
-
update RealtimeChannel .on method args (4d3e1ac)
-
update RealtimeClient to support RealtimeChannel (8b79724)
-
w3cwebsocket typings (6f0f126)
Features
- add channel config type and enums (2f5e706)
- add default configs for broadcast, presence, and db changes (9165dcb)
- add new API for Broadcast and Presence (025b9d7)
- add on bindings to subscribe (b5b72a7)
- add presence (c841e22)
- add simple throttle for Broadcast and Presence (3b235c1)
- change presence_id to presence_ref (d2365c2)
- export Postgres Changes insert, update, delete, and filter types (243835b)
- export RealtimeChannel (cdc37b3)
- generate release (a707ac3)
- generate release (85af5ab)
- move helper methods from supabase-js (b3eafe8)
- move presence callbacks from client to channel (8a74aa3)
- nest defaults under configs key (d68c74e)
- push access token to every channel during heartbeat (4bae15b)
- Release V2 RC (e9aece8)
- remove channel list helper method (4e930ff)
- remove channel send method (e7ba487)
- remove channel track and untrack helper methods (6df1a24)
- return channel instance in subscribe call (d05a88c)
- return promise on channel send (29aee6e)
- return this for RealtimeChannel on and off methods (fb718e6)
- send configs payload on subscribing (dd2e8bc)
- trigger release for exporting Options type (fbcfffb)
- update transformers to accept already transformed walrus changes (#107) (3193400)
- use channel or subscription depending on versionDate (eb34e47)
BREAKING CHANGES
-
Release V2
-
join()has been renamed tosubscribe()andleave()has been renamed tounsubscribe(). -
init TS
-
remove dist folder
-
Don't track the dist
-
Updates the easy files
-
Converts all to Typescript
-
chore: Making most of the tests work
-
chore: prettify tests
-
chore: fixes broken test
-
chore: remove old JS files
-
Convert all comments to JSDoc
-
chore: cleans up the root folder
-
Cleans up packages
-
Moves types to dev dependencies
-
Adds docs
-
Adds Github test Action to run on every push
-
This one is a bit opnioninated, but I decided to change join() and leave() to subscribe() and unsubscribe(). This is more consistent with our other libraries
-
fix: errors should be returned as objects
-
feat: migrates scripts over to TS
-
chore: adds a baseline example
-
converts some to private
-
chore: Adds a basic example and notes in the Readme
-
docs: heading formatting
-
docs: renames the status listeners - this is much clearer
-
Adds some response types to the readme
-
chore: converts join error to subscribe
-
Adds event value transformers
-
Adds more details to the readme
-
Refines the example to get an understanding of channel events
-
Adds an example of how to unsubscribe and resubscribe
-
Moves over to semantic release