@bgord/tools 0.16.1 → 0.16.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.
@@ -3,7 +3,7 @@ import type { ETag, WeakETag } from "./etags.vo";
3
3
  export declare const RevisionValueError: {
4
4
  readonly error: "invalid.revision.value";
5
5
  };
6
- export declare const RevisionValue: z.core.$ZodBranded<z.ZodNumber, "RevisionValue">;
6
+ export declare const RevisionValue: z.ZodNumber;
7
7
  export type RevisionValueType = z.infer<typeof RevisionValue>;
8
8
  export declare const RevisionInvalidErrorMessage: "revision.invalid";
9
9
  export declare const RevisionMismatchErrorMessage: "revision.mismatch";
@@ -1,10 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  export const RevisionValueError = { error: "invalid.revision.value" };
3
- export const RevisionValue = z
4
- .number(RevisionValueError)
5
- .int(RevisionValueError)
6
- .min(0, RevisionValueError)
7
- .brand("RevisionValue");
3
+ export const RevisionValue = z.number(RevisionValueError).int(RevisionValueError).min(0, RevisionValueError);
8
4
  export const RevisionInvalidErrorMessage = "revision.invalid";
9
5
  export const RevisionMismatchErrorMessage = "revision.mismatch";
10
6
  export class Revision {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/tools",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
@@ -3,11 +3,7 @@ import type { ETag, WeakETag } from "./etags.vo";
3
3
 
4
4
  export const RevisionValueError = { error: "invalid.revision.value" } as const;
5
5
 
6
- export const RevisionValue = z
7
- .number(RevisionValueError)
8
- .int(RevisionValueError)
9
- .min(0, RevisionValueError)
10
- .brand("RevisionValue");
6
+ export const RevisionValue = z.number(RevisionValueError).int(RevisionValueError).min(0, RevisionValueError);
11
7
 
12
8
  export type RevisionValueType = z.infer<typeof RevisionValue>;
13
9