solid-objects 1.0.7 → 1.2.0

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 (58) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +4 -1
  3. package/dist/actor.d.ts +2 -2
  4. package/dist/actor.d.ts.map +1 -1
  5. package/dist/actor.js +10 -4
  6. package/dist/actor.js.map +1 -1
  7. package/dist/cloudflare/engine.d.ts +1 -0
  8. package/dist/cloudflare/engine.d.ts.map +1 -1
  9. package/dist/cloudflare/engine.js +38 -9
  10. package/dist/cloudflare/engine.js.map +1 -1
  11. package/dist/cloudflare/records.d.ts +5 -1
  12. package/dist/cloudflare/records.d.ts.map +1 -1
  13. package/dist/cloudflare/records.js +8 -1
  14. package/dist/cloudflare/records.js.map +1 -1
  15. package/dist/cloudflare/runtime.d.ts +1 -1
  16. package/dist/cloudflare/runtime.d.ts.map +1 -1
  17. package/dist/cloudflare/runtime.js +4 -1
  18. package/dist/cloudflare/runtime.js.map +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/outcome.d.ts +1 -0
  23. package/dist/outcome.d.ts.map +1 -1
  24. package/dist/outcome.js +5 -1
  25. package/dist/outcome.js.map +1 -1
  26. package/dist/reconciliation.d.ts +26 -1
  27. package/dist/reconciliation.d.ts.map +1 -1
  28. package/dist/reconciliation.js +6 -0
  29. package/dist/reconciliation.js.map +1 -1
  30. package/dist/records.d.ts +2 -1
  31. package/dist/records.d.ts.map +1 -1
  32. package/dist/reminder-administration.d.ts +1 -1
  33. package/dist/reminder-administration.d.ts.map +1 -1
  34. package/dist/repository.d.ts +27 -0
  35. package/dist/repository.d.ts.map +1 -1
  36. package/dist/repository.js +66 -18
  37. package/dist/repository.js.map +1 -1
  38. package/dist/runtime.d.ts +4 -2
  39. package/dist/runtime.d.ts.map +1 -1
  40. package/dist/runtime.js +94 -9
  41. package/dist/runtime.js.map +1 -1
  42. package/dist/schema.d.ts +1 -0
  43. package/dist/schema.d.ts.map +1 -1
  44. package/dist/schema.js +132 -2
  45. package/dist/schema.js.map +1 -1
  46. package/dist/types.d.ts +4 -1
  47. package/dist/types.d.ts.map +1 -1
  48. package/dist/version.d.ts +1 -1
  49. package/dist/version.js +1 -1
  50. package/docs/agents.md +10 -0
  51. package/docs/api.md +133 -8
  52. package/docs/authorization.md +5 -0
  53. package/docs/benchmarks-history.md +326 -0
  54. package/docs/benchmarks.md +197 -313
  55. package/docs/operations.md +7 -1
  56. package/docs/parity.md +4 -2
  57. package/docs/releasing.md +27 -0
  58. package/package.json +4 -3
package/docs/parity.md CHANGED
@@ -87,7 +87,7 @@ Ruby publishes RBS contracts with native Ruby field names; this does not change
87
87
  | Failed-role replacement | Native | Built-in and registered roles are rebuilt through their factories with capped backoff; shutdown is the terminal replacement boundary. |
88
88
  | Additional supervised components | Native | `registerComponent()` builds, validates, runs, and stops application components with the runtime. |
89
89
  | Dead-letter inspection and retry | Native | `runtime.deadLetters` provides deny-by-default immutable inspection and idempotent durable retry linkage. |
90
- | Reconciliation reads | Native | Authorized cursor pages cover active, quiet, and orphaned instances; bounded state batches are migrated and deeply frozen. |
90
+ | Reconciliation reads | Native | Authorized cursor pages cover active, quiet, and orphaned instances; bounded state batches are migrated and deeply frozen. JS also has `instancesFor()` and `outcomesFor()` batch reads. |
91
91
  | Message, process, and opt-in instance retention | Native | Supervised scheduling bounds message and process growth; authorized manual APIs add preview and keep destructive instance expiration explicit. Reused JS workers refresh their registration before each pass after cleanup or pruning; Ruby callers already reload and replace stale registrations. SQL instance pruning uses an index on actor type and update time. |
92
92
  | Doctor and schema verification | Native | Structured checks cover configuration, schema/version shape, adapter server versions, neutral-context policy probes, live roles, and a targeted round trip. |
93
93
  | `json` gem compatibility check | Not applicable | The Ruby doctor and the Rails boot decode one JSON document with Active Support, to find a `json` gem release that Active Support cannot use. Node.js has `JSON` built in, so this package has no such dependency. |
@@ -157,7 +157,9 @@ Both runtimes rebuild a `MessageReference` from a request id or an idempotency
157
157
  key, scope each lookup through the receiver that matches its index, authorize it
158
158
  with the hook the original call ran, and report absence, an unregistered actor,
