8.2.0 (2023-07-13)
8.1.0 (2023-07-13)
- client: allow unsubscribing the "once" call (0fca516)
- client: issues with reconnecting after a disconnect (de37704)
- client: websocket reconnection issues (339d190)
8.0.2 (2023-07-13)
- core: type for GoodbyeMessage (d67c550)
8.0.1 (2023-07-13)
- client: wrong types for connect function (85e3910)
8.0.0 (2023-07-12)
- client: The client now requires a ".connect()" call to establish a connection.
- client: add connect function to allow initializing without connecting (5910eac)
- docs: broken links (a1d8fea)
7.2.0 (2023-06-02)
- allow sending a disconnect reason to the client (03f8fdb)
- server: add api to manage client connections (a792f41)
7.1.0 (2023-04-30)
- server: add hook that is called on initialization (b872ab1)
- replace clone function with an implementation that is 3x as fast (e469b78)
7.0.0 (2023-04-02)
- server: The server doesn't start automatically anymore. It now requires a .listen() call.
- server: Deprecated type alias SocketDB has been removed. Use SocketDBServerAPI instead.
- core: Removed deprecated type aliases KeyValue & Value. Use Json & LeafValue instead.
- This update affects both client & server. Make sure to update both.
- add heartbeat mechanism (ce491cd)
- add intercept api to make it easier to call into hooks (ebeadd6), closes #50
- core: remove deprecated type exports (1964b4f)
- server: remove auto-listen feature (3f32429)
- server: remove deprecated type alias (492a965)
6.2.0 (2023-03-26)
- server: allow adding multiple callbacks to the default websocketServer (a0e932f)
6.1.0 (2023-02-10)
- server: add schema type for the server (91dee56)
- client: wrong schema for the root instance (1b6abb8)
6.0.0 (2023-02-09)
- server: The interface for custom websocket-servers has changed. It now needs to return a listen function.
- server: add api for creatinging a user session context (40a8f4c)
5.0.1 (2023-01-25)
- client: updates being sent even if nothing has changed (801fcfc)
5.0.0 (2023-01-20)
- core: the store now returns null if there is no data for a given path instead of always returning an empty node. if you use a custom store or use the store from @socketdb/core directly, make sure to update accordingly.
- changed the underlying events-system. this breaks compatibility with previous versions. make sure to upgrade both client and server.
- each callback not run again after data for path has been re-added (c3f0d35)
- core: store returns null for empty data (c3f0d35)
4.2.1 (2022-11-18)
- core: add undefined as allowed primitive value (1e9c35c)
4.2.0 (2022-11-17)
- core: improve SchemaDefinition types (5a33d8a)
4.1.1 (2022-11-15)
- wrong readme files for packages (fa9f411)
4.1.0 (2022-11-15)
4.0.2 (2022-11-15)
- client: check for websocket ready state before sending (7ac28ab)
4.0.1 (2022-11-15)
- wrong @socketdb/core dependency version (095ab6d)
4.0.0 (2022-11-14)
- socketdb has been split into @socketdb/client & @socketdb/server
- changed the underlying events-system. this breaks compatibility with previous versions. make sure to upgrade both client and server
3.9.0 (2022-05-13)
3.8.1 (2021-10-17)
- typescript: allow using types without providing a generic type (a973a93)
3.8.0 (2021-10-17)
- plugins: add server api to plugin context (35e6d76)
- typescript: add type checking by using a data schema (aeb93c4)
3.7.2 (2021-02-22)
- client: each called multiple times (09451f6)
3.7.1 (2021-02-22)
- client: not notifying "each" when higher path is subscribed (2da5a9c)
3.7.0 (2021-02-19)
- hooks: add hooks context (c12e6c7)
3.6.3 (2021-02-19)
- server: issue that server wont send update on deletion (f5d30a1)
- server: issue with sending empty updates (c270da2)
3.6.2 (2021-02-18)
3.6.1 (2021-02-17)
3.6.0 (2021-02-15)
- client: add disconnnect function (2c26ec4)
3.5.1 (2021-02-15)
- hooks: passing metadata as reference (3f4cff7)
3.5.0 (2021-02-13)
3.4.0 (2021-02-12)
- hooks: add delete hooks (3d2cabc)
3.3.0 (2021-02-12)
3.2.0 (2021-02-12)
3.1.0 (2021-02-11)
3.0.0 (2021-01-30)
- store nodes as objects (d754093)
- store api has changed. it now returns and accepts only node object types. this also changes the server api, as the update and get methods now also require data as node types.
2.2.0 (2021-01-21)
- client: add client side update batching (720c33a)
2.1.2 (2020-12-19)
- dependencies: fix missing ws dependency (5e56c75)
2.1.1 (2020-12-14)
- issues with unsubscribing and resubscribing (b3bfd99)
2.1.0 (2020-12-05)
- client: automatically reconnect on connection lost (06c636b)
2.0.0 (2020-11-23)
- client: add check for window object (5b0cbc5)
- replace socket.io with native websockets (8892b41)
- API for initializing Server and Client was changed. It does not need a socket.io instance anymore.