Releases: electric-sql/electric
Releases · electric-sql/electric
@core/[email protected]
Patch Changes
- 84eb729: Fix arithmetic bugs in system memory stat calculations.
@core/[email protected]
Patch Changes
- 8987142: Do not trap exits in
Electric.Shapes.Consumer
- not handled. - 218b7d4: fix: truncates no longer cause a stop to an incoming replication stream
- 7caccbf: Return
202
forwaiting
andstarting
health status - accepts requests but will fail to service them. - d7e7c72: Introduced
PublicationManager
process to create and clean up publication filters.
@electric-sql/[email protected]
@core/[email protected]
Patch Changes
- 1b8dce0: Fix race condition where response comes before listener has monitored itself.
- 71b8ab2: Add pool behaviour for the Elixir client to allow for per-client persistent connections. Add request timestamp and shape handle to replication stream messages.
- fc1796a: Fix stalled elixir client streams by ensuring that requests are always made, even if calling process dies
- 01c63ae: Fix race condition in elixir client when multiple simultaneous clients are streaming the same shape
- 9f0b96a: Add generic params to client config that are appended to every request, remove database_id top-level config as it can be done via the params.
@electric-sql/[email protected]
Patch Changes
- Updated dependencies [ade15b9]
- Updated dependencies [1c28aee]
- Updated dependencies [ade15b9]
- Updated dependencies [dd5aeab]
- @electric-sql/[email protected]
@electric-sql/[email protected]
Patch Changes
-
dd5aeab: This PR adds support for function-based options in the TypeScript client's params and headers. Functions can be either synchronous or asynchronous and are resolved in parallel when needed.
const stream = new ShapeStream({ url: "http://localhost:3000/v1/shape", params: { table: "items", userId: () => getCurrentUserId(), filter: async () => await getUserPreferences(), }, headers: { Authorization: async () => `Bearer ${await getAccessToken()}`, }, })
Common Use Cases
- Authentication tokens that need to be refreshed
- User-specific parameters that may change
- Dynamic filtering based on current state
- Multi-tenant applications where context determines the request
@core/[email protected]
@electric-sql/[email protected]
Patch Changes
- 1255205: First beta release
- Updated dependencies [1255205]
- @electric-sql/[email protected]
@electric-sql/[email protected]
Patch Changes
- Updated dependencies [1255205]
- @electric-sql/[email protected]