Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-monorepo",
"version": "0.10.28",
"version": "0.10.29",
"private": true,
"engines": {
"node": ">=24"
Expand Down
2 changes: 1 addition & 1 deletion packages/data-ai/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adobe-data-ai",
"version": "0.10.28",
"version": "0.10.29",
"description": "Architecture skills for @adobe/data — data-oriented modelling, archetype iteration, hot-path performance, and related conventions.",
"author": {
"name": "Adobe"
Expand Down
2 changes: 1 addition & 1 deletion packages/data-ai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-ai",
"version": "0.10.28",
"version": "0.10.29",
"description": "Cross-agent architecture skills for @adobe/data — installable as a Claude Code plugin or copied into any Agent-Skills-compatible agent (Cursor, Codex).",
"type": "module",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-gpu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-gpu",
"version": "0.10.28",
"version": "0.10.29",
"description": "Adobe data WebGPU plugins and types for graphics and compute",
"type": "module",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-lit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-lit",
"version": "0.10.28",
"version": "0.10.29",
"description": "Adobe data Lit bindings - hooks, elements, decorators",
"type": "module",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-persistence/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-persistence",
"version": "0.10.28",
"version": "0.10.29",
"description": "Worker-based incremental persistence layer for @adobe/data ECS over OPFS (browser) and node:fs (server).",
"type": "module",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-react",
"version": "0.10.28",
"version": "0.10.29",
"description": "Adobe data React bindings — hooks and context for ECS database",
"type": "module",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-rpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-rpc",
"version": "0.10.28",
"version": "0.10.29",
"description": "Schema-driven, bidirectional projection of @adobe/data async data services across a boundary (iframe / MessagePort / Worker). Only Data crosses the wire.",
"type": "module",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-solid",
"version": "0.10.28",
"version": "0.10.29",
"description": "Adobe data SolidJS bindings — context and provider for ECS database",
"type": "module",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-sync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-sync",
"version": "0.10.28",
"version": "0.10.29",
"description": "Multi-user real-time synchronisation for @adobe/data ECS — server, client, and in-process loopback.",
"type": "module",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data-testing",
"version": "0.10.28",
"version": "0.10.29",
"description": "Conformance-testing utilities (Match + Conformance runners) for @adobe/data ECS features",
"type": "module",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/data",
"version": "0.10.28",
"version": "0.10.29",
"description": "Adobe data oriented programming library",
"type": "module",
"sideEffects": false,
Expand Down
5 changes: 4 additions & 1 deletion packages/data/src/ecs/store/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import { PersistenceScope, ToDataOptions } from "../../persistence-scope.js";
// stays a real column (see the Archetype interface) but is never part of a read.
export type EntityValues<C> = { readonly [K in StringKeyof<C & OptionalComponents>]: (C & OptionalComponents)[K] }
export type EntityReadValues<C> = { readonly [K in StringKeyof<C & OptionalComponents> as string extends K ? never : K]?: (C & OptionalComponents)[K] }
export type EntityUpdateValues<C> = Partial<Omit<C, IdComponent>>;
// `undefined` removes the component (the entity migrates to the archetype
// without it), so every value admits it explicitly — under
// `exactOptionalPropertyTypes` an optional key alone would not.
export type EntityUpdateValues<C> = { [K in keyof Omit<C, IdComponent>]?: C[K] | undefined };

export type ArchetypeQueryOptions<C extends object, PK extends string = never> = {
exclude?: readonly StringKeyof<C & RequiredComponents & OptionalComponents>[];
Expand Down
3 changes: 3 additions & 0 deletions packages/data/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"references": [
{
"path": "./src"
},
{
"path": "./type-tests/exact-optional"
}
]
}
11 changes: 11 additions & 0 deletions packages/data/type-tests/exact-optional/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig-base.json",
"compilerOptions": {
"rootDir": ".",
"noEmit": true,
"tsBuildInfoFile": "../../dist/type-tests/exact-optional.tsbuildinfo",
"exactOptionalPropertyTypes": true
},
"include": ["**/*.ts"],
"references": [{ "path": "../../src" }]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// © 2026 Adobe. MIT License. See /LICENSE for details.

import { Database } from "../../src/ecs/index.js";

/**
* Compile-time tests under `exactOptionalPropertyTypes`: `update(entity, { c: undefined })`
* removes component `c`, so it must type-check without a cast even when `c` is required.
*/

const db = Database.create(Database.Plugin.create({
components: {
parent: { type: "number" },
label: { type: "string" },
},
archetypes: {
Child: ["parent", "label"],
},
transactions: {
sever(t, entity: number) {
t.update(entity, { parent: undefined });
},
relabel(t, { entity, label }: { entity: number; label: string }) {
t.update(entity, { label });
// @ts-expect-error a removal does not widen the value type
t.update(entity, { label: 1 });
},
},
}));

db.transactions.sever(0);
Loading