@darksheep/json-schema 0.1.2 → 0.1.5-alpha.6d632ca

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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.4](https://github.com/DarkSheepSoftware/node-packages/compare/json-schema-v0.1.3...json-schema-v0.1.4) (2026-10-30)
4
+
5
+
6
+ ### 🩹 Fixes
7
+
8
+ * give published packages real ranges on their sibling packages ([#1216](https://github.com/DarkSheepSoftware/node-packages/issues/1216)) ([5c6df37](https://github.com/DarkSheepSoftware/node-packages/commit/5c6df37d03f94aae39e90e712693f697d7bb2dc1)), closes [#1215](https://github.com/DarkSheepSoftware/node-packages/issues/1215)
9
+
10
+ ## [0.1.3](https://github.com/DarkSheepSoftware/node-packages/compare/json-schema-v0.1.2...json-schema-v0.1.3) (2026-10-26)
11
+
12
+
13
+ ### 🩹 Fixes
14
+
15
+ * build published types with the repo's typescript ([#1117](https://github.com/DarkSheepSoftware/node-packages/issues/1117)) ([c14d1de](https://github.com/DarkSheepSoftware/node-packages/commit/c14d1dec79596718729149114d2bc716c3f2fe37))
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * The following workspace dependencies were updated
21
+ * dependencies
22
+ * @darksheep/errors bumped to 1.2.2
23
+
3
24
  ## [0.1.2](https://github.com/DarkSheepSoftware/node-packages/compare/json-schema-v0.1.1...json-schema-v0.1.2) (2026-04-17)
4
25
 
5
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darksheep/json-schema",
3
- "version": "0.1.2",
3
+ "version": "0.1.5-alpha.6d632ca",
4
4
  "description": "JSON schema validation (with types)",
5
5
  "license": "UNLICENCED",
6
6
  "type": "module",
@@ -13,20 +13,24 @@
13
13
  "files": [
14
14
  "src",
15
15
  "types",
16
- "!*.test.*"
16
+ "!*.test.*",
17
+ "!*.tsbuildinfo"
17
18
  ],
18
19
  "scripts": {
19
- "prepack": "yarn dlx -q -p typescript tsc",
20
+ "prepack": "rm -rf types && yarn run -T tsc -b",
20
21
  "test": "node --test --experimental-strip-types src/**/*.test.{ts,js}",
21
22
  "test:watch": "node --test --watch --experimental-strip-types src/**/*.test.{ts,js}"
22
23
  },
23
24
  "dependencies": {
24
- "@darksheep/errors": "",
25
- "ajv": "8.18.0",
25
+ "@darksheep/errors": "^1.2.2",
26
+ "ajv": "8.20.0",
26
27
  "ajv-formats": "3.0.1",
27
28
  "json-schema-to-ts": "3.1.1"
28
29
  },
29
30
  "engines": {
30
31
  "node": "^20.13.1 || >=22.2.0"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
31
35
  }
32
36
  }
package/src/async.js CHANGED
@@ -20,7 +20,7 @@ import { isSchemaError } from './errors.js';
20
20
  * )} ToJsonOptions
21
21
  */
22
22
 
23
- const ajv = new Ajv({
23
+ const ajv = AddFormats.default(new Ajv({
24
24
  allErrors: true,
25
25
  verbose: false,
26
26
  allowUnionTypes: false,
@@ -28,9 +28,7 @@ const ajv = new Ajv({
28
28
  ownProperties: true,
29
29
  strict: true,
30
30
  useDefaults: true,
31
- });
32
-
33
- AddFormats.default(ajv);
31
+ }));
34
32
 
35
33
  /**
36
34
  * @type {WeakMap<JSONSchema, AsyncValidateFunction>}
package/src/sync.js CHANGED
@@ -20,7 +20,7 @@ import { isDefinedError } from './errors.js';
20
20
  * )} ToJsonOptions
21
21
  */
22
22
 
23
- const ajv = new Ajv({
23
+ const ajv = AddFormats.default(new Ajv({
24
24
  allErrors: true,
25
25
  verbose: false,
26
26
  allowUnionTypes: false,
@@ -28,9 +28,7 @@ const ajv = new Ajv({
28
28
  ownProperties: true,
29
29
  strict: true,
30
30
  useDefaults: false,
31
- });
32
-
33
- AddFormats.default(ajv);
31
+ }));
34
32
 
35
33
  /**
36
34
  * @type {WeakMap<JSONSchema, ValidateFunction>}