@adobe/data 0.9.45 → 0.9.47

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 (77) hide show
  1. package/AGENTS.md +1 -1
  2. package/dist/ecs/archetype/archetype.d.ts +1 -1
  3. package/dist/ecs/archetype/create-archetype.d.ts +1 -1
  4. package/dist/ecs/archetype/create-archetype.test.js +1 -1
  5. package/dist/ecs/archetype/create-archetype.test.js.map +1 -1
  6. package/dist/ecs/archetype/delete-row.test.js +1 -1
  7. package/dist/ecs/archetype/delete-row.test.js.map +1 -1
  8. package/dist/ecs/database/create-plugin.type-test.js +5 -5
  9. package/dist/ecs/database/database.d.ts +1 -1
  10. package/dist/ecs/database/observed/create-observed-database.js +9 -2
  11. package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
  12. package/dist/ecs/database/observed/observed-database.d.ts +1 -1
  13. package/dist/ecs/database/reconciling/reconciling-entry.d.ts +1 -1
  14. package/dist/ecs/database/transactional-store/coalesce-actions.js +1 -1
  15. package/dist/ecs/database/transactional-store/coalesce-actions.js.map +1 -1
  16. package/dist/ecs/database/transactional-store/coalesce-actions.test.js +28 -0
  17. package/dist/ecs/database/transactional-store/coalesce-actions.test.js.map +1 -1
  18. package/dist/ecs/database/transactional-store/create-transactional-store.js +22 -8
  19. package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
  20. package/dist/ecs/database/transactional-store/create-transactional-store.test.js +177 -0
  21. package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
  22. package/dist/ecs/database/transactional-store/transactional-store.d.ts +4 -1
  23. package/dist/ecs/entity/entity.d.ts +4 -0
  24. package/dist/ecs/entity/entity.js +2 -0
  25. package/dist/ecs/entity/entity.js.map +1 -0
  26. package/dist/ecs/entity/is-ephemeral.d.ts +2 -0
  27. package/dist/ecs/entity/is-ephemeral.js +2 -0
  28. package/dist/ecs/entity/is-ephemeral.js.map +1 -0
  29. package/dist/ecs/entity/is-ephemeral.test.d.ts +1 -0
  30. package/dist/ecs/entity/is-ephemeral.test.js +15 -0
  31. package/dist/ecs/entity/is-ephemeral.test.js.map +1 -0
  32. package/dist/ecs/entity/public.d.ts +2 -0
  33. package/dist/ecs/entity/public.js +4 -0
  34. package/dist/ecs/entity/public.js.map +1 -0
  35. package/dist/ecs/entity/schema.d.ts +6 -0
  36. package/dist/ecs/entity/schema.js +4 -0
  37. package/dist/ecs/entity/schema.js.map +1 -0
  38. package/dist/ecs/entity-location-table/create-entity-location-table.d.ts +1 -1
  39. package/dist/ecs/entity-location-table/create-entity-location-table.js +2 -2
  40. package/dist/ecs/entity-location-table/create-entity-location-table.test.js +1 -1
  41. package/dist/ecs/entity-location-table/entity-location-table.d.ts +1 -1
  42. package/dist/ecs/entity.d.ts +1 -0
  43. package/dist/ecs/entity.js +1 -0
  44. package/dist/ecs/entity.js.map +1 -1
  45. package/dist/ecs/index.d.ts +1 -1
  46. package/dist/ecs/index.js +1 -1
  47. package/dist/ecs/index.js.map +1 -1
  48. package/dist/ecs/optional-components.d.ts +1 -1
  49. package/dist/ecs/persistence-service/create-storage-persistence-service.js +1 -1
  50. package/dist/ecs/persistence-service/create-storage-persistence-service.js.map +1 -1
  51. package/dist/ecs/required-components.d.ts +1 -1
  52. package/dist/ecs/store/core/core.d.ts +1 -1
  53. package/dist/ecs/store/core/create-core.js +11 -15
  54. package/dist/ecs/store/core/create-core.js.map +1 -1
  55. package/dist/ecs/store/core/create-core.test.js +38 -38
  56. package/dist/ecs/store/core/create-core.test.js.map +1 -1
  57. package/dist/ecs/store/core/select-entities.d.ts +1 -1
  58. package/dist/ecs/store/public/create-store.js +9 -2
  59. package/dist/ecs/store/public/create-store.js.map +1 -1
  60. package/dist/ecs/store/store.d.ts +1 -1
  61. package/dist/ecs/store/transaction-functions.d.ts +1 -1
  62. package/dist/functions/serialization/serialization.test.js +6 -9
  63. package/dist/functions/serialization/serialization.test.js.map +1 -1
  64. package/dist/schema/dynamic/enumerate-patches.test.d.ts +4 -4
  65. package/dist/schema/dynamic/enumerate-patches.test.js +8 -11
  66. package/dist/schema/dynamic/enumerate-patches.test.js.map +1 -1
  67. package/dist/schema/dynamic/get-dynamic-schema.test.js +4 -8
  68. package/dist/schema/dynamic/get-dynamic-schema.test.js.map +1 -1
  69. package/dist/schema/schema.d.ts +1 -1
  70. package/dist/tsconfig.tsbuildinfo +1 -1
  71. package/dist/typed-buffer/register-typed-buffer-codecs.js +3 -3
  72. package/package.json +1 -1
  73. package/references/data-lit/package.json +1 -1
  74. package/references/data-lit-tictactoe/package.json +1 -1
  75. package/references/data-react/package.json +1 -1
  76. package/references/data-react-hello/package.json +1 -1
  77. package/references/data-react-pixie/package.json +1 -1
