Skip to content

Releases: electric-sql/electric

@electric-sql/[email protected]

09 Dec 17:23
255da54
Compare
Choose a tag to compare

Patch Changes

  • dae3b0d: Fix node 16 cjs import
  • 9886b08: Expose stream in the useShape result data. This allows React components to easily access the stream to match on.
  • Updated dependencies [9886b08]
  • Updated dependencies [dae3b0d]
  • Updated dependencies [fbb66e9]

@electric-sql/[email protected]

09 Dec 17:23
255da54
Compare
Choose a tag to compare

Patch Changes

@core/[email protected]

09 Dec 17:23
255da54
Compare
Choose a tag to compare

Patch Changes

  • 95b61e7: Configure sentry for error tracking.

@core/[email protected]

04 Dec 10:09
7392cad
Compare
Choose a tag to compare

Patch Changes

  • 6d9b73b: fix: make sure the client is not stuck when the request dies for some reason

@electric-sql/[email protected]

03 Dec 17:20
743b00e
Compare
Choose a tag to compare

Patch Changes

  • 67a9347: fix: only clear the React stream/shape cache when the previous stream/shape was aborted

@electric-sql/[email protected]

03 Dec 16:30
ab1ea51
Compare
Choose a tag to compare

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

    1. Created a new PostgresParams type to define PostgreSQL-specific parameters:
      • table: The root table for the shape
      • where: Where clauses for the shape
      • columns: Columns to include in the shape
      • replica: Whether to send full or partial row updates
    2. Moved PostgreSQL-specific options from the top-level ShapeStreamOptions interface to the params sub-key
    3. Updated ParamsRecord type to include PostgreSQL parameters
    4. Updated the ShapeStream class to handle parameters from the params object
    5. 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',
      },
    })

Patch Changes

@core/[email protected]

03 Dec 16:30
ab1ea51
Compare
Choose a tag to compare

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 or field = 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. Add ELECTRIC_ prefix to LOG_LEVEL to LOG_OTP_REPORTS config options. Introduce a new config option named ELECTRIC_LOG_COLORS.
  • e815b91: Log error but don't fall over if failing to initialise recovered shape

@core/[email protected]

03 Dec 16:30
ab1ea51
Compare
Choose a tag to compare

Patch Changes

  • ea5d03f: Fix mishandling of 400s - should terminate
  • af0c0bf: Always use sorted query parameters in official clients to ensure Shape URLs are cached consistently.

@core/[email protected]

25 Nov 08:48
ce3f3e2
Compare
Choose a tag to compare

Patch Changes

  • 72c7c46: fix: don't execute ALTER TABLE statements if not necessary

@electric-sql/[email protected]

21 Nov 15:11
6b61ddd
Compare
Choose a tag to compare

Patch Changes