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
5 changes: 0 additions & 5 deletions .changeset/adapter-api-lifecycle-noops.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/adapter-api-open-body-errors.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/adapter-api-reauth-refusals.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/adapter-api-request-helpers.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/core-module-cleanup.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/core-subpath-folders.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/declarative-migrations.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/enum-field-kind.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/export-association-partition.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/fts5-not-in-phrase.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/merge-subscribe-options.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/mutate-fresh-read.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/record-id-messages.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/reserved-keys-rationale.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/split-adapter-api.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/split-conformance-fixtures.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/split-stack-modules.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/sqlite-shared-dedupe.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/sqlite-shared-indexes.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/typed-collection-filters.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/typed-collections.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/typed-migrations-at-open.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/validation-error-headers.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/versions-sequence-fixture.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/wire-types-dedupe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/write-expectation.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/writing-an-app-installs.md

This file was deleted.

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

## 0.41.0

### Minor Changes

- [#443](https://github.com/haverstack/core/pull/443) [`ffefedd`](https://github.com/haverstack/core/commit/ffefeddcad5479890978aa77e4ecd410932ec5f9) Thanks [@cuibonobo](https://github.com/cuibonobo)! - `APIAdapter` no longer defines `flush()` or `close()`. Both were no-ops, and both are optional on `StackAdapter`, so `Stack` skips them already; a caller invoking them directly on an `APIAdapter` can drop the call.

- [#443](https://github.com/haverstack/core/pull/443) [`ffefedd`](https://github.com/haverstack/core/commit/ffefeddcad5479890978aa77e4ecd410932ec5f9) Thanks [@cuibonobo](https://github.com/cuibonobo)! - A discovery or auth handshake response that is empty or not JSON now throws `APIAdapterError` naming the endpoint, as every other success response does, rather than a `SyntaxError` or `TypeError`.

- [#444](https://github.com/haverstack/core/pull/444) [`ddad23c`](https://github.com/haverstack/core/commit/ddad23c52f7d4d93e7a2910f65dfc9862167d5fc) Thanks [@cuibonobo](https://github.com/cuibonobo)! - Only a refused credential is reported as an authentication failure. A handshake step answering a bare `5xx` now throws `APIAdapterError` rather than `APIAdapterHandshakeError`, and a renewal that fails on a dropped connection or a server error surfaces as that `APIAdapterConnectionError` or `APIAdapterError` rather than as `APIAdapterReauthError`. A change feed whose renewal fails that way keeps reconnecting instead of stopping.

### Patch Changes

- [#443](https://github.com/haverstack/core/pull/443) [`d82f64e`](https://github.com/haverstack/core/commit/d82f64e8ad729bc34946c48c0d3ec0dc5805bd8b) Thanks [@cuibonobo](https://github.com/cuibonobo)! - Errors for a response missing its body now name the endpoint exactly as it was requested, encoded path and query string included.

- [#436](https://github.com/haverstack/core/pull/436) [`90d800a`](https://github.com/haverstack/core/commit/90d800a8e86c079855a17627582f015186ffe081) Thanks [@cuibonobo](https://github.com/cuibonobo)! - `StackRecordAdapter.subscribeChanges()` takes `SubscribeOptions`, the same options a subscriber passes to `subscribe()`. `SubscribeChangesOptions` is gone from `@haverstack/core/adapter`; it had the same fields, and `Stack` already forwarded every one of them, the subscriber's own `onError` included. A new `MutateOptions` type in `@haverstack/core/adapter` names the options every version-bumping adapter mutation takes. `GrantContent` and `InstallRequest` are now derived from `TypeGrant`.

- [#443](https://github.com/haverstack/core/pull/443) [`e18ddb7`](https://github.com/haverstack/core/commit/e18ddb7cf5f92423fdfb1a925c7f571c8f001196) Thanks [@cuibonobo](https://github.com/cuibonobo)! - Split the adapter into one module per layer. The package exports are unchanged.

- [#442](https://github.com/haverstack/core/pull/442) [`59f34ce`](https://github.com/haverstack/core/commit/59f34ce3cf777c39db3fa08bacb645f8001f9ae2) Thanks [@cuibonobo](https://github.com/cuibonobo)! - `@haverstack/wire-types` no longer restates shapes `@haverstack/core` already defines, and its auth handshake types share one prefix:
- `AuthChallengeRequest` and `AuthTokenRequest` are removed. Use `WireAuthChallengeRequest` and `WireAuthTokenRequest`, re-exported from `@haverstack/core/wire`, where the parsers that return them live.
- `AuthChallengeResponse` and `AuthTokenResponse` are renamed `WireAuthChallengeResponse` and `WireAuthTokenResponse` to match. Their shape is unchanged.
- `WireActor` and `WireChangeActor` are now aliases of core's `Actor` and `ChangeActor`. Their shape is unchanged.
- `WireAssociationEditsRequest` is removed; nothing referenced it.

- Updated dependencies [[`7d30040`](https://github.com/haverstack/core/commit/7d30040c4b61b8e5881604d0c042fec9c7e45122), [`98401c0`](https://github.com/haverstack/core/commit/98401c0a1a8b86fd2bfec74072ca3c3504320b66), [`a40cee0`](https://github.com/haverstack/core/commit/a40cee01aaaf37baf95be802f266ff1ee6ce320d), [`fdca4ca`](https://github.com/haverstack/core/commit/fdca4ca25760b19a79bc660404ebf95cf9c9048b), [`c427f43`](https://github.com/haverstack/core/commit/c427f435620c5766121723a54516f5a68df63561), [`90d800a`](https://github.com/haverstack/core/commit/90d800a8e86c079855a17627582f015186ffe081), [`7d30040`](https://github.com/haverstack/core/commit/7d30040c4b61b8e5881604d0c042fec9c7e45122), [`da5148b`](https://github.com/haverstack/core/commit/da5148bdb3e25e770e947df0c4c2af5b2a6f0f44), [`44fc3f6`](https://github.com/haverstack/core/commit/44fc3f645839c3a5a5eef3463826dcc0098bf089), [`d0b7950`](https://github.com/haverstack/core/commit/d0b795047ec9f8920a717a075f091cfa2462dc66), [`f616aaa`](https://github.com/haverstack/core/commit/f616aaa741c97fe1de1cfb262081e1f378082051), [`9b4adef`](https://github.com/haverstack/core/commit/9b4adef9bbb205ef27c161724dd2fe863254ffd2), [`59f34ce`](https://github.com/haverstack/core/commit/59f34ce3cf777c39db3fa08bacb645f8001f9ae2), [`89e0a07`](https://github.com/haverstack/core/commit/89e0a07b03ade71449cd20b7ad0333761c39a41f), [`55c33ba`](https://github.com/haverstack/core/commit/55c33ba3c0a55ec01796bce8b633fbad4a79cf76)]:
- @haverstack/core@0.42.0
- @haverstack/wire-types@0.41.0

## 0.40.0

### Minor 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.40.0",
"version": "0.41.0",
"description": "Remote server adapter for Haverstack",
"type": "module",
"exports": {
Expand Down
Loading
Loading