@ai-matrx/content-ir 0.24.1 → 0.24.2
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 +9 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/registry.cjs +5 -2
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +5 -2
- package/dist/registry.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.24.2
|
|
4
|
+
### ajv leaves the first screen
|
|
5
|
+
|
|
6
|
+
- The kind dual gate builds its ajv instance on first validation instead of at import. A module-level
|
|
7
|
+
`new Ajv()` was a side effect that kept ajv (~34 kB gzip) in every bundle importing the root, even
|
|
8
|
+
for `readEnvelope` alone (chat's message selectors). Behaviour is identical.
|
|
9
|
+
|
|
10
|
+
Consumer action: none.
|
|
11
|
+
|
|
3
12
|
## 0.24.1
|
|
4
13
|
|
|
5
14
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.cjs
CHANGED
|
@@ -2539,7 +2539,10 @@ function satisfies(resolved) {
|
|
|
2539
2539
|
resolved?.isActive && resolved.componentKey !== GENERIC_FALLBACK_COMPONENT_KEY
|
|
2540
2540
|
);
|
|
2541
2541
|
}
|
|
2542
|
-
var
|
|
2542
|
+
var ajvInstance;
|
|
2543
|
+
function getAjv() {
|
|
2544
|
+
return ajvInstance ??= new Ajv__default.default({ allErrors: true, strict: false });
|
|
2545
|
+
}
|
|
2543
2546
|
function stripKind(value) {
|
|
2544
2547
|
if (Array.isArray(value)) return value.map(stripKind);
|
|
2545
2548
|
if (value && typeof value === "object") {
|
|
@@ -2563,7 +2566,7 @@ function schemaDeclaresKind(emittedJsonSchema) {
|
|
|
2563
2566
|
function validateStructuralLeg(sample, emittedJsonSchema) {
|
|
2564
2567
|
let validate;
|
|
2565
2568
|
try {
|
|
2566
|
-
validate =
|
|
2569
|
+
validate = getAjv().compile(emittedJsonSchema);
|
|
2567
2570
|
} catch (err) {
|
|
2568
2571
|
return {
|
|
2569
2572
|
ok: false,
|