@adonis-agora/durable 0.52.2 → 0.52.4

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/assets/spa/assets/{index-DupjrK7N.js → index-BEk3-95l.js} +3 -3
  3. package/dist/assets/spa/assets/index-BEk3-95l.js.map +1 -0
  4. package/dist/assets/spa/index.html +1 -1
  5. package/dist/src/codec-state-store.d.ts +2 -0
  6. package/dist/src/codec-state-store.d.ts.map +1 -1
  7. package/dist/src/codec-state-store.js +6 -0
  8. package/dist/src/codec-state-store.js.map +1 -1
  9. package/dist/src/dashboard/index.d.ts +1 -1
  10. package/dist/src/dashboard/index.js +1 -1
  11. package/dist/src/dashboard/openapi.d.ts.map +1 -1
  12. package/dist/src/dashboard/openapi.js +4 -1
  13. package/dist/src/dashboard/openapi.js.map +1 -1
  14. package/dist/src/dashboard/run-filter.d.ts +1 -1
  15. package/dist/src/dashboard/run-filter.js +1 -1
  16. package/dist/src/engine.d.ts +24 -9
  17. package/dist/src/engine.d.ts.map +1 -1
  18. package/dist/src/engine.js +111 -23
  19. package/dist/src/engine.js.map +1 -1
  20. package/dist/src/handshake/descriptor.d.ts +1 -1
  21. package/dist/src/index.d.ts +1 -1
  22. package/dist/src/index.js +1 -1
  23. package/dist/src/interfaces.d.ts +24 -5
  24. package/dist/src/interfaces.d.ts.map +1 -1
  25. package/dist/src/interfaces.js.map +1 -1
  26. package/dist/src/run-value-facets.js +1 -1
  27. package/dist/src/run-value-facets.js.map +1 -1
  28. package/dist/src/stores/lucid-mappers.d.ts +2 -0
  29. package/dist/src/stores/lucid-mappers.d.ts.map +1 -1
  30. package/dist/src/stores/lucid-mappers.js +5 -0
  31. package/dist/src/stores/lucid-mappers.js.map +1 -1
  32. package/dist/src/stores/lucid-schema.d.ts +1 -1
  33. package/dist/src/stores/lucid-schema.d.ts.map +1 -1
  34. package/dist/src/stores/lucid-schema.js +13 -2
  35. package/dist/src/stores/lucid-schema.js.map +1 -1
  36. package/dist/src/stores/lucid.d.ts +6 -0
  37. package/dist/src/stores/lucid.d.ts.map +1 -1
  38. package/dist/src/stores/lucid.js +55 -2
  39. package/dist/src/stores/lucid.js.map +1 -1
  40. package/dist/src/testing/in-memory-state-store.d.ts +1 -0
  41. package/dist/src/testing/in-memory-state-store.d.ts.map +1 -1
  42. package/dist/src/testing/in-memory-state-store.js +11 -2
  43. package/dist/src/testing/in-memory-state-store.js.map +1 -1
  44. package/dist/src/testing-kit/run-dispatch-contract.d.ts +86 -1
  45. package/dist/src/testing-kit/run-dispatch-contract.d.ts.map +1 -1
  46. package/dist/src/testing-kit/run-dispatch-contract.js +347 -0
  47. package/dist/src/testing-kit/run-dispatch-contract.js.map +1 -1
  48. package/dist/src/testing-kit/state-store-conformance.d.ts.map +1 -1
  49. package/dist/src/testing-kit/state-store-conformance.js +39 -0
  50. package/dist/src/testing-kit/state-store-conformance.js.map +1 -1
  51. package/dist/src/workflow-ctx.d.ts.map +1 -1
  52. package/dist/src/workflow-ctx.js +21 -18
  53. package/dist/src/workflow-ctx.js.map +1 -1
  54. package/dist/src/workflow-ref.d.ts +1 -1
  55. package/package.json +2 -2
  56. package/dist/assets/spa/assets/index-DupjrK7N.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @adonis-agora/durable
2
2
 
3
+ ## 0.52.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#394](https://github.com/DavideCarvalho/adonis-agora-durable/pull/394) [`f0071ee`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/f0071ee6aa141af14f45a2bbfcc4f5e2c4882e42) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Console ORIGIN facet: the row is now hidden unless at least one run has a named (package) origin, so a plain app no longer shows a useless `all N | unknown N`. Runs with no origin are labelled `app` (the app's own workflows) instead of `unknown`, with an updated tooltip, empty-state and run-header wording. The filter kind (`{ kind: 'unknown' }`) is unchanged.
8
+
9
+ ## 0.52.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#388](https://github.com/DavideCarvalho/adonis-agora-durable/pull/388) [`8ed3d2d`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/8ed3d2d0555faf9b1b8e62d49b8414dd9f3bbcc1) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - A child that finishes while its parent's turn still holds the parent's lease no longer leaves the parent waiting for its reconcile wake.
14
+
15
+ - `ctx.child` writes the child's waiter and `running` placeholder together, before it starts the child (as `ctx.all` already did). The placeholder used to be written after the start, so a child that finished in between had its completion overwritten by the placeholder, with its waiter already consumed and its wake refused by the parent's lease.
16
+ - A wake refused because another instance holds the run's lease is now kept on the run row: it stamps a new `wakeRequestedAt` (`wake_requested_at` column, added by `autoSchema` or the migration; schema revision 4). The holder lets go of the lease only while no stamp is there (new optional `StateStore.releaseRunLockUnlessWakeRequested`, in the Lucid, in-memory and codec stores) and otherwise runs another turn; a `suspended` run carrying the stamp is due for the timer poll (`listDueTimers`). The request no longer depends on the refused instance staying up, and there is no cap on how long the holder may keep the lease. The refused instance still looks again in memory (no longer capped at 30 looks), as the fast path, until a turn served the request.
17
+ - The state-store contract has cases for the stamp, `listDueTimers` and the conditional release. The run-dispatch contract and the new `assertMidTurnChildWake` / `assertSingleInstanceSingletonFan` kits cover `ctx.all`, `ctx.allSettled` and `ctx.child` (holder skipping its re-check, keeping the lease past 30 looks, a store that cannot keep the stamp, the refused instance and the holder going down), and a one-instance `singleton` parent with search attributes and remote steps around its fan, on every transport.
18
+
3
19
  ## 0.52.2
4
20
 
5
21
  ### Patch Changes