@@ -14,7 +14,7 @@ export function registerTypedBufferCodecs() {
14
14
  serialize: (data) => {
15
15
  const { type, schema, capacity } = data;
16
16
  try {
17
- if (type === "const" || schema.transient) {
17
+ if (type === "const" || schema.ephemeral) {
18
18
  return { json: { type, schema, capacity } };
19
19
  }
20
20
  else if (type === "array") {
@@ -42,7 +42,7 @@ export function registerTypedBufferCodecs() {
42
42
  }
43
43
  else if (type === "array") {
44
44
  const buffer = createArrayBuffer(schema, capacity);
45
- if (schema.transient) {
45
+ if (schema.ephemeral) {
46
46
  if (schema.default !== undefined && schema.default !== 0) {
47
47
  for (let i = 0; i < capacity; i++) {
48
48
  buffer.set(i, schema.default);
@@ -58,7 +58,7 @@ export function registerTypedBufferCodecs() {
58
58
  }
59
59
  else if (type === "number" || type === "struct") {
60
60
  const buffer = type === "number" ? createNumberBuffer(schema, capacity) : createStructBuffer(schema, capacity);
61
- if (schema.transient) {
61
+ if (schema.ephemeral) {
62
62
  if (schema.default !== undefined && schema.default !== 0) {
63
63
  for (let i = 0; i < capacity; i++) {
64
64
  buffer.set(i, schema.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/data",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "Adobe data oriented programming library",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/data-lit",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "Adobe data Lit bindings - hooks, elements, decorators",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-lit-tictactoe",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "Tic-Tac-Toe sample - Lit web components with @adobe/data-lit and AgenticService",
5
5
  "type": "module",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/data-react",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "Adobe data React bindings — hooks and context for ECS database",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-react-hello",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "Hello World sample - click counter using @adobe/data-react",
5
5
  "type": "module",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-react-pixie",
3
- "version": "0.9.45",
3
+ "version": "0.9.47",
4
4
  "description": "PixiJS React sample - ECS sprites (bunny, fox) with @adobe/data-react",
5
5
  "type": "module",
6
6
  "private": true,