@jarenjs/refs 0.9.2 → 0.34.0

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/README.md CHANGED
@@ -18,4 +18,4 @@ const jaren = new JarenValidator()
18
18
 
19
19
  The meta-schemas matter beyond `$ref` resolution: [`@jarenjs/validate`](../validate) uses them for draft detection, `$vocabulary`-aware keyword selection (including `format-assertion`), and cross-draft references — all offline, with no network fetches.
20
20
 
21
- See the repository [README](../../README.md) for full documentation and the [HOWTO](../../HOWTO.md) for multi-draft setups.
21
+ See the repository [README](../../README.md) for full documentation and the [HOWTO](../../docs/HOWTO.md) for multi-draft setups.
@@ -58,8 +58,8 @@ declare const _default: {
58
58
  };
59
59
  items: {
60
60
  anyOf: ({
61
- $ref?: undefined;
62
61
  $recursiveRef: string;
62
+ $ref?: undefined;
63
63
  } | {
64
64
  $recursiveRef?: undefined;
65
65
  $ref: string;
@@ -342,13 +342,13 @@ declare const _default: {
342
342
  minItems?: undefined;
343
343
  uniqueItems?: undefined;
344
344
  } | {
345
- $ref?: undefined;
346
345
  type: string;
347
346
  items: {
348
347
  $ref: string;
349
348
  };
350
349
  minItems: number;
351
350
  uniqueItems: boolean;
351
+ $ref?: undefined;
352
352
  })[];
353
353
  };
354
354
  };
@@ -32,8 +32,8 @@ declare const draft2020: ({
32
32
  type: string;
33
33
  additionalProperties: {
34
34
  anyOf: ({
35
- $ref?: undefined;
36
35
  $dynamicRef: string;
36
+ $ref?: undefined;
37
37
  } | {
38
38
  $dynamicRef?: undefined;
39
39
  $ref: string;
@@ -307,11 +307,11 @@ declare const draft2020: ({
307
307
  properties: {
308
308
  type: {
309
309
  anyOf: ({
310
+ $ref: string;
310
311
  type?: undefined;
311
312
  items?: undefined;
312
313
  minItems?: undefined;
313
314
  uniqueItems?: undefined;
314
- $ref: string;
315
315
  } | {
316
316
  $ref?: undefined;
317
317
  type: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jarenjs/refs",
3
3
  "private": false,
4
- "version": "0.9.2",
4
+ "version": "0.34.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "license": "MIT",
21
21
  "engines": {
22
- "node": ">=22"
22
+ "node": ">=24"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public",
@@ -58,6 +58,6 @@
58
58
  "prepack": "npm run build:types"
59
59
  },
60
60
  "dependencies": {
61
- "@jarenjs/core": "^0.9.2"
61
+ "@jarenjs/core": "^0.34.0"
62
62
  }
63
63
  }
package/src/index.js CHANGED
@@ -75,7 +75,6 @@ export function getSchemaDraftById(schemaId) {
75
75
  throw new Error('The schema id must be of type string');
76
76
 
77
77
  const $id = schemaId.toLowerCase();
78
- // eslint-disable-next-line no-unused-vars
79
78
  for (const [_, item] of Object.entries(schemaDrafts)) {
80
79
  const draft = item.draft;
81
80
  if (draft.toLowerCase() === $id)