-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: publish new package versions (#2046)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @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 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: ```typescript const stream = new ShapeStream({ url: 'http://localhost:3000/v1/shape', table: 'users', where: 'id > 100', columns: ['id', 'name'], replica: 'full', }) ``` After: ```typescript const stream = new ShapeStream({ url: 'http://localhost:3000/v1/shape', params: { table: 'users', where: 'id > 100', columns: ['id', 'name'], replica: 'full', }, }) ``` ### Patch Changes - Updated dependencies [9c50e8f] - Updated dependencies [af0c0bf] - Updated dependencies [e96928e] - @electric-sql/[email protected] ## @electric-sql/[email protected] ### Minor Changes - 9c50e8f: [BREAKING]: Remove databaseId option from ShapeStream in favor of params option. - 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: ```typescript const stream = new ShapeStream({ url: 'http://localhost:3000/v1/shape', table: 'users', where: 'id > 100', columns: ['id', 'name'], replica: 'full', }) ``` After: ```typescript const stream = new ShapeStream({ url: 'http://localhost:3000/v1/shape', params: { table: 'users', where: 'id > 100', columns: ['id', 'name'], replica: 'full', }, }) ``` ### Patch Changes - af0c0bf: Always use sorted query parameters in official clients to ensure Shape URLs are cached consistently. ## @core/[email protected] ### 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] ### 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 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e96928e
commit ab1ea51
Showing
23 changed files
with
140 additions
and
125 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters