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
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.

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.

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.

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), [`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), [`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)]:
- @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
11 changes: 11 additions & 0 deletions packages/adapter-conformance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @haverstack/adapter-conformance

## 0.11.0

### Minor Changes

- [#433](https://github.com/haverstack/core/pull/433) [`fdca4ca`](https://github.com/haverstack/core/commit/fdca4ca25760b19a79bc660404ebf95cf9c9048b) Thanks [@cuibonobo](https://github.com/cuibonobo)! - `enum` is a field kind: `{ kind: 'enum', values: [...] }` replaces `{ kind: 'string', enum: [...] }`. `defineType()` refuses the `enum` key on any field. `isCompatible()` now checks enums: a required enum accepts only an enum candidate whose values it lists all of, and a required `string` or `text` accepts an enum. An enum becoming a plain `string` is additive; a `string` becoming an enum needs a version bump. A typed read types an enum field as its listed values or any other string (`StoredContentOf`, `UnlistedValue`) and no longer throws on an unlisted value, since an enum can widen in place; typed writes still take only the listed values (`ContentOf`, `PatchOf`). `migration()` types both sides as `StoredContentOf`, so a step carries an unlisted value through. A typed `subscribe()` delivers a record that `migrateAll()` moves off the handle's version without its `record`, instead of throwing in the dispatcher. Conformance fixtures pin a 422 for a value outside the list and a 409 for removing values. The adapter conformance suite checks that an enum field sorts by value.

### Patch Changes

- Updated dependencies [[`7d30040`](https://github.com/haverstack/core/commit/7d30040c4b61b8e5881604d0c042fec9c7e45122), [`98401c0`](https://github.com/haverstack/core/commit/98401c0a1a8b86fd2bfec74072ca3c3504320b66), [`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), [`d0b7950`](https://github.com/haverstack/core/commit/d0b795047ec9f8920a717a075f091cfa2462dc66), [`f616aaa`](https://github.com/haverstack/core/commit/f616aaa741c97fe1de1cfb262081e1f378082051), [`9b4adef`](https://github.com/haverstack/core/commit/9b4adef9bbb205ef27c161724dd2fe863254ffd2), [`89e0a07`](https://github.com/haverstack/core/commit/89e0a07b03ade71449cd20b7ad0333761c39a41f)]:
- @haverstack/core@0.42.0

## 0.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-conformance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haverstack/adapter-conformance",
"version": "0.10.0",
"version": "0.11.0",
"description": "Runnable conformance suite for StackRecordAdapter/StackBlobAdapter implementers — the invariants docs/spec/adapters.md documents, as tests you point at your own adapter",
"type": "module",
"exports": {
Expand Down
Loading
Loading