@adonis-agora/durable 1.0.0-rc.7 → 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/assets/spa/assets/index-BvIomPnC.js +16 -0
- package/dist/assets/spa/assets/index-BvIomPnC.js.map +1 -0
- package/dist/assets/spa/assets/index-DTm32ZXh.css +1 -0
- package/dist/assets/spa/index.html +2 -2
- package/dist/providers/durable_provider.d.ts.map +1 -1
- package/dist/providers/durable_provider.js +8 -3
- package/dist/providers/durable_provider.js.map +1 -1
- package/dist/src/dashboard/handlers.d.ts.map +1 -1
- package/dist/src/dashboard/handlers.js +6 -3
- package/dist/src/dashboard/handlers.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +1 -1
- package/dist/src/dashboard/index.js +1 -1
- package/dist/src/diagnostics/index.d.ts +11 -0
- package/dist/src/diagnostics/index.d.ts.map +1 -0
- package/dist/src/diagnostics/index.js +6 -0
- package/dist/src/diagnostics/index.js.map +1 -0
- package/dist/src/diagnostics/transport.d.ts +71 -0
- package/dist/src/diagnostics/transport.d.ts.map +1 -0
- package/dist/src/diagnostics/transport.js +188 -0
- package/dist/src/diagnostics/transport.js.map +1 -0
- package/dist/src/diagnostics-bridge.d.ts +2 -1
- package/dist/src/diagnostics-bridge.d.ts.map +1 -1
- package/dist/src/diagnostics-bridge.js +7 -1
- package/dist/src/diagnostics-bridge.js.map +1 -1
- package/dist/src/event-trigger-bridge.d.ts +5 -14
- package/dist/src/event-trigger-bridge.d.ts.map +1 -1
- package/dist/src/event-trigger-bridge.js +11 -99
- package/dist/src/event-trigger-bridge.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/interfaces.d.ts +1 -1
- package/dist/src/origin.js +3 -3
- package/dist/src/transports/bullmq/bullmq-transport.d.ts.map +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.js +13 -2
- package/dist/src/transports/bullmq/bullmq-transport.js.map +1 -1
- package/dist/src/transports/db.d.ts.map +1 -1
- package/dist/src/transports/db.js +12 -1
- package/dist/src/transports/db.js.map +1 -1
- package/dist/src/transports/queue.d.ts.map +1 -1
- package/dist/src/transports/queue.js +13 -2
- package/dist/src/transports/queue.js.map +1 -1
- package/dist/src/workflow-discovery.d.ts +1 -1
- package/dist/src/workflow-discovery.d.ts.map +1 -1
- package/dist/src/workflow-discovery.js +4 -7
- package/dist/src/workflow-discovery.js.map +1 -1
- package/dist/src/workflow-events.d.ts +20 -51
- package/dist/src/workflow-events.d.ts.map +1 -1
- package/dist/src/workflow-events.js +12 -30
- package/dist/src/workflow-events.js.map +1 -1
- package/dist/src/workflow-ref.d.ts +1 -1
- package/package.json +12 -2
- package/skills/durable-cluster/SKILL.md +8 -4
- package/dist/assets/spa/assets/index-70hGzOnT.css +0 -1
- package/dist/assets/spa/assets/index-DSdVNM0u.js +0 -16
- package/dist/assets/spa/assets/index-DSdVNM0u.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @adonis-agora/durable
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.9
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#496](https://github.com/DavideCarvalho/adonis-agora-durable/pull/496) [`2c9839e`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/2c9839e59321c7de9f113936aac29478a050e818) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Durable is now the transport behind `@adonis-agora/diagnostics`' `transports.durable()`, and its own `@OnDiagnostic` workflow trigger is removed.
|
|
8
|
+
|
|
9
|
+
- **New `@adonis-agora/durable/diagnostics` subpath.** With `default: 'durable'` in `config/diagnostics.ts`, every diagnostics listener call runs as a run of the internal `durable.diagnostics.listener` workflow, with the id `diag:<event id>:<listener id>`. The same event never runs a listener twice, even when it is handed over twice or from two processes. The listener runs in the `handle` step with the transport's `retries` / `backoff` / `backoffMs` / `backoffMaxMs` / `jitter` (default: 3 attempts, exponential from 1s, at most 30s). A listener the running process does not know fails the run at once with `E_UNKNOWN_DIAGNOSTICS_LISTENER`. In the console the runs carry the origin `@adonis-agora/diagnostics` and the tags `diagnostics`, `lib:<lib>`, `event:<event>` and `listener:<id>`. They are not echoed back onto the bus as `agora:durable:*` events, so a listener on durable events cannot trigger itself. `@adonis-agora/diagnostics` (1.0.0-rc.1 or later) is a new optional peer, used for types only.
|
|
10
|
+
- **Breaking: `@OnDiagnostic`, `DiagnosticsTriggerConfig` and `static on` entries with `source: 'diagnostics'` are removed**, with no alias. A `static on` entry with that source now fails the app's boot. To start a workflow from a diagnostics event, dispatch it from a diagnostics listener (`MyWorkflow.dispatch(event.payload, { runId: \`evt:${event.id}\` })`), or select `transports.durable()` and put the work in the listener. `@OnEvent`, `@OnWorkflowCompleted` and `@OnWorkflowFailed` are unchanged. See the migration guide.
|
|
11
|
+
|
|
12
|
+
## 1.0.0-rc.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#495](https://github.com/DavideCarvalho/adonis-agora-durable/pull/495) [`ac19140`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/ac1914059808a48d239fbb52dd9ce26b1d68e493) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Console fixes found by a smoke test of the 1.0 console:
|
|
17
|
+
|
|
18
|
+
- **Actions work under shield.** Every write the console sends (cancel, retry, update, signal, task, bulk, schedules) carries the `XSRF-TOKEN` cookie back as `x-xsrf-token`, and a write is never redirected silently: a refused request (a redirect, or any non-2xx answer) shows as an error on the page instead of looking like nothing happened.
|
|
19
|
+
- **The `window.__DURABLE_BASE__` / `__DURABLE_API__` overrides are gone.** The provider's JSON config block is the only source; without it the console uses `/durable` and `/durable/api`.
|
|
20
|
+
- **The run detail of a waiting run** carries what the run waits on (`run.waiting`, as list rows do), so "Send update", "Deliver signal" and the task actions show whatever page the list is on, and the header reads `awaiting` (or `suspended` for a run parked on nothing named) instead of `running`.
|
|
21
|
+
- **A `cancelling` run** reads "Cancelling" instead of falling through to "Saga compensated".
|
|
22
|
+
- **The status chips' counts (ALL included)** are recounted with every list refresh.
|
|
23
|
+
- The dashboard package no longer lists a README it does not ship.
|
|
24
|
+
|
|
25
|
+
- [#495](https://github.com/DavideCarvalho/adonis-agora-durable/pull/495) [`ac19140`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/ac1914059808a48d239fbb52dd9ce26b1d68e493) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - **A namespaced engine serves its namespace's steps.** With no `partition`, the db, queue and bullmq transports now consume `<name>@<namespace>` for an engine whose namespace is set (and not `default`), matching what that engine dispatches to and what nestjs-durable's `servingPartition()` does. Before, they consumed the bare `<name>`, so a namespaced engine with no `partition` never ran its own dispatched steps and its runs stayed suspended. An explicit `partition` still wins; `partition: 'default'` keeps serving the bare tokens.
|
|
26
|
+
|
|
3
27
|
## 1.0.0-rc.7
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|