@squiz/dx-json-schema-lib 1.90.0 → 1.90.1
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/.npm/_logs/{2026-09-07T04_21_35_721Z-debug-0.log → 2026-09-14T02_31_48_216Z-debug-0.log} +2 -2
- package/CHANGELOG.md +6 -0
- package/lib/utils/jsonBreakDetector/jsonBreakDetector.d.ts +2 -1
- package/lib/utils/jsonBreakDetector/jsonBreakDetector.js +2 -2
- package/lib/utils/jsonBreakDetector/jsonBreakDetector.js.map +1 -1
- package/lib/utils/jsonBreakDetector/jsonBreakDetector.spec.js +139 -142
- package/lib/utils/jsonBreakDetector/jsonBreakDetector.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/jsonBreakDetector/jsonBreakDetector.spec.ts +1 -1
- package/src/utils/jsonBreakDetector/jsonBreakDetector.ts +3 -1
- package/tsconfig.tsbuildinfo +1 -1
package/.npm/_logs/{2026-09-07T04_21_35_721Z-debug-0.log → 2026-09-14T02_31_48_216Z-debug-0.log}
RENAMED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
7 silly config load:file:/usr/local/etc/npmrc
|
|
9
9
|
8 verbose title npm run compile
|
|
10
10
|
9 verbose argv "run" "compile"
|
|
11
|
-
10 verbose logfile logs-max:10 dir:/builds/developer-experience/cmp/packages/dx-json-schema-lib/.npm/_logs/2026-09-
|
|
12
|
-
11 verbose logfile /builds/developer-experience/cmp/packages/dx-json-schema-lib/.npm/_logs/2026-09-
|
|
11
|
+
10 verbose logfile logs-max:10 dir:/builds/developer-experience/cmp/packages/dx-json-schema-lib/.npm/_logs/2026-09-14T02_31_48_216Z-
|
|
12
|
+
11 verbose logfile /builds/developer-experience/cmp/packages/dx-json-schema-lib/.npm/_logs/2026-09-14T02_31_48_216Z-debug-0.log
|
|
13
13
|
12 silly logfile done cleaning log files
|
|
14
14
|
13 verbose cwd /builds/developer-experience/cmp/packages/dx-json-schema-lib
|
|
15
15
|
14 verbose os Linux 6.1.177-224.371.amzn2023.x86_64
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { JSONSchema } from '@squiz/json-schema-library';
|
|
2
2
|
import { JsonBreak } from './types';
|
|
3
|
+
export type { JsonBreak };
|
|
3
4
|
/**
|
|
4
5
|
* Detects breaking schema changes between beforeSchema and afterSchema.
|
|
5
6
|
* Returns each break with a dotted path location, e.g. `subtitle`, `image.width`, `tags[]`,
|
|
6
7
|
* `tags.{contains}`, and a message identifying the kind of break.
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
+
export declare function SchemaBreakDetector(beforeSchema: JSONSchema, afterSchema: JSONSchema): JsonBreak[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SchemaBreakDetector = SchemaBreakDetector;
|
|
4
4
|
const dereference_1 = require("./dereference/dereference");
|
|
5
5
|
const compareSubschemas_1 = require("./compareSubschemas");
|
|
6
6
|
const types_1 = require("./types");
|
|
@@ -9,7 +9,7 @@ const types_1 = require("./types");
|
|
|
9
9
|
* Returns each break with a dotted path location, e.g. `subtitle`, `image.width`, `tags[]`,
|
|
10
10
|
* `tags.{contains}`, and a message identifying the kind of break.
|
|
11
11
|
*/
|
|
12
|
-
function
|
|
12
|
+
function SchemaBreakDetector(beforeSchema, afterSchema) {
|
|
13
13
|
const breaks = [];
|
|
14
14
|
// Unfold $refs so inline schemas and $defs references can be compared on equal footing.
|
|
15
15
|
let processedBeforeSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonBreakDetector.js","sourceRoot":"","sources":["../../../src/utils/jsonBreakDetector/jsonBreakDetector.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"jsonBreakDetector.js","sourceRoot":"","sources":["../../../src/utils/jsonBreakDetector/jsonBreakDetector.ts"],"names":[],"mappings":";;AAaA,kDAwBC;AAnCD,2DAA6D;AAC7D,2DAAwD;AACxD,mCAA+C;AAI/C;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,YAAwB,EAAE,WAAuB;IACnF,MAAM,MAAM,GAAgB,EAAE,CAAC;IAE/B,wFAAwF;IACxF,IAAI,qBAA6C,CAAC;IAClD,IAAI,CAAC;QACH,qBAAqB,GAAG,IAAA,8BAAgB,EAAC,YAAY,CAAC,CAAC;IACzD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,iBAAS,EAAC,MAAM,EAAE,EAAE,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC;IACjG,CAAC;IAED,IAAI,oBAA4C,CAAC;IACjD,IAAI,CAAC;QACH,oBAAoB,GAAG,IAAA,8BAAgB,EAAC,WAAW,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,iBAAS,EAAC,MAAM,EAAE,EAAE,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC;IACjG,CAAC;IAED,IAAI,qBAAqB,KAAK,SAAS,IAAI,oBAAoB,KAAK,SAAS,EAAE,CAAC;QAC9E,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAA,qCAAiB,EAAC,qBAAqB,EAAE,oBAAoB,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC3E,OAAO,MAAM,CAAC;AAChB,CAAC"}
|