-
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 (beta) (#2145)
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.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`.⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ # Releases ## @electric-sql/experimental@0.1.2-beta.1 ### Patch Changes - Updated dependencies [ade15b9] - Updated dependencies [1c28aee] - Updated dependencies [ade15b9] - Updated dependencies [dd5aeab] - @electric-sql/client@1.0.0-beta.2 ## @electric-sql/react@1.0.0-beta.2 ### Patch Changes - ade15b9: Expose `stream` in the useShape result data. This allows React components to easily access the stream to match on. - Updated dependencies [ade15b9] - Updated dependencies [1c28aee] - Updated dependencies [ade15b9] - Updated dependencies [dd5aeab] - @electric-sql/client@1.0.0-beta.2 ## @electric-sql/client@1.0.0-beta.2 ### Patch Changes - ade15b9: Expose `shape.stream` as public readonly property. - 1c28aee: Start streaming only after at least one subscriber is present. - ade15b9: Use "get" instead of "has" for checking searchParams Not all implementations of JS have the has(name, value) syntax e.g. Expo. - 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. ```typescript 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/elixir-client@0.2.6-beta.0 ### 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. ## @core/sync-service@1.0.0-beta.2 ### 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` for `waiting` and `starting` health status - accepts requests but will fail to service them. - d7e7c72: Introduced `PublicationManager` process to create and clean up publication filters. ## @electric-sql/docs@0.0.2-beta.0 ### 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. ```typescript 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 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8840548
commit e3be748
Showing
13 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# @electric-sql/docs | ||
|
||
## 0.0.2-beta.0 | ||
|
||
### 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. | ||
|
||
```typescript | ||
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 |
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