@naturalcycles/nodejs-lib 15.90.2 → 15.92.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.
@@ -1,5 +1,5 @@
1
1
  import type { AnyObject } from '@naturalcycles/js-lib/types';
2
- import type { JsonSchema } from '../jsonSchemaBuilder.js';
2
+ import type { JsonSchema } from '../ajvSchema.js';
3
3
  /**
4
4
  * Each row must be an object (current limitation).
5
5
  *
@@ -623,6 +623,12 @@ export function createAjv(opt) {
623
623
  return true;
624
624
  },
625
625
  });
626
+ // postValidation is handled in AjvSchema.getValidationResult, not by Ajv itself.
627
+ // We register it here so Ajv's strict mode doesn't reject the keyword.
628
+ ajv.addKeyword({
629
+ keyword: 'postValidation',
630
+ valid: true,
631
+ });
626
632
  return ajv;
627
633
  }
628
634
  const monthLengths = [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -3,5 +3,4 @@ export * from './ajvSchema.js';
3
3
  export * from './ajvValidationError.js';
4
4
  export * from './from-data/generateJsonSchemaFromData.js';
5
5
  export * from './getAjv.js';
6
- export * from './jsonSchemaBuilder.js';
7
6
  export { Ajv };
@@ -3,5 +3,4 @@ export * from './ajvSchema.js';
3
3
  export * from './ajvValidationError.js';
4
4
  export * from './from-data/generateJsonSchemaFromData.js';
5
5
  export * from './getAjv.js';
6
- export * from './jsonSchemaBuilder.js';
7
6
  export { Ajv };
@@ -1,5 +1,5 @@
1
1
  import type { AnyObject } from '@naturalcycles/js-lib/types';
2
- import type { JsonSchema } from './jsonSchemaBuilder.js';
2
+ import type { JsonSchema } from './ajvSchema.js';
3
3
  export declare const JSON_SCHEMA_ORDER: string[];
4
4
  /**
5
5
  * Merges s2 into s1 (mutates s1) and returns s1.
@@ -30,8 +30,7 @@ export declare function gunzipBuffer(buf: Buffer, options?: ZlibOptions): Promis
30
30
  */
31
31
  export declare function gzipString(s: string, options?: ZlibOptions): Promise<Buffer<ArrayBuffer>>;
32
32
  export declare function gunzipToString(buf: Buffer, options?: ZlibOptions): Promise<string>;
33
- export declare function zstdCompress(input: Buffer | string, level?: Integer, // defaults to 3
34
- options?: ZstdOptions): Promise<Buffer<ArrayBuffer>>;
33
+ export declare function zstdCompress(input: Buffer | string, level?: Integer, options?: ZstdOptions): Promise<Buffer<ArrayBuffer>>;
35
34
  export declare function zstdLevelToOptions(level: Integer | undefined, opt?: ZstdOptions): ZstdOptions;
36
35
  export declare function zstdDecompressToString(input: Buffer, options?: ZstdOptions): Promise<string>;
37
36
  export declare function zstdDecompress(input: Buffer, options?: ZstdOptions): Promise<Buffer<ArrayBuffer>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
3
  "type": "module",
4
- "version": "15.90.2",
4
+ "version": "15.92.0",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@types/js-yaml": "^4",
@@ -18,7 +18,7 @@
18
18
  "yargs": "^18"
19
19
  },
20
20
  "devDependencies": {
21
- "@typescript/native-preview": "^7.0.0-0",
21
+ "@typescript/native-preview": "7.0.0-dev.20260201.1",
22
22
  "@naturalcycles/dev-lib": "18.4.2"
23
23
  },
24
24
  "exports": {