@adobe/data 0.7.2 → 0.7.3

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 (209) hide show
  1. package/dist/ecs/archetype/archetype.d.ts +3 -3
  2. package/dist/ecs/archetype/create-archetype.d.ts +4 -4
  3. package/dist/ecs/archetype/create-archetype.js.map +1 -1
  4. package/dist/ecs/archetype/create-archetype.test.js +6 -6
  5. package/dist/ecs/archetype/create-archetype.test.js.map +1 -1
  6. package/dist/ecs/archetype/delete-row.d.ts +2 -2
  7. package/dist/ecs/archetype/delete-row.js.map +1 -1
  8. package/dist/ecs/archetype/delete-row.test.js +4 -4
  9. package/dist/ecs/archetype/delete-row.test.js.map +1 -1
  10. package/dist/ecs/core-components.d.ts +3 -3
  11. package/dist/ecs/database/database.d.ts +4 -4
  12. package/dist/ecs/database/observe-select-entities.d.ts +2 -2
  13. package/dist/ecs/database/observe-select-entities.js.map +1 -1
  14. package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
  15. package/dist/ecs/database/observed/observed-database.d.ts +3 -3
  16. package/dist/ecs/database/replicate.js.map +1 -1
  17. package/dist/ecs/entity-location-table/create-entity-location-table.d.ts +1 -1
  18. package/dist/ecs/entity-location-table/create-entity-location-table.js +14 -1
  19. package/dist/ecs/entity-location-table/create-entity-location-table.js.map +1 -1
  20. package/dist/ecs/entity-location-table/create-entity-location-table.test.js +14 -0
  21. package/dist/ecs/entity-location-table/create-entity-location-table.test.js.map +1 -1
  22. package/dist/ecs/entity.d.ts +9 -7
  23. package/dist/ecs/entity.js +5 -2
  24. package/dist/ecs/entity.js.map +1 -1
  25. package/dist/ecs/index.d.ts +1 -1
  26. package/dist/ecs/index.js +1 -1
  27. package/dist/ecs/index.js.map +1 -1
  28. package/dist/ecs/optional-components.d.ts +3 -0
  29. package/dist/ecs/optional-components.js +2 -0
  30. package/dist/ecs/optional-components.js.map +1 -0
  31. package/dist/ecs/required-components.d.ts +4 -0
  32. package/dist/ecs/required-components.js +2 -0
  33. package/dist/ecs/required-components.js.map +1 -0
  34. package/dist/ecs/store/core/core.d.ts +15 -15
  35. package/dist/ecs/store/core/create-core.d.ts +2 -1
  36. package/dist/ecs/store/core/create-core.js +29 -12
  37. package/dist/ecs/store/core/create-core.js.map +1 -1
  38. package/dist/ecs/store/core/create-core.test.d.ts +1 -1
  39. package/dist/ecs/store/core/create-core.test.js +30 -2
  40. package/dist/ecs/store/core/create-core.test.js.map +1 -1
  41. package/dist/ecs/store/core/select-entities.d.ts +2 -2
  42. package/dist/ecs/store/core/select-entities.js.map +1 -1
  43. package/dist/ecs/store/create-store.d.ts +2 -1
  44. package/dist/ecs/store/create-store.js +3 -1
  45. package/dist/ecs/store/create-store.js.map +1 -1
  46. package/dist/ecs/store/store.d.ts +6 -6
  47. package/dist/samples/todo/services/state-service/create-todo-database.d.ts +1 -1
  48. package/dist/samples/todo/services/state-service/create-todo-store.d.ts +1 -1
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/package.json +4 -3
  51. package/dist/blob/download-handle.d.ts +0 -4
  52. package/dist/blob/download-handle.js +0 -2
  53. package/dist/blob/download-handle.js.map +0 -1
  54. package/dist/blob/upload-handle.d.ts +0 -4
  55. package/dist/blob/upload-handle.js +0 -2
  56. package/dist/blob/upload-handle.js.map +0 -1
  57. package/dist/ecs/database/applied/applied-database.d.ts +0 -47
  58. package/dist/ecs/database/applied/applied-database.js +0 -22
  59. package/dist/ecs/database/applied/applied-database.js.map +0 -1
  60. package/dist/ecs/database/applied/applied-entry.d.ts +0 -30
  61. package/dist/ecs/database/applied/applied-entry.js +0 -84
  62. package/dist/ecs/database/applied/applied-entry.js.map +0 -1
  63. package/dist/ecs/database/applied/create-applied-database.d.ts +0 -8
  64. package/dist/ecs/database/applied/create-applied-database.js +0 -266
  65. package/dist/ecs/database/applied/create-applied-database.js.map +0 -1
  66. package/dist/ecs/database/applied/create-applied-database.test.d.ts +0 -1
  67. package/dist/ecs/database/applied/create-applied-database.test.js +0 -94
  68. package/dist/ecs/database/applied/create-applied-database.test.js.map +0 -1
  69. package/dist/ecs/database/create-applied-database.d.ts +0 -49
  70. package/dist/ecs/database/create-applied-database.js +0 -275
  71. package/dist/ecs/database/create-applied-database.js.map +0 -1
  72. package/dist/ecs/database/reconciling/applied-database.d.ts +0 -47
  73. package/dist/ecs/database/reconciling/applied-database.js +0 -22
  74. package/dist/ecs/database/reconciling/applied-database.js.map +0 -1
  75. package/dist/ecs/database/reconciling/applied-entry.d.ts +0 -30
  76. package/dist/ecs/database/reconciling/applied-entry.js +0 -84
  77. package/dist/ecs/database/reconciling/applied-entry.js.map +0 -1
  78. package/dist/ecs/database/reconciling/create-applied-database.d.ts +0 -8
  79. package/dist/ecs/database/reconciling/create-applied-database.js +0 -266
  80. package/dist/ecs/database/reconciling/create-applied-database.js.map +0 -1
  81. package/dist/ecs/database/reconciling/create-applied-database.test.d.ts +0 -1
  82. package/dist/ecs/database/reconciling/create-applied-database.test.js +0 -94
  83. package/dist/ecs/database/reconciling/create-applied-database.test.js.map +0 -1
  84. package/dist/ecs/store/store-schema/create-store-schema-test.d.ts +0 -1
  85. package/dist/ecs/store/store-schema/create-store-schema-test.js +0 -33
  86. package/dist/ecs/store/store-schema/create-store-schema-test.js.map +0 -1
  87. package/dist/ecs/store/store-schema/create-store-schema.d.ts +0 -11
  88. package/dist/ecs/store/store-schema/create-store-schema.js +0 -31
  89. package/dist/ecs/store/store-schema/create-store-schema.js.map +0 -1
  90. package/dist/ecs/store/store-schema/index.d.ts +0 -2
  91. package/dist/ecs/store/store-schema/index.js +0 -24
  92. package/dist/ecs/store/store-schema/index.js.map +0 -1
  93. package/dist/ecs/store/store-schema/store-schema.d.ts +0 -12
  94. package/dist/ecs/store/store-schema/store-schema.js +0 -23
  95. package/dist/ecs/store/store-schema/store-schema.js.map +0 -1
  96. package/dist/ecs/world/create-world.d.ts +0 -7
  97. package/dist/ecs/world/create-world.js +0 -113
  98. package/dist/ecs/world/create-world.js.map +0 -1
  99. package/dist/ecs/world/create-world.test.d.ts +0 -1
  100. package/dist/ecs/world/create-world.test.js +0 -499
  101. package/dist/ecs/world/create-world.test.js.map +0 -1
  102. package/dist/ecs/world/index.d.ts +0 -5
  103. package/dist/ecs/world/index.js +0 -27
  104. package/dist/ecs/world/index.js.map +0 -1
  105. package/dist/ecs/world/system-phase.d.ts +0 -5
  106. package/dist/ecs/world/system-phase.js +0 -14
  107. package/dist/ecs/world/system-phase.js.map +0 -1
  108. package/dist/ecs/world/system.d.ts +0 -25
  109. package/dist/ecs/world/system.js +0 -2
  110. package/dist/ecs/world/system.js.map +0 -1
  111. package/dist/ecs/world/world-schema/create-world-schema-test.d.ts +0 -1
  112. package/dist/ecs/world/world-schema/create-world-schema-test.js +0 -55
  113. package/dist/ecs/world/world-schema/create-world-schema-test.js.map +0 -1
  114. package/dist/ecs/world/world-schema/create-world-schema.d.ts +0 -19
  115. package/dist/ecs/world/world-schema/create-world-schema.js +0 -33
  116. package/dist/ecs/world/world-schema/create-world-schema.js.map +0 -1
  117. package/dist/ecs/world/world-schema/index.d.ts +0 -2
  118. package/dist/ecs/world/world-schema/index.js +0 -24
  119. package/dist/ecs/world/world-schema/index.js.map +0 -1
  120. package/dist/ecs/world/world-schema/world-schema.d.ts +0 -18
  121. package/dist/ecs/world/world-schema/world-schema.js +0 -23
  122. package/dist/ecs/world/world-schema/world-schema.js.map +0 -1
  123. package/dist/ecs/world/world.d.ts +0 -11
  124. package/dist/ecs/world/world.js +0 -2
  125. package/dist/ecs/world/world.js.map +0 -1
  126. package/dist/graphics/camera/camera.d.ts +0 -62
  127. package/dist/graphics/camera/camera.js +0 -17
  128. package/dist/graphics/camera/camera.js.map +0 -1
  129. package/dist/graphics/camera/index.d.ts +0 -4
  130. package/dist/graphics/camera/index.js +0 -5
  131. package/dist/graphics/camera/index.js.map +0 -1
  132. package/dist/graphics/camera/screen-to-world-ray.d.ts +0 -12
  133. package/dist/graphics/camera/screen-to-world-ray.js +0 -49
  134. package/dist/graphics/camera/screen-to-world-ray.js.map +0 -1
  135. package/dist/graphics/camera/screen-to-world-ray.test.d.ts +0 -1
  136. package/dist/graphics/camera/screen-to-world-ray.test.js +0 -171
  137. package/dist/graphics/camera/screen-to-world-ray.test.js.map +0 -1
  138. package/dist/graphics/camera/to-view-projection.d.ts +0 -3
  139. package/dist/graphics/camera/to-view-projection.js +0 -8
  140. package/dist/graphics/camera/to-view-projection.js.map +0 -1
  141. package/dist/graphics/camera/world-to-screen.d.ts +0 -12
  142. package/dist/graphics/camera/world-to-screen.js +0 -38
  143. package/dist/graphics/camera/world-to-screen.js.map +0 -1
  144. package/dist/graphics/camera/world-to-screen.test.d.ts +0 -1
  145. package/dist/graphics/camera/world-to-screen.test.js +0 -124
  146. package/dist/graphics/camera/world-to-screen.test.js.map +0 -1
  147. package/dist/graphics/create-struct-gpu-buffer.d.ts +0 -7
  148. package/dist/graphics/create-struct-gpu-buffer.js +0 -17
  149. package/dist/graphics/create-struct-gpu-buffer.js.map +0 -1
  150. package/dist/graphics/extract-wgsl-bindings.d.ts +0 -5
  151. package/dist/graphics/extract-wgsl-bindings.js +0 -10
  152. package/dist/graphics/extract-wgsl-bindings.js.map +0 -1
  153. package/dist/graphics/frame.d.ts +0 -22
  154. package/dist/graphics/frame.js +0 -12
  155. package/dist/graphics/frame.js.map +0 -1
  156. package/dist/graphics/get-web-gpu-device-and-context.d.ts +0 -2
  157. package/dist/graphics/get-web-gpu-device-and-context.js +0 -21
  158. package/dist/graphics/get-web-gpu-device-and-context.js.map +0 -1
  159. package/dist/graphics/graphics-context.d.ts +0 -5
  160. package/dist/graphics/graphics-context.js +0 -2
  161. package/dist/graphics/graphics-context.js.map +0 -1
  162. package/dist/graphics/index.d.ts +0 -5
  163. package/dist/graphics/index.js +0 -5
  164. package/dist/graphics/index.js.map +0 -1
  165. package/dist/graphics/to-gpu-buffer.d.ts +0 -2
  166. package/dist/graphics/to-gpu-buffer.js +0 -14
  167. package/dist/graphics/to-gpu-buffer.js.map +0 -1
  168. package/dist/internal/array-buffer-like/grow.d.ts +0 -1
  169. package/dist/internal/array-buffer-like/grow.js +0 -9
  170. package/dist/internal/array-buffer-like/grow.js.map +0 -1
  171. package/dist/lit/elements/service-application.d.ts +0 -9
  172. package/dist/lit/elements/service-application.js +0 -55
  173. package/dist/lit/elements/service-application.js.map +0 -1
  174. package/dist/lit/elements/service-context.d.ts +0 -1
  175. package/dist/lit/elements/service-context.js +0 -24
  176. package/dist/lit/elements/service-context.js.map +0 -1
  177. package/dist/lit/elements/service-element.d.ts +0 -6
  178. package/dist/lit/elements/service-element.js +0 -43
  179. package/dist/lit/elements/service-element.js.map +0 -1
  180. package/dist/math/picking/get-closest-entity-to-line.d.ts +0 -4
  181. package/dist/math/picking/get-closest-entity-to-line.js +0 -30
  182. package/dist/math/picking/get-closest-entity-to-line.js.map +0 -1
  183. package/dist/math/picking/get-closest-entity-to-point.d.ts +0 -4
  184. package/dist/math/picking/get-closest-entity-to-point.js +0 -27
  185. package/dist/math/picking/get-closest-entity-to-point.js.map +0 -1
  186. package/dist/math/picking/get-intersecting-entities.d.ts +0 -12
  187. package/dist/math/picking/get-intersecting-entities.js +0 -15
  188. package/dist/math/picking/get-intersecting-entities.js.map +0 -1
  189. package/dist/math/picking/index.d.ts +0 -5
  190. package/dist/math/picking/index.js +0 -27
  191. package/dist/math/picking/index.js.map +0 -1
  192. package/dist/math/picking/pick-from-tables.d.ts +0 -19
  193. package/dist/math/picking/pick-from-tables.js +0 -63
  194. package/dist/math/picking/pick-from-tables.js.map +0 -1
  195. package/dist/math/picking/pick-result.d.ts +0 -10
  196. package/dist/math/picking/pick-result.js +0 -23
  197. package/dist/math/picking/pick-result.js.map +0 -1
  198. package/dist/old-ecs/privacy/helper-functions.d.ts +0 -43
  199. package/dist/old-ecs/privacy/helper-functions.js +0 -76
  200. package/dist/old-ecs/privacy/helper-functions.js.map +0 -1
  201. package/dist/old-ecs/privacy/helper-functions.test.d.ts +0 -1
  202. package/dist/old-ecs/privacy/helper-functions.test.js +0 -173
  203. package/dist/old-ecs/privacy/helper-functions.test.js.map +0 -1
  204. package/dist/table/compact-table.d.ts +0 -7
  205. package/dist/table/compact-table.js +0 -15
  206. package/dist/table/compact-table.js.map +0 -1
  207. package/dist/table/compact-table.test.d.ts +0 -1
  208. package/dist/table/compact-table.test.js +0 -121
  209. package/dist/table/compact-table.test.js.map +0 -1
