Skip to content

Commit 6805e80

Browse files
krisnyeclaude
andauthored
fix(ecs): thread index declarations into the computed-factory db type (#120)
FullDBForPlugin (the `db` type for computed factories) forwarded only Database slots 1–7, so slot 9 (IX) fell back to its `{}` default and `db.indexes` was empty inside computeds — they couldn't use any declared index. (Actions/systems were unaffected; their db threads IX already.) Forwards IX into slot 9, with `unknown` for slot 8 (CV) — Database's own default for that slot — so a concrete computed-values type never constrains computed-factory inference / breaks contravariance. At the call sites XP is AmbientPlugin<XP, IP>, so both extends-base and imports-dep indexes flow in; the plugin's own locally-declared indexes are threaded via the IX param too. Adds regression guards in database.index.type-test.ts (own / extends / imports indexes visible to computeds); verified they fail to compile without the fix. Bump to 0.9.66. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 070d8b8 commit 6805e80

15 files changed

Lines changed: 78 additions & 17 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-monorepo",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"private": true,
55
"scripts": {
66
"build": "pnpm -r run build",

packages/data-lit-tictactoe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-lit-tictactoe",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Tic-Tac-Toe sample - Lit web components with @adobe/data-lit and AgenticService",
55
"type": "module",
66
"private": true,

packages/data-lit-todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-lit-todo",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Todo sample app demonstrating @adobe/data with Lit",
55
"type": "module",
66
"private": true,

packages/data-lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/data-lit",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Adobe data Lit bindings - hooks, elements, decorators",
55
"type": "module",
66
"private": false,

packages/data-p2p-tictactoe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-p2p-tictactoe",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Serverless P2P tic-tac-toe — WebRTC DataChannel + @adobe/data-sync",
55
"type": "module",
66
"private": true,

packages/data-persistence/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/data-persistence",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Worker-based incremental persistence layer for @adobe/data ECS over OPFS (browser) and node:fs (server).",
55
"type": "module",
66
"sideEffects": false,

packages/data-react-hello/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-react-hello",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Hello World sample - click counter using @adobe/data-react",
55
"type": "module",
66
"private": true,

packages/data-react-pixie/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-react-pixie",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "PixiJS React sample - ECS sprites (bunny, fox) with @adobe/data-react",
55
"type": "module",
66
"private": true,

packages/data-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adobe/data-react",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Adobe data React bindings — hooks and context for ECS database",
55
"type": "module",
66
"private": false,

packages/data-solid-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-solid-dashboard",
3-
"version": "0.9.65",
3+
"version": "0.9.66",
44
"description": "Mini dashboard sample — multiple components sharing one @adobe/data ECS database with SolidJS",
55
"type": "module",
66
"private": true,

0 commit comments

Comments
 (0)