Releases: electric-sql/electric
Releases · electric-sql/electric
@electric-sql/[email protected]
@electric-sql/[email protected]
Patch Changes
- Updated dependencies [9886b08]
- Updated dependencies [dae3b0d]
- Updated dependencies [fbb66e9]
- @electric-sql/[email protected]
@core/[email protected]
Patch Changes
- 95b61e7: Configure sentry for error tracking.
@core/[email protected]
Patch Changes
- 6d9b73b: fix: make sure the client is not stuck when the request dies for some reason
@electric-sql/[email protected]
Patch Changes
- 67a9347: fix: only clear the React stream/shape cache when the previous stream/shape was aborted
@electric-sql/[email protected]
Minor Changes
-
e96928e: [BREAKING]: Move non-protocol options like table & where to the params sub-key
Context
Electric's TypeScript client is currently tightly coupled to PostgreSQL-specific options in its
ShapeStreamOptions
interface. As Electric plans to support multiple data sources in the future, we need to separate protocol-level options from source-specific options.Changes
- Created a new
PostgresParams
type to define PostgreSQL-specific parameters:table
: The root table for the shapewhere
: Where clauses for the shapecolumns
: Columns to include in the shapereplica
: Whether to send full or partial row updates
- Moved PostgreSQL-specific options from the top-level
ShapeStreamOptions
interface to theparams
sub-key - Updated
ParamsRecord
type to include PostgreSQL parameters - Updated the
ShapeStream
class to handle parameters from theparams
object - Updated documentation to reflect the changes
Migration Example
Before:
const stream = new ShapeStream({ url: 'http://localhost:3000/v1/shape', table: 'users', where: 'id > 100', columns: ['id', 'name'], replica: 'full', })
After:
const stream = new ShapeStream({ url: 'http://localhost:3000/v1/shape', params: { table: 'users', where: 'id > 100', columns: ['id', 'name'], replica: 'full', }, })
- Created a new
Patch Changes
- Updated dependencies [9c50e8f]
- Updated dependencies [af0c0bf]
- Updated dependencies [e96928e]
- @electric-sql/[email protected]
@core/[email protected]
Patch Changes
- 3584f67: Validate that user provided offset is not bigger than the shape's latest offset.
- 0dc844f: Remove redundant spans in open telemetry tracing.
- a16ab24: feat: add more telemetry
- 3c24208: Clean up directories when removing shapes.
Remove corrupted shapes from store when recovery fails. - 4e50204: Telemetry for reporting replication lag.
- 704ac91: Include caching headers on 304 responses to prevent client from rechecking the previously cached ones over and over again.
- ceec2d4: Assume process is not alive if registry is not alive.
- 37b4256: Improved replication steam processing for where clauses in the form
field = const
orfield = const AND another_condition
- 64fe275: Restore the automatic fallback to unencrypted database connections when SSL isn't available.
- 5b1c3e6: Resolve naming confusion between
ELECTRIC_LOG_CHUNK_BYTES_THRESHOLD
and logging-related configuration options. AddELECTRIC_
prefix toLOG_LEVEL
toLOG_OTP_REPORTS
config options. Introduce a new config option namedELECTRIC_LOG_COLORS
. - e815b91: Log error but don't fall over if failing to initialise recovered shape
@core/[email protected]
@core/[email protected]
Patch Changes
- 72c7c46: fix: don't execute
ALTER TABLE
statements if not necessary