@@ -1,173 +0,0 @@
1
- /*MIT License
2
-
3
- © Copyright 2025 Adobe. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.*/
22
- import { shouldIncludeComponentForSerialization, filterColumnForPrivacy, getFilteredColumn, filterTableForPrivacy } from "./helper-functions.js";
23
- import { describe, expect, test } from "vitest";
24
- describe("Privacy Helper Functions", () => {
25
- test("shouldIncludeComponentForSerialization works correctly", () => {
26
- const testCases = [
27
- {
28
- schema: { type: "string", privacy: "strictlyNecessary" },
29
- options: { strictlyNecessary: true },
30
- expected: true,
31
- description: "strictlyNecessary with permission"
32
- },
33
- {
34
- schema: { type: "string", privacy: "strictlyNecessary" },
35
- options: undefined,
36
- expected: true,
37
- description: "strictlyNecessary without options (default)"
38
- },
39
- {
40
- schema: { type: "string", privacy: "functional" },
41
- options: { functional: true },
42
- expected: true,
43
- description: "functional with permission"
44
- },
45
- {
46
- schema: { type: "string", privacy: "functional" },
47
- options: { functional: false },
48
- expected: false,
49
- description: "functional without permission"
50
- },
51
- {
52
- schema: { type: "string", privacy: "performance" },
53
- options: { performance: true },
54
- expected: true,
55
- description: "performance with permission"
56
- },
57
- {
58
- schema: { type: "string", privacy: "performance" },
59
- options: { performance: false },
60
- expected: false,
61
- description: "performance without permission"
62
- },
63
- {
64
- schema: { type: "string", privacy: "advertising" },
65
- options: { advertising: true },
66
- expected: true,
67
- description: "advertising with permission"
68
- },
69
- {
70
- schema: { type: "string", privacy: "advertising" },
71
- options: { advertising: false },
72
- expected: false,
73
- description: "advertising without permission"
74
- },
75
- {
76
- schema: { type: "string" },
77
- options: {},
78
- expected: true,
79
- description: "no privacy classification (always included)"
80
- },
81
- {
82
- schema: { type: "string" },
83
- options: { strictlyNecessary: false, functional: false, performance: false, advertising: false },
84
- expected: true,
85
- description: "no privacy classification with all permissions false"
86
- },
87
- ];
88
- for (const testCase of testCases) {
89
- const result = shouldIncludeComponentForSerialization(testCase.schema, testCase.options);
90
- expect(result).toBe(testCase.expected);
91
- }
92
- });
93
- test("filterColumnForPrivacy replaces data with default values", () => {
94
- const schema = { type: "string", default: "defaultValue" };
95
- const rows = 3;
96
- const originalData = ["value1", "value2", "value3"];
97
- const result = filterColumnForPrivacy(schema, rows, originalData);
98
- expect(result).toEqual(["defaultValue", "defaultValue", "defaultValue"]);
99
- });
100
- test("filterColumnForPrivacy handles empty data", () => {
101
- const schema = { type: "string", default: "defaultValue" };
102
- const rows = 0;
103
- const originalData = [];
104
- const result = filterColumnForPrivacy(schema, rows, originalData);
105
- expect(result).toEqual([]);
106
- });
107
- test("filterColumnForPrivacy handles null/undefined data", () => {
108
- const schema = { type: "string", default: "defaultValue" };
109
- const rows = 2;
110
- expect(filterColumnForPrivacy(schema, rows, null)).toBe(null);
111
- expect(filterColumnForPrivacy(schema, rows, undefined)).toBe(undefined);
112
- });
113
- test("getFilteredColumn returns original data when component should be included", () => {
114
- const componentSchemas = {
115
- allowedComponent: { type: "string", privacy: "strictlyNecessary" }
116
- };
117
- const privacyOptions = { strictlyNecessary: true };
118
- const originalData = ["value1", "value2"];
119
- const rows = 2;
120
- const [name, data] = getFilteredColumn("allowedComponent", privacyOptions, originalData, componentSchemas, rows);
121
- expect(name).toBe("allowedComponent");
122
- expect(data).toBe(originalData);
123
- });
124
- test("getFilteredColumn returns filtered data when component should be excluded", () => {
125
- const componentSchemas = {
126
- blockedComponent: { type: "string", privacy: "advertising", default: "blocked" }
127
- };
128
- const privacyOptions = { strictlyNecessary: true };
129
- const originalData = ["value1", "value2"];
130
- const rows = 2;
131
- const [name, data] = getFilteredColumn("blockedComponent", privacyOptions, originalData, componentSchemas, rows);
132
- expect(name).toBe("blockedComponent");
133
- expect(data).toEqual(["blocked", "blocked"]);
134
- });
135
- test("filterTableForPrivacy filters table columns based on privacy", () => {
136
- const componentSchemas = {
137
- allowedComponent: { type: "string", privacy: "strictlyNecessary" },
138
- blockedComponent: { type: "string", privacy: "advertising", default: "filtered" }
139
- };
140
- const privacyOptions = { strictlyNecessary: true };
141
- const table = {
142
- rows: 2,
143
- columns: {
144
- allowedComponent: ["allowed1", "allowed2"],
145
- blockedComponent: ["blocked1", "blocked2"]
146
- }
147
- };
148
- const result = filterTableForPrivacy(componentSchemas, table, privacyOptions);
149
- expect(result.rows).toBe(2);
150
- expect(result.columns.allowedComponent).toEqual(["allowed1", "allowed2"]);
151
- expect(result.columns.blockedComponent).toEqual(["filtered", "filtered"]);
152
- });
153
- test("filterTableForPrivacy preserves table structure", () => {
154
- const componentSchemas = {
155
- comp1: { type: "string", privacy: "functional", default: "default1" },
156
- comp2: { type: "number", privacy: "performance", default: 0 }
157
- };
158
- const privacyOptions = { functional: true };
159
- const table = {
160
- rows: 3,
161
- columns: {
162
- comp1: ["a", "b", "c"],
163
- comp2: [1, 2, 3]
164
- }
165
- };
166
- const result = filterTableForPrivacy(componentSchemas, table, privacyOptions);
167
- expect(result.rows).toBe(3);
168
- expect(Object.keys(result.columns)).toEqual(["comp1", "comp2"]);
169
- expect(result.columns.comp1).toEqual(["a", "b", "c"]);
170
- expect(result.columns.comp2).toEqual([0, 0, 0]);
171
- });
172
- });
173
- //# sourceMappingURL=helper-functions.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper-functions.test.js","sourceRoot":"","sources":["../../../src/old-ecs/privacy/helper-functions.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AACX,OAAO,EAEH,sCAAsC,EACtC,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGhD,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACtC,IAAI,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,SAAS,GAA2F;YACtG;gBACI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;gBACxD,OAAO,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;gBACpC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mCAAmC;aACnD;YACD;gBACI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;gBACxD,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,6CAA6C;aAC7D;YACD;gBACI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE;gBACjD,OAAO,EAAE,EAAE,U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CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import { Table } from "./table.js";
2
- /**
3
- * Compacts the table by reducing rowCapacity to match rowCount.
4
- * This shrinks the underlying buffers to remove unused capacity.
5
- * Useful before serialization to avoid storing unused buffer space.
6
- */
7
- export declare const compactTable: <C>(table: Table<C>) => void;
@@ -1,15 +0,0 @@
1
- /**
2
- * Compacts the table by reducing rowCapacity to match rowCount.
3
- * This shrinks the underlying buffers to remove unused capacity.
4
- * Useful before serialization to avoid storing unused buffer space.
5
- */
6
- export const compactTable = (table) => {
7
- if (table.rowCapacity > table.rowCount) {
8
- for (const name in table.columns) {
9
- const column = table.columns[name];
10
- column.capacity = table.rowCount;
11
- }
12
- table.rowCapacity = table.rowCount;
13
- }
14
- };
15
- //# sourceMappingURL=compact-table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compact-table.js","sourceRoot":"","sources":["../../src/table/compact-table.ts"],"names":[],"mappings":"AAuBA;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,KAAe,EAAQ,EAAE;IACrD,IAAI,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;YAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnC,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC;IACvC,CAAC;AACL,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,121 +0,0 @@
1
- /*MIT License
2
-
3
- © Copyright 2025 Adobe. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.*/
22
- import { describe, it, expect } from "vitest";
23
- import { compactTable } from "./compact-table.js";
24
- import { createTable } from "./create-table.js";
25
- import { addRow } from "./add-row.js";
26
- import { deleteRow } from "./delete-row.js";
27
- import { U32Schema } from "../schema/u32.js";
28
- import { F32Schema } from "../schema/f32.js";
29
- describe("compactTable", () => {
30
- it("should reduce rowCapacity to match rowCount after deletions", () => {
31
- const table = createTable({
32
- value: U32Schema,
33
- });
34
- // Add some rows
35
- addRow(table, { value: 1 });
36
- addRow(table, { value: 2 });
37
- addRow(table, { value: 3 });
38
- addRow(table, { value: 4 });
39
- expect(table.rowCount).toBe(4);
40
- const initialCapacity = table.rowCapacity;
41
- expect(initialCapacity).toBeGreaterThanOrEqual(4);
42
- // Delete some rows
43
- deleteRow(table, 3);
44
- deleteRow(table, 2);
45
- expect(table.rowCount).toBe(2);
46
- expect(table.rowCapacity).toBe(initialCapacity); // Capacity unchanged
47
- // Compact the table
48
- compactTable(table);
49
- expect(table.rowCount).toBe(2);
50
- expect(table.rowCapacity).toBe(2); // Capacity now matches rowCount
51
- });
52
- it("should compact all columns to the same capacity", () => {
53
- const table = createTable({
54
- value: U32Schema,
55
- score: F32Schema,
56
- });
57
- addRow(table, { value: 1, score: 1.5 });
58
- addRow(table, { value: 2, score: 2.5 });
59
- addRow(table, { value: 3, score: 3.5 });
60
- deleteRow(table, 2);
61
- compactTable(table);
62
- expect(table.columns.value.capacity).toBe(2);
63
- expect(table.columns.score.capacity).toBe(2);
64
- expect(table.rowCapacity).toBe(2);
65
- });
66
- it("should preserve data after compaction", () => {
67
- const table = createTable({
68
- value: U32Schema,
69
- });
70
- addRow(table, { value: 10 });
71
- addRow(table, { value: 20 });
72
- addRow(table, { value: 30 });
73
- deleteRow(table, 2);
74
- compactTable(table);
75
- expect(table.columns.value.get(0)).toBe(10);
76
- expect(table.columns.value.get(1)).toBe(20);
77
- });
78
- it("should do nothing if rowCapacity already equals rowCount", () => {
79
- const table = createTable({
80
- value: U32Schema,
81
- });
82
- addRow(table, { value: 1 });
83
- addRow(table, { value: 2 });
84
- // Compact once
85
- compactTable(table);
86
- const capacity = table.rowCapacity;
87
- // Compact again
88
- compactTable(table);
89
- expect(table.rowCapacity).toBe(capacity);
90
- });
91
- it("should handle empty tables", () => {
92
- const table = createTable({
93
- value: U32Schema,
94
- });
95
- compactTable(table);
96
- expect(table.rowCount).toBe(0);
97
- expect(table.rowCapacity).toBe(0);
98
- });
99
- it("should handle tables that have grown and then had all rows deleted", () => {
100
- const table = createTable({
101
- value: U32Schema,
102
- });
103
- // Add many rows to trigger capacity growth
104
- for (let i = 0; i < 20; i++) {
105
- addRow(table, { value: i });
106
- }
107
- expect(table.rowCount).toBe(20);
108
- const largeCapacity = table.rowCapacity;
109
- expect(largeCapacity).toBeGreaterThanOrEqual(20);
110
- // Delete all rows
111
- for (let i = 19; i >= 0; i--) {
112
- deleteRow(table, i);
113
- }
114
- expect(table.rowCount).toBe(0);
115
- expect(table.rowCapacity).toBe(largeCapacity); // Still has large capacity
116
- compactTable(table);
117
- expect(table.rowCount).toBe(0);
118
- expect(table.rowCapacity).toBe(0); // Capacity compacted to 0
119
- });
120
- });
121
- //# sourceMappingURL=compact-table.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compact-table.test.js","sourceRoot":"","sources":["../../src/table/compact-table.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AACX,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACnE,MAAM,KAAK,GAAG,WAAW,CAAC;YACtB,KAAK,EAAE,SAAS;SACnB,CAAC,CAAC;QAEH,gBAAgB;QAChB,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5B,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5B,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5B,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAE5B,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC;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