Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"repository-registry",
"resolver-cache-use-official",
"router-no-meta",
"rpc-stream-support",
"salty-weeks-walk",
"schema-concurrency-unbounded",
"schema-json-collections",
Expand Down
11 changes: 11 additions & 0 deletions packages/effect-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @effect-app/prelude

## 4.0.0-beta.177

### Minor Changes

- 89d8b3a: Add Effect RPC `Stream` support to the wrapper.

- New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
- Server router (`@effect-app/infra` `routing.ts`) accepts stream resources whose handlers return a `Stream.Stream<A, E, R>` (or a function from input to one). Forwards `stream: true` to `Rpc.make` so `RpcSchema.Stream` wrapping is applied. Streams bypass `applyRequestTypeInterruptibility` and the `Effect.withSpan` wrapping (the RPC server adds its own span).
- Client (`apiClientFactory.ts`) detects stream resources, forwards `stream: true` when constructing `RpcGroup`, and exposes the per-request `handler` as a `Stream.Stream` (via `Stream.unwrap` over the `ManagedRuntime` context) instead of an `Effect`. `Invalidation.CommandResponseWithMetaData` continues to apply only to commands.
- New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.

## 4.0.0-beta.176

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/effect-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "effect-app",
"version": "4.0.0-beta.176",
"version": "4.0.0-beta.177",
"license": "MIT",
"type": "module",
"dependencies": {
Expand Down
16 changes: 16 additions & 0 deletions packages/infra/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @effect-app/infra

## 4.0.0-beta.177

### Minor Changes

- 89d8b3a: Add Effect RPC `Stream` support to the wrapper.

- New `Stream` request constructor on `TaggedRequestFor` parallel to `Query`/`Command`. Emits resources with `type: "stream"`.
- Server router (`@effect-app/infra` `routing.ts`) accepts stream resources whose handlers return a `Stream.Stream<A, E, R>` (or a function from input to one). Forwards `stream: true` to `Rpc.make` so `RpcSchema.Stream` wrapping is applied. Streams bypass `applyRequestTypeInterruptibility` and the `Effect.withSpan` wrapping (the RPC server adds its own span).
- Client (`apiClientFactory.ts`) detects stream resources, forwards `stream: true` when constructing `RpcGroup`, and exposes the per-request `handler` as a `Stream.Stream` (via `Stream.unwrap` over the `ManagedRuntime` context) instead of an `Effect`. `Invalidation.CommandResponseWithMetaData` continues to apply only to commands.
- New `RequestStreamHandler` / `RequestStreamHandlerWithInput` shapes in `clientFor.ts`; `RequestHandlers` dispatches on `type: "stream"`.

### Patch Changes

- Updated dependencies [89d8b3a]
- effect-app@4.0.0-beta.177

## 4.0.0-beta.176

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/infra/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect-app/infra",
"version": "4.0.0-beta.176",
"version": "4.0.0-beta.177",
"license": "MIT",
"type": "module",
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/vue-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @effect-app/vue-components

## 4.0.0-beta.177

### Patch Changes

- Updated dependencies [89d8b3a]
- effect-app@4.0.0-beta.177
- @effect-app/vue@4.0.0-beta.177

## 4.0.0-beta.176

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect-app/vue-components",
"version": "4.0.0-beta.176",
"version": "4.0.0-beta.177",
"scripts": {
"check": "vue-tsc",
"build": "pnpm build:run",
Expand Down
11 changes: 9 additions & 2 deletions packages/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @effect-app/vue

## 4.0.0-beta.177

### Patch Changes

- Updated dependencies [89d8b3a]
- effect-app@4.0.0-beta.177

## 4.0.0-beta.176

### Patch Changes
Expand All @@ -21,8 +28,8 @@

```ts
useMutation(startExportCommand, {
select: (result) => pollUntilDone(result.jobId)
})
select: (result) => pollUntilDone(result.jobId),
});
```

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect-app/vue",
"version": "4.0.0-beta.176",
"version": "4.0.0-beta.177",
"license": "MIT",
"type": "module",
"homepage": "https://github.com/effect-ts-app/libs/tree/main/packages/vue",
Expand Down