@jarenjs/refs 0.56.0 → 0.67.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
@@ -19,3 +19,19 @@ const jaren = new JarenValidator()
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
21
  See the repository [README](../../README.md) for full documentation and the [HOWTO](../../docs/HOWTO.md) for multi-draft setups.
22
+
23
+ ## Exports
24
+
25
+ Every subpath a consumer can import, derived from the manifest by
26
+ `npm run docs:derive` (`npm run docs:check` fails when the two drift):
27
+
28
+ <!--fact:exports.refs-->
29
+ | Import | Kind | Declarations |
30
+ |---|---|---|
31
+ | `@jarenjs/refs` | JavaScript | declared |
32
+ | `@jarenjs/refs/draft-06` | schema | — |
33
+ | `@jarenjs/refs/draft-07` | schema | — |
34
+ | `@jarenjs/refs/draft-2019-09` | JavaScript | declared |
35
+ | `@jarenjs/refs/draft-2020-12` | JavaScript | declared |
36
+ | `@jarenjs/refs/package.json` | metadata | — |
37
+ <!--/fact-->
@@ -19,8 +19,8 @@ export declare const _draft6: {
19
19
  $ref: string;
20
20
  default?: undefined;
21
21
  } | {
22
- default: number;
23
22
  $ref?: undefined;
23
+ default: number;
24
24
  })[];
25
25
  };
26
26
  simpleTypes: {
@@ -166,13 +166,13 @@ export declare const _draft6: {
166
166
  minItems?: undefined;
167
167
  uniqueItems?: undefined;
168
168
  } | {
169
+ $ref?: undefined;
169
170
  type: string;
170
171
  items: {
171
172
  $ref: string;
172
173
  };
173
174
  minItems: number;
174
175
  uniqueItems: boolean;
175
- $ref?: undefined;
176
176
  })[];
177
177
  };
178
178
  format: {
@@ -214,8 +214,8 @@ export declare const _draft7: {
214
214
  default?: undefined;
215
215
  $ref: string;
216
216
  } | {
217
- default: number;
218
217
  $ref?: undefined;
218
+ default: number;
219
219
  })[];
220
220
  };
221
221
  simpleTypes: {
@@ -367,19 +367,19 @@ export declare const _draft7: {
367
367
  };
368
368
  type: {
369
369
  anyOf: ({
370
- $ref: string;
371
370
  type?: undefined;
372
371
  items?: undefined;
373
372
  minItems?: undefined;
374
373
  uniqueItems?: undefined;
374
+ $ref: string;
375
375
  } | {
376
+ $ref?: undefined;
376
377
  type: string;
377
378
  items: {
378
379
  $ref: string;
379
380
  };
380
381
  minItems: number;
381
382
  uniqueItems: boolean;
382
- $ref?: undefined;
383
383
  })[];
384
384
  };
385
385
  format: {
@@ -33,8 +33,8 @@ declare const _default: {
33
33
  type: string;
34
34
  additionalProperties: {
35
35
  anyOf: ({
36
- $dynamicRef: string;
37
36
  $ref?: undefined;
37
+ $dynamicRef: string;
38
38
  } | {
39
39
  $dynamicRef?: undefined;
40
40
  $ref: string;
@@ -316,11 +316,11 @@ declare const _default: {
316
316
  properties: {
317
317
  type: {
318
318
  anyOf: ({
319
- $ref: string;
320
319
  type?: undefined;
321
320
  items?: undefined;
322
321
  minItems?: undefined;
323
322
  uniqueItems?: undefined;
323
+ $ref: string;
324
324
  } | {
325
325
  $ref?: undefined;
326
326
  type: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jarenjs/refs",
3
3
  "private": false,
4
- "version": "0.56.0",
4
+ "version": "0.67.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -58,6 +58,6 @@
58
58
  "prepack": "npm run build:types"
59
59
  },
60
60
  "dependencies": {
61
- "@jarenjs/core": "^0.56.0"
61
+ "@jarenjs/core": "^0.67.0"
62
62
  }
63
63
  }