diff --git a/.changeset/personal-categories-ahead.md b/.changeset/personal-categories-ahead.md deleted file mode 100644 index bfa9893d6..000000000 --- a/.changeset/personal-categories-ahead.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@bounda-dev/core": minor -"@bounda-dev/postgresql": minor -"@bounda-dev/cloudflare": minor ---- - -The store keeps a catalogue of the personal-data categories a key was ever given in, `bounda_personal_categories`, which `personalKeys.add` records in its own transaction and a storage migration fills from the keys already there; `PersonalKeyStore` gains `recordedCategories()`, which an adapter of your own implements, and inspection lists it as the `personalCategories` store. An app reads it at start, so a category newer code adds while a deploy rolls is never forgotten by an instance of the older code, which cannot tell whether that code keeps it: a forget of a person as a whole, and `forgetTenant` whatever `despiteLegalObligations` says, fail with the new transient `CategoryAheadError` (`SCHEMA_AHEAD`, naming the category), forgetting nothing, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a reaction's `forget` tries again every `dispatcher.backoff.baseDelay` and the retention holds the person to try again later, neither spending an attempt; the retention keeps what a forgetting kept in that category. The forget ledger's reconciliation waits to forget such a category again, a forget of other categories goes ahead, and a category the store held at start that the app no longer declares is forgotten as before. A `CategoryAheadError` thrown inside a Durable Object reaches the Worker as itself. Roll forward: once the newer code runs on every instance, the forget goes through. diff --git a/.changeset/process-state-on-load.md b/.changeset/process-state-on-load.md deleted file mode 100644 index a030bdd8b..000000000 --- a/.changeset/process-state-on-load.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bounda-dev/core": minor ---- - -A process now parses its stored state with its `state` schema whenever it loads an instance, as it already parsed what a handler returns. A handler gets the state its type promises: a field added to the schema since the state was stored arrives with its default instead of absent, a field taken out of it is gone, and a process with no `state` gets `{}`. A stored state the schema refuses, such as a field whose type changed, fails every step that would hand it to a handler or write it again with `VALIDATION_FAILED` (`Process loaded a state for its schema refuses`), and its dead letter holds the instance as any failure does; routing, parking, completion and giving up on the letter still work. Personal fields are opened before the parse, and read as `null` once their person is forgotten. Since the state goes through `state` at every load and every step, a `.transform()` in it must take what it returns and return it unchanged. diff --git a/.changeset/stored-event-types.md b/.changeset/stored-event-types.md deleted file mode 100644 index 352304932..000000000 --- a/.changeset/stored-event-types.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@bounda-dev/core": minor -"@bounda-dev/sqlite": minor -"@bounda-dev/postgresql": minor -"@bounda-dev/cloudflare": minor -"@bounda-dev/react-router": minor -"@bounda-dev/cli": minor ---- - -The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 7dea5bd5b..dfe1a0aa6 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,18 @@ # @bounda-dev/cli +## 0.6.0 + +### Minor Changes + +- 84d5258: The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. + +### Patch Changes + +- Updated dependencies [84d5258] +- Updated dependencies [50d5538] +- Updated dependencies [84d5258] + - @bounda-dev/core@0.6.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index d8131fa29..6ef8bb1ca 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@bounda-dev/cli", - "version": "0.5.0", + "version": "0.6.0", "description": "The bounda CLI: reads the project layout and writes the registry and the types", "license": "Apache-2.0", "repository": { diff --git a/packages/cloudflare/CHANGELOG.md b/packages/cloudflare/CHANGELOG.md index 9b29f05a9..d58af563f 100644 --- a/packages/cloudflare/CHANGELOG.md +++ b/packages/cloudflare/CHANGELOG.md @@ -1,5 +1,19 @@ # @bounda-dev/cloudflare +## 0.6.0 + +### Minor Changes + +- 84d5258: The store keeps a catalogue of the personal-data categories a key was ever given in, `bounda_personal_categories`, which `personalKeys.add` records in its own transaction and a storage migration fills from the keys already there; `PersonalKeyStore` gains `recordedCategories()`, which an adapter of your own implements, and inspection lists it as the `personalCategories` store. An app reads it at start, so a category newer code adds while a deploy rolls is never forgotten by an instance of the older code, which cannot tell whether that code keeps it: a forget of a person as a whole, and `forgetTenant` whatever `despiteLegalObligations` says, fail with the new transient `CategoryAheadError` (`SCHEMA_AHEAD`, naming the category), forgetting nothing, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a reaction's `forget` tries again every `dispatcher.backoff.baseDelay` and the retention holds the person to try again later, neither spending an attempt; the retention keeps what a forgetting kept in that category. The forget ledger's reconciliation waits to forget such a category again, a forget of other categories goes ahead, and a category the store held at start that the app no longer declares is forgotten as before. A `CategoryAheadError` thrown inside a Durable Object reaches the Worker as itself. Roll forward: once the newer code runs on every instance, the forget goes through. +- 84d5258: The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. + +### Patch Changes + +- Updated dependencies [84d5258] +- Updated dependencies [50d5538] +- Updated dependencies [84d5258] + - @bounda-dev/core@0.6.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index fa63b2171..9e80bfb88 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@bounda-dev/cloudflare", - "version": "0.5.0", + "version": "0.6.0", "description": "Cloudflare Durable Objects storage adapter for Bounda", "license": "Apache-2.0", "repository": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 19adfdefb..4099ba9c8 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,13 @@ # @bounda-dev/core +## 0.6.0 + +### Minor Changes + +- 84d5258: The store keeps a catalogue of the personal-data categories a key was ever given in, `bounda_personal_categories`, which `personalKeys.add` records in its own transaction and a storage migration fills from the keys already there; `PersonalKeyStore` gains `recordedCategories()`, which an adapter of your own implements, and inspection lists it as the `personalCategories` store. An app reads it at start, so a category newer code adds while a deploy rolls is never forgotten by an instance of the older code, which cannot tell whether that code keeps it: a forget of a person as a whole, and `forgetTenant` whatever `despiteLegalObligations` says, fail with the new transient `CategoryAheadError` (`SCHEMA_AHEAD`, naming the category), forgetting nothing, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a reaction's `forget` tries again every `dispatcher.backoff.baseDelay` and the retention holds the person to try again later, neither spending an attempt; the retention keeps what a forgetting kept in that category. The forget ledger's reconciliation waits to forget such a category again, a forget of other categories goes ahead, and a category the store held at start that the app no longer declares is forgotten as before. A `CategoryAheadError` thrown inside a Durable Object reaches the Worker as itself. Roll forward: once the newer code runs on every instance, the forget goes through. +- 50d5538: A process now parses its stored state with its `state` schema whenever it loads an instance, as it already parsed what a handler returns. A handler gets the state its type promises: a field added to the schema since the state was stored arrives with its default instead of absent, a field taken out of it is gone, and a process with no `state` gets `{}`. A stored state the schema refuses, such as a field whose type changed, fails every step that would hand it to a handler or write it again with `VALIDATION_FAILED` (`Process loaded a state for its schema refuses`), and its dead letter holds the instance as any failure does; routing, parking, completion and giving up on the letter still work. Personal fields are opened before the parse, and read as `null` once their person is forgotten. Since the state goes through `state` at every load and every step, a `.transform()` in it must take what it returns and return it unchanged. +- 84d5258: The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. + ## 0.5.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 31a8fe45b..ea75490a4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@bounda-dev/core", - "version": "0.5.0", + "version": "0.6.0", "description": "Bounda runtime: aggregates, commands, events, policies, processes, read models", "license": "Apache-2.0", "repository": { diff --git a/packages/create-bounda/CHANGELOG.md b/packages/create-bounda/CHANGELOG.md index 433a63148..208034805 100644 --- a/packages/create-bounda/CHANGELOG.md +++ b/packages/create-bounda/CHANGELOG.md @@ -1,5 +1,9 @@ # create-bounda +## 0.6.0 + +No changes in this release. + ## 0.5.0 ### Minor Changes diff --git a/packages/create-bounda/package.json b/packages/create-bounda/package.json index 158ba7da7..3cae531a7 100644 --- a/packages/create-bounda/package.json +++ b/packages/create-bounda/package.json @@ -1,6 +1,6 @@ { "name": "create-bounda", - "version": "0.5.0", + "version": "0.6.0", "description": "Scaffold a new Bounda project", "license": "Apache-2.0", "repository": { diff --git a/packages/postgresql/CHANGELOG.md b/packages/postgresql/CHANGELOG.md index 1a109e5a5..487254b5e 100644 --- a/packages/postgresql/CHANGELOG.md +++ b/packages/postgresql/CHANGELOG.md @@ -1,5 +1,19 @@ # @bounda-dev/postgresql +## 0.6.0 + +### Minor Changes + +- 84d5258: The store keeps a catalogue of the personal-data categories a key was ever given in, `bounda_personal_categories`, which `personalKeys.add` records in its own transaction and a storage migration fills from the keys already there; `PersonalKeyStore` gains `recordedCategories()`, which an adapter of your own implements, and inspection lists it as the `personalCategories` store. An app reads it at start, so a category newer code adds while a deploy rolls is never forgotten by an instance of the older code, which cannot tell whether that code keeps it: a forget of a person as a whole, and `forgetTenant` whatever `despiteLegalObligations` says, fail with the new transient `CategoryAheadError` (`SCHEMA_AHEAD`, naming the category), forgetting nothing, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a reaction's `forget` tries again every `dispatcher.backoff.baseDelay` and the retention holds the person to try again later, neither spending an attempt; the retention keeps what a forgetting kept in that category. The forget ledger's reconciliation waits to forget such a category again, a forget of other categories goes ahead, and a category the store held at start that the app no longer declares is forgotten as before. A `CategoryAheadError` thrown inside a Durable Object reaches the Worker as itself. Roll forward: once the newer code runs on every instance, the forget goes through. +- 84d5258: The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. + +### Patch Changes + +- Updated dependencies [84d5258] +- Updated dependencies [50d5538] +- Updated dependencies [84d5258] + - @bounda-dev/core@0.6.0 + ## 0.5.0 ### Patch Changes diff --git a/packages/postgresql/package.json b/packages/postgresql/package.json index e6be80ddf..7c9661324 100644 --- a/packages/postgresql/package.json +++ b/packages/postgresql/package.json @@ -1,6 +1,6 @@ { "name": "@bounda-dev/postgresql", - "version": "0.5.0", + "version": "0.6.0", "description": "PostgreSQL storage adapter for Bounda", "license": "Apache-2.0", "repository": { diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 03c57cd64..788c1b7f6 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,20 @@ # @bounda-dev/react-router +## 0.6.0 + +### Minor Changes + +- 84d5258: The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. + +### Patch Changes + +- Updated dependencies [84d5258] +- Updated dependencies [50d5538] +- Updated dependencies [84d5258] + - @bounda-dev/core@0.6.0 + - @bounda-dev/cloudflare@0.6.0 + - @bounda-dev/cli@0.6.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 4e8751d64..e4137dc5d 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@bounda-dev/react-router", - "version": "0.5.0", + "version": "0.6.0", "description": "React Router framework-mode integration for Bounda", "license": "Apache-2.0", "repository": { diff --git a/packages/sqlite/CHANGELOG.md b/packages/sqlite/CHANGELOG.md index b0b7a99d2..173b06f85 100644 --- a/packages/sqlite/CHANGELOG.md +++ b/packages/sqlite/CHANGELOG.md @@ -1,5 +1,18 @@ # @bounda-dev/sqlite +## 0.6.0 + +### Minor Changes + +- 84d5258: The store keeps a catalogue of the kinds of event it holds, `bounda_event_types` (aggregate type, type and schema version), which every append records in its own transaction and a storage migration fills from the events already there. An app checks it at start and refuses, with a `ConfigurationError` naming each, a store holding an event newer code wrote: a schema version past the one its module reads, or an event of the runtime's own a newer Bounda wrote. An event newer code writes while the app runs is refused by every read with the new transient `SchemaAheadError` (`SCHEMA_AHEAD`), naming the event and the version this code reads, and never read in a shape it was not written in: a command on its stream fails with it, which `@bounda-dev/react-router` and `@bounda-dev/cloudflare` answer with 503; a policy, process, recipient notice or scheduled command tries again every `dispatcher.backoff.baseDelay`, spending none of its attempts, and is never dead-lettered, whatever its retry says; each subscriber stops right before the event on its own, its lag naming it; a rebuild pauses, to go on once that code runs; `app.exportPersonalData`, a redaction, a restriction and `bounda forgotten` refuse it. An event of a kind no module reads that the catalogue held at start is read as stored, as before; one no Bounda writer recorded fails with a `ConfigurationError`. `EventStore` gains `types()`, which an adapter of your own implements, as `InboxLedger` gains `release()`, which settles a claim as failed and takes back the attempt it counted; `EventStore.reseal` takes, for each event, `from`, what the caller read it as, writes the event only while it still holds that, and resolves to the positions it left, so the backfill of personal data written before its marks never writes back an event another instance wrote again while it read it, in a newer shape or sealed, and reads it again on its next pass; inspection lists the catalogue as the `eventTypes` store. `RUNTIME_SCHEMA_VERSION` and `SCHEDULED_COMMAND_FAILED_EVENT` are exported, and an event named `ScheduledCommandFailed` is refused by validation and by `bounda generate`, since the catalogue could not tell it from the runtime's. A `SchemaAheadError` thrown inside a Durable Object reaches the Worker as itself, with every field. Deploy a change to an event's schema by rolling forward: an instance running the older code waits for the newer one instead of misreading what it wrote. + +### Patch Changes + +- Updated dependencies [84d5258] +- Updated dependencies [50d5538] +- Updated dependencies [84d5258] + - @bounda-dev/core@0.6.0 + ## 0.5.0 ### Patch Changes diff --git a/packages/sqlite/package.json b/packages/sqlite/package.json index b8b620b6f..39ece5e35 100644 --- a/packages/sqlite/package.json +++ b/packages/sqlite/package.json @@ -1,6 +1,6 @@ { "name": "@bounda-dev/sqlite", - "version": "0.5.0", + "version": "0.6.0", "description": "SQLite and libSQL storage adapter for Bounda", "license": "Apache-2.0", "repository": {