Skip to content

Latest commit

 

History

History
352 lines (177 loc) · 15.7 KB

CHANGELOG.md

File metadata and controls

352 lines (177 loc) · 15.7 KB

Changelog

8.2.0 (2023-07-13)

Features

  • client: add subscribeGroup that allows you to group subscriptions together (1d80cf4), closes #37

8.1.0 (2023-07-13)

Features

  • client: allow unsubscribing the "once" call (0fca516)

Bug Fixes

  • client: issues with reconnecting after a disconnect (de37704)
  • client: websocket reconnection issues (339d190)

8.0.2 (2023-07-13)

Bug Fixes

  • core: type for GoodbyeMessage (d67c550)

8.0.1 (2023-07-13)

Bug Fixes

  • client: wrong types for connect function (85e3910)

8.0.0 (2023-07-12)

⚠ BREAKING CHANGES

  • client: The client now requires a ".connect()" call to establish a connection.

Features

  • client: add connect function to allow initializing without connecting (5910eac)

Bug Fixes

7.2.0 (2023-06-02)

Features

  • allow sending a disconnect reason to the client (03f8fdb)
  • server: add api to manage client connections (a792f41)

7.1.0 (2023-04-30)

Features

  • server: add hook that is called on initialization (b872ab1)

Performance Improvements

  • replace clone function with an implementation that is 3x as fast (e469b78)

7.0.0 (2023-04-02)

⚠ BREAKING CHANGES

  • 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.

Features

  • add heartbeat mechanism (ce491cd)
  • add intercept api to make it easier to call into hooks (ebeadd6), closes #50

Code Refactoring

  • core: remove deprecated type exports (1964b4f)
  • server: remove auto-listen feature (3f32429)
  • server: remove deprecated type alias (492a965)

6.2.0 (2023-03-26)

Features

  • server: allow adding multiple callbacks to the default websocketServer (a0e932f)

6.1.0 (2023-02-10)

Features

  • server: add schema type for the server (91dee56)

Bug Fixes

  • client: wrong schema for the root instance (1b6abb8)

6.0.0 (2023-02-09)

⚠ BREAKING CHANGES

  • server: The interface for custom websocket-servers has changed. It now needs to return a listen function.

Features

  • server: add api for creatinging a user session context (40a8f4c)

5.0.1 (2023-01-25)

Bug Fixes

  • client: updates being sent even if nothing has changed (801fcfc)

5.0.0 (2023-01-20)

⚠ BREAKING CHANGES

  • 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.

Bug Fixes

  • each callback not run again after data for path has been re-added (c3f0d35)

Code Refactoring

  • core: store returns null for empty data (c3f0d35)

4.2.1 (2022-11-18)

Bug Fixes

  • core: add undefined as allowed primitive value (1e9c35c)

4.2.0 (2022-11-17)

Features

  • core: improve SchemaDefinition types (5a33d8a)

4.1.1 (2022-11-15)

Bug Fixes

  • wrong readme files for packages (fa9f411)

4.1.0 (2022-11-15)

Features

  • client: add commonjs support (ac670dc)
  • plugin-validate: add support for socketdb v4 (8c8c91e)

4.0.2 (2022-11-15)

Bug Fixes

  • client: check for websocket ready state before sending (7ac28ab)

4.0.1 (2022-11-15)

Bug Fixes

  • wrong @socketdb/core dependency version (095ab6d)

4.0.0 (2022-11-14)

⚠ BREAKING CHANGES

  • 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

Features

Code Refactoring

  • move to a monorepo (5ba03ed)
  • prefix socket events with a context (bb89f10)

3.9.0 (2022-05-13)

Features

  • server: allow adding a user context (b00f0bc), closes #26

3.8.1 (2021-10-17)

Bug Fixes

  • typescript: allow using types without providing a generic type (a973a93)

3.8.0 (2021-10-17)

Features

  • plugins: add server api to plugin context (35e6d76)
  • typescript: add type checking by using a data schema (aeb93c4)

3.7.2 (2021-02-22)

Bug Fixes

  • client: each called multiple times (09451f6)

3.7.1 (2021-02-22)

Bug Fixes

  • client: not notifying "each" when higher path is subscribed (2da5a9c)

3.7.0 (2021-02-19)

Features

  • hooks: add hooks context (c12e6c7)

3.6.3 (2021-02-19)

Bug Fixes

  • server: issue that server wont send update on deletion (f5d30a1)
  • server: issue with sending empty updates (c270da2)

3.6.2 (2021-02-18)

Bug Fixes

  • client: first subscription sometimes not receiving value (6100494), closes #19

3.6.1 (2021-02-17)

Bug Fixes

  • client: once cancels other subscriptions (7e68a87), closes #20

3.6.0 (2021-02-15)

Features

  • client: add disconnnect function (2c26ec4)

3.5.1 (2021-02-15)

Bug Fixes

  • hooks: passing metadata as reference (3f4cff7)

3.5.0 (2021-02-13)

Features

  • browser: add browser bundle (cd070eb), closes #13

3.4.0 (2021-02-12)

Features

  • hooks: add delete hooks (3d2cabc)

3.3.0 (2021-02-12)

Features

3.2.0 (2021-02-12)

Features

  • client: allow setting metadata (f35131b), closes #7

3.1.0 (2021-02-11)

Features

  • plugins: add hook based plugin system (a40b61a), closes #8

3.0.0 (2021-01-30)

Code Refactoring

BREAKING CHANGES

  • 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)

Features

  • client: add client side update batching (720c33a)

2.1.2 (2020-12-19)

Bug Fixes

  • dependencies: fix missing ws dependency (5e56c75)

2.1.1 (2020-12-14)

Bug Fixes

  • issues with unsubscribing and resubscribing (b3bfd99)

2.1.0 (2020-12-05)

Features

  • client: automatically reconnect on connection lost (06c636b)

2.0.0 (2020-11-23)

Bug Fixes

  • client: add check for window object (5b0cbc5)

Features

  • replace socket.io with native websockets (8892b41)

BREAKING CHANGES

  • API for initializing Server and Client was changed. It does not need a socket.io instance anymore.

1.0.0 (2020-11-19)

Bug Fixes

  • client: callback loop when setting a value in a once callback (1906c75)
  • client: changing a value of a received object is not recognized as change on set (45f67ae)