@naturalcycles/js-lib 15.15.1 → 15.15.2

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,4 +1,4 @@
1
- import { z as z4, ZodType } from 'zod/v4';
1
+ import { z as z4, ZodType } from 'zod';
2
2
  import { customZodSchemas } from './zod.shared.schemas.js';
3
3
  type ExtendedZod = Omit<typeof z4, keyof typeof customZodSchemas | 'iso'> & typeof customZodSchemas;
4
4
  declare const z: ExtendedZod;
@@ -1,4 +1,4 @@
1
- import { z as z4, ZodType } from 'zod/v4';
1
+ import { z as z4, ZodType } from 'zod';
2
2
  import { customZodSchemas } from './zod.shared.schemas.js';
3
3
  const z = { ...z4, ...customZodSchemas };
4
4
  export { z, ZodType };
@@ -1,4 +1,4 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  import type { IsoDate, UnixTimestamp, UnixTimestampMillis } from '../types.js';
3
3
  type ZodBranded<T, B> = T & Record<'_zod', Record<'output', number & B>>;
4
4
  export type ZodBrandedString<B> = ZodBranded<z.ZodString, B>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  export const TS_2500 = 16725225600; // 2500-01-01
3
3
  export const TS_2000 = 946684800; // 2000-01-01
4
4
  export const zUnixTimestamp = () => z
@@ -1,4 +1,4 @@
1
- import type { ZodError, ZodType } from 'zod/v4';
1
+ import type { ZodError, ZodType } from 'zod';
2
2
  import type { ErrorData } from '../error/error.model.js';
3
3
  import { AppError } from '../error/error.util.js';
4
4
  export interface ZodErrorResult<T> {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
3
  "type": "module",
4
- "version": "15.15.1",
4
+ "version": "15.15.2",
5
5
  "dependencies": {
6
6
  "tslib": "^2",
7
- "zod": "^3"
7
+ "zod": "^4"
8
8
  },
9
9
  "devDependencies": {
10
10
  "@naturalcycles/dev-lib": "*",
@@ -1,4 +1,4 @@
1
- import { z as z4, ZodType } from 'zod/v4'
1
+ import { z as z4, ZodType } from 'zod'
2
2
  import { customZodSchemas } from './zod.shared.schemas.js'
3
3
 
4
4
  type ExtendedZod = Omit<typeof z4, keyof typeof customZodSchemas | 'iso'> & typeof customZodSchemas
@@ -1,4 +1,4 @@
1
- import { z } from 'zod/v4'
1
+ import { z } from 'zod'
2
2
  import type { IsoDate, UnixTimestamp, UnixTimestampMillis } from '../types.js'
3
3
 
4
4
  type ZodBranded<T, B> = T & Record<'_zod', Record<'output', number & B>>
@@ -1,4 +1,4 @@
1
- import type { ZodError, ZodType } from 'zod/v4'
1
+ import type { ZodError, ZodType } from 'zod'
2
2
  import type { ErrorData } from '../error/error.model.js'
3
3
  import { AppError } from '../error/error.util.js'
4
4
  import { _stringify } from '../string/stringify.js'