@bgord/tools 0.12.11 → 0.12.13

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,3 +1,3 @@
1
1
  import { z } from "zod/v4";
2
- export declare const Language: z.core.$ZodBranded<z.ZodString, "Language">;
2
+ export declare const Language: z.ZodString;
3
3
  export type LanguageType = z.infer<typeof Language>;
@@ -2,5 +2,4 @@ import { z } from "zod/v4";
2
2
  export const Language = z
3
3
  .string()
4
4
  .length(2)
5
- .regex(/^[a-z]{2}$/, { message: "invalid_language" })
6
- .brand("Language");
5
+ .regex(/^[a-z]{2}$/, { message: "invalid_language" });
package/dist/mime.vo.d.ts CHANGED
@@ -17,5 +17,8 @@ export declare class NotAcceptedMimeError extends Error {
17
17
  }
18
18
  export declare const MIMES: {
19
19
  csv: Mime;
20
+ text: Mime;
21
+ markdown: Mime;
22
+ pdf: Mime;
20
23
  };
21
24
  export {};
package/dist/mime.vo.js CHANGED
@@ -39,4 +39,7 @@ export class NotAcceptedMimeError extends Error {
39
39
  }
40
40
  export const MIMES = {
41
41
  csv: new Mime("text/csv"),
42
+ text: new Mime("text/plain"),
43
+ markdown: new Mime("text/markdown"),
44
+ pdf: new Mime("application/pdf"),
42
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/tools",
3
- "version": "0.12.11",
3
+ "version": "0.12.13",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
@@ -21,20 +21,23 @@
21
21
  "preinstall": "bunx only-allow bun"
22
22
  },
23
23
  "devDependencies": {
24
- "@biomejs/biome": "2.2.0",
24
+ "@biomejs/biome": "2.2.2",
25
25
  "@commitlint/cli": "19.8.1",
26
26
  "@commitlint/config-conventional": "19.8.1",
27
27
  "@types/bun": "1.2.20",
28
28
  "cspell": "9.2.0",
29
- "knip": "5.62.0",
29
+ "knip": "5.63.0",
30
30
  "lefthook": "1.12.3",
31
31
  "only-allow": "1.2.1",
32
32
  "shellcheck": "4.1.0",
33
- "typescript": "5.9.2"
33
+ "typescript": "5.9.2",
34
+ "zod": "4.1.1"
34
35
  },
35
36
  "dependencies": {
36
- "date-fns": "4.1.0",
37
- "zod": "3.25.76"
37
+ "date-fns": "4.1.0"
38
+ },
39
+ "peerDependencies": {
40
+ "zod": "4.1.1"
38
41
  },
39
42
  "sideEffects": false
40
43
  }
@@ -3,7 +3,6 @@ import { z } from "zod/v4";
3
3
  export const Language = z
4
4
  .string()
5
5
  .length(2)
6
- .regex(/^[a-z]{2}$/, { message: "invalid_language" })
7
- .brand("Language");
6
+ .regex(/^[a-z]{2}$/, { message: "invalid_language" });
8
7
 
9
8
  export type LanguageType = z.infer<typeof Language>;
package/src/mime.vo.ts CHANGED
@@ -53,4 +53,7 @@ export class NotAcceptedMimeError extends Error {
53
53
 
54
54
  export const MIMES = {
55
55
  csv: new Mime("text/csv"),
56
+ text: new Mime("text/plain"),
57
+ markdown: new Mime("text/markdown"),
58
+ pdf: new Mime("application/pdf"),
56
59
  };