159
159
  and a refusal the same way. `outcome` reports the status, result, error,
160
- rejection, and attempt count in both.
160
+ rejection, and attempt count in both. Both clear the error when a message
161
+ completes or is rejected, so only a dead message, or one waiting to retry,
162
+ reports one.
161
163
 
162
164
  Both runtimes retain JSON results for synchronous, background, and internal
163
165
  messages under the configured result-size cap. Every status, result, and outcome
package/docs/releasing.md CHANGED
@@ -65,3 +65,30 @@ from the tag and redeploy the site. The site's `check:release` step refuses a
65
65
  snapshot that is not the latest published tag. The Context7 refresh workflow
66
66
  refreshes the index after each push to `main` that changes the documentation.
67
67
  Confirm that its run succeeded.
68
+
69
+ ## Performance evidence
70
+
71
+ A version bump does not update the measured version of an existing benchmark dataset.
72
+ Keep each baseline's original source, environment, durability settings and raw samples.
73
+ If a release has no measurements, say so explicitly. A single-version baseline or a
74
+ different machine's results cannot establish a release-to-release regression or speedup.
75
+
76
+ For a numerical performance claim, run the selected releases on the same isolated host
77
+ with the same Node version, dependency lock, harness and workload parameters. Record actual
78
+ database durability; WAL/NORMAL and WAL/FULL are separate conditions. Retain every sample
79
+ and any interrupted attempts. Archive results and verify teardown before publishing them.
80
+
81
+ Register completed results in `benchmarks/results/index.json`, retain incomplete attempts
82
+ under its diagnostics list, and regenerate guide headlines with
83
+ `pnpm run check:benchmarks --write-guide`. The normal quality checks verify version labels,
84
+ raw samples, readiness evidence, summaries and published tables. See
85
+ [Benchmarks](benchmarks.md) for the datasets and measurement boundaries.
86
+
87
+ If one backend fails after other predeclared backend plans completed, keep the parent status
88
+ failed and preserve its original full plan and all diagnostics. After export, run
89
+ `node benchmarks/summarize-completed.mjs EXPORTED_DIAGNOSTIC_DIRECTORY` to derive every fully
90
+ completed backend. Register that archive as `partial-controlled-comparison`, with its exact
91
+ `databases` scope. CI requires all planned versions, rounds and scenarios for each included
92
+ backend, rejects selective subsets, and requires the report to remain visibly labeled incomplete.
93
+ Failed or partially sampled backends receive no comparative throughput claim. A new host's
94
+ replacement measurements remain a separate dataset.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-objects",
3
- "version": "1.0.7",
3
+ "version": "1.2.0",
4
4
  "description": "Fix race conditions across Node.js processes: ordered operations, expiring holds, and state that survives a restart, in your SQL database. A SQL-backed virtual actor library for TypeScript and Node.js.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -111,7 +111,7 @@
111
111
  "deploy:cloudflare": "wrangler deploy --config examples/cloudflare/wrangler.jsonc",
112
112
  "check:cloudflare": "node scripts/check-cloudflare-imports.mjs && tsc -p tsconfig.cloudflare-example.json --noEmit && wrangler deploy --dry-run --config examples/cloudflare/wrangler.jsonc",
113
113
  "build": "pnpm run clean && tsc -p tsconfig.build.json && tsc -p tsconfig.cloudflare-build.json && tsc -p tsconfig.quickstart-build.json && node scripts/prepare-executable.mjs",
114
- "check": "pnpm run check:parameters && pnpm run check:documentation && pnpm run check:browser-imports && tsc -p tsconfig.json --noEmit && tsc -p tsconfig.examples.json --noEmit && tsc -p tsconfig.cloudflare.json --noEmit && tsc -p tsconfig.benchmarks.json",
114
+ "check": "pnpm run check:parameters && pnpm run check:documentation && pnpm run check:benchmarks && pnpm run check:browser-imports && tsc -p tsconfig.json --noEmit && tsc -p tsconfig.examples.json --noEmit && tsc -p tsconfig.cloudflare.json --noEmit && tsc -p tsconfig.benchmarks.json",
115
115
  "check:browser-imports": "node scripts/check-browser-imports.mjs",
116
116
  "check:documentation": "node scripts/check-documentation.mjs",
117
117
  "check:parameters": "node scripts/check-parameter-style.mjs",
@@ -132,7 +132,8 @@
132
132
  "benchmark:idle": "pnpm run build && node benchmarks/idle.ts",
133
133
  "benchmark:large-state": "pnpm run build && node benchmarks/large-state.ts",
134
134
  "pack:check": "pnpm pack --dry-run && node scripts/check-package.mjs",
135
- "prepack": "pnpm run build"
135
+ "prepack": "pnpm run build",
136
+ "check:benchmarks": "node benchmarks/check-results.mjs"
136
137
  },
137
138
  "devDependencies": {
138
139
  "@cloudflare/vitest-plugin": "^1.1.4",