Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: publish new package versions #2046

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 26, 2024

This PR was opened by the Changesets release 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:

    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

@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:

    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

  • 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

Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 0c3837b
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/674f2c701e639b000829e439
😎 Deploy Preview https://deploy-preview-2046--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot force-pushed the changeset-release/main branch from 3173baa to 0c3837b Compare December 3, 2024 16:06
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@KyleAMathews KyleAMathews merged commit ab1ea51 into main Dec 3, 2024
4 checks passed
@KyleAMathews KyleAMathews deleted the changeset-release/main branch December 3, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant