Skip to content
Merged
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
20 changes: 0 additions & 20 deletions .changeset/olive-donkeys-jam.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/adapter-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @haverstack/adapter-api

## 0.12.2

### Patch Changes

- [#200](https://github.com/haverstack/core/pull/200) [`ddeaaf4`](https://github.com/haverstack/core/commit/ddeaaf426b106e19bb7c8807722f781995a3dd48) Thanks [@cuibonobo](https://github.com/cuibonobo)! - Stop the change-feed client reconnecting against a refusal that will repeat.

`isFatalFeedError` ended the reconnect loop only for an unrenewable
credential (401) and an authorization refusal (403). Every other refusal the
server faulted the request for — a malformed cursor or filter answered
`400 bad_request`, say — was treated as transient, so `subscribeChanges()`
retried it with backoff indefinitely, settling into an attempt roughly every
15 seconds and reporting the same error to `onError` each time. The
subscriber was never told to stop, and `onReset` never fired, so the
application had nothing to reconcile from either.

The predicate now decides on the wire status: a `4xx` ends the loop, since
the reconnect sends the same request and would be refused the same way. A
`5xx` still reconnects, which is what keeps `timeout` — the answer a server
gives while shedding query load — from turning a busy server into a
permanently dead subscription.

## 0.12.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haverstack/adapter-api",
"version": "0.12.1",
"version": "0.12.2",
"description": "Remote server adapter for Haverstack",
"type": "module",
"exports": {
Expand Down
Loading