From 9e47c217ec031edeadfd16caf14a31a3ad54bb1b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:34:59 +0000 Subject: [PATCH] Version Packages --- .tegami/2026-07-31-ms93ozuq.md | 8 -------- .tegami/publish-lock.yaml | 6 +++--- CHANGELOG.md | 6 ++++++ bun.lock | 3 +++ package.json | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 .tegami/2026-07-31-ms93ozuq.md diff --git a/.tegami/2026-07-31-ms93ozuq.md b/.tegami/2026-07-31-ms93ozuq.md deleted file mode 100644 index 0873faa..0000000 --- a/.tegami/2026-07-31-ms93ozuq.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -packages: - npm:@tiesen/effect-tanstack-query: patch ---- - -## Make react optional peerDependency - -Made `react` an optional peer dependency for `@tiesen/effect-tanstack-query`. diff --git a/.tegami/publish-lock.yaml b/.tegami/publish-lock.yaml index d6b4112..5a2c0d3 100644 --- a/.tegami/publish-lock.yaml +++ b/.tegami/publish-lock.yaml @@ -1,10 +1,10 @@ core:changelogs: - - content: "---\npackages:\n npm:@tiesen/effect-tanstack-query:\n type: patch\n---\n\n### Refactor & Improvements\n\n- **Shared Stream Processing**: Implemented `Stream.share({ capacity: 'unbounded' })` to split the SSE stream into two parallel branches (`keepAliveStream` and `dataStream`) without re-subscribing to or re-consuming the HTTP body.\n- **Keep-Alive Timeout Handling**: Added an automatic disconnection and reconnection mechanism using `Stream.timeout(keepAliveTimeout)` if no `:keep-alive` ping is received from the server within the specified window.\n- **Robust Reconnection Loop**: Encapsulated the stream execution within an `Effect.gen` runner that explicitly yields `Effect.fail('restart')` upon completion, triggering automatic **retries** with exponential backoff (`Schedule.exponential('3 seconds')`).\n- **Graceful Error Catching**: Explicitly handled `HttpClientError`, ignoring harmless `DecodeError` exceptions while properly delegating other HTTP errors to the `onError` callback.\n- **Enhanced Abort Signal Lifecycle**: Improved integration with `AbortSignal` to guarantee clean fiber cancellation (`Fiber.interrupt`) whenever a subscription is unsubscribed or aborted.\n" - filename: 2026-07-31-ms924ofx.md + - content: "---\npackages:\n npm:@tiesen/effect-tanstack-query:\n type: patch\n---\n\n## Make react optional peerDependency\n\nMade `react` an optional peer dependency for `@tiesen/effect-tanstack-query`.\n" + filename: 2026-07-31-ms93ozuq.md v: 0.0.0 core:packages: - changelogIds: - - 2026-07-31-ms924ofx.md + - 2026-07-31-ms93ozuq.md id: npm:@tiesen/effect-tanstack-query updated: true npm:packages: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b6521b..ba16456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## @tiesen/effect-tanstack-query@0.0.10 + +### Make react optional peerDependency + +Made `react` an optional peer dependency for `@tiesen/effect-tanstack-query`. + ## @tiesen/effect-tanstack-query@0.0.9 ### Refactor & Improvements diff --git a/bun.lock b/bun.lock index c5caa31..57b1ef1 100644 --- a/bun.lock +++ b/bun.lock @@ -16,6 +16,9 @@ "effect": ">=4.0.0-beta.100 || >=4.0.0", "react": ">=19.2.8", }, + "optionalPeers": [ + "react", + ], }, }, "patchedDependencies": { diff --git a/package.json b/package.json index a1bb6c4..cb14bfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tiesen/effect-tanstack-query", - "version": "0.0.9", + "version": "0.0.10", "private": false, "description": "Effortlessly bridge Effect HTTP API clients with TanStack Query. Enjoy end-to-end type safety, zero-boilerplate options, and built-in streaming support out of the box.", "keywords": [