@adobe/spectrum-component-api-schemas 6.1.19 → 6.1.21
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.
- package/CHANGELOG.md +14 -0
- package/LICENSE +1 -1
- package/package.json +3 -3
- package/test/performance.test.js +15 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# [**@adobe/spectrum-component-api-schemas**](https://github.com/adobe/spectrum-component-api-schemas)
|
|
2
2
|
|
|
3
|
+
## 6.1.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`e7fbcb0`](https://github.com/adobe/spectrum-design-data/commit/e7fbcb00b6afe1c1a272ed72b7ed22c08fe8e978), [`e7fbcb0`](https://github.com/adobe/spectrum-design-data/commit/e7fbcb00b6afe1c1a272ed72b7ed22c08fe8e978)]:
|
|
8
|
+
- @adobe/spectrum-design-data@0.6.0
|
|
9
|
+
|
|
10
|
+
## 6.1.20
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`f84bce2`](https://github.com/adobe/spectrum-design-data/commit/f84bce215d20f1bc8b109f3f23b15bfab6b239d0)]:
|
|
15
|
+
- @adobe/spectrum-design-data@0.4.0
|
|
16
|
+
|
|
3
17
|
## 6.1.19
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@ file or class name and description of purpose be included on the
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Adobe
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spectrum-component-api-schemas",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"glob": "^10.3.12",
|
|
22
|
-
"@adobe/spectrum-design-data": "0.
|
|
22
|
+
"@adobe/spectrum-design-data": "0.6.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"ajv": "^8.12.0",
|
|
26
26
|
"ajv-formats": "^3.0.1",
|
|
27
|
-
"@adobe/design-data-spec": "2.
|
|
27
|
+
"@adobe/design-data-spec": "2.4.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {}
|
|
30
30
|
}
|
package/test/performance.test.js
CHANGED
|
@@ -49,10 +49,12 @@ test("getSchemaBySlug should complete within reasonable time", async (t) => {
|
|
|
49
49
|
const end = performance.now();
|
|
50
50
|
const duration = end - start;
|
|
51
51
|
|
|
52
|
-
// Should complete within
|
|
52
|
+
// Should complete within 1000ms.
|
|
53
|
+
// Threshold raised from 250ms after documentBlocks were added to component
|
|
54
|
+
// JSON files, increasing per-file parse time on CI runners.
|
|
53
55
|
t.true(
|
|
54
|
-
duration <
|
|
55
|
-
`getSchemaBySlug took ${duration.toFixed(2)}ms, expected <
|
|
56
|
+
duration < 1000,
|
|
57
|
+
`getSchemaBySlug took ${duration.toFixed(2)}ms, expected < 1000ms`,
|
|
56
58
|
);
|
|
57
59
|
t.truthy(schema);
|
|
58
60
|
});
|
|
@@ -89,10 +91,12 @@ test("multiple concurrent getSchemaBySlug calls should complete efficiently", as
|
|
|
89
91
|
const end = performance.now();
|
|
90
92
|
const duration = end - start;
|
|
91
93
|
|
|
92
|
-
// Should complete within
|
|
94
|
+
// Should complete within 2000ms for 3 concurrent calls.
|
|
95
|
+
// Threshold raised from 500ms after documentBlocks were added to component
|
|
96
|
+
// JSON files, increasing per-file parse time on CI runners.
|
|
93
97
|
t.true(
|
|
94
|
-
duration <
|
|
95
|
-
`Concurrent getSchemaBySlug calls took ${duration.toFixed(2)}ms, expected <
|
|
98
|
+
duration < 2000,
|
|
99
|
+
`Concurrent getSchemaBySlug calls took ${duration.toFixed(2)}ms, expected < 2000ms`,
|
|
96
100
|
);
|
|
97
101
|
t.is(results.length, 3);
|
|
98
102
|
t.true(results.every((schema) => schema !== null));
|
|
@@ -112,10 +116,12 @@ test("memory usage should be reasonable", async (t) => {
|
|
|
112
116
|
const finalMemory = process.memoryUsage().heapUsed;
|
|
113
117
|
const memoryIncrease = finalMemory - initialMemory;
|
|
114
118
|
|
|
115
|
-
// Memory increase should be less than
|
|
119
|
+
// Memory increase should be less than 40MB.
|
|
120
|
+
// Threshold raised from 20MB after documentBlocks were added to all 69
|
|
121
|
+
// component JSON files, adding ~5MB of heap overhead when all schemas load.
|
|
116
122
|
const memoryIncreaseMB = memoryIncrease / 1024 / 1024;
|
|
117
123
|
t.true(
|
|
118
|
-
memoryIncreaseMB <
|
|
119
|
-
`Memory usage increased by ${memoryIncreaseMB.toFixed(2)}MB, expected <
|
|
124
|
+
memoryIncreaseMB < 40,
|
|
125
|
+
`Memory usage increased by ${memoryIncreaseMB.toFixed(2)}MB, expected < 40MB`,
|
|
120
126
|
);
|
|
121
127
|
});
|