politty 0.11.1 → 0.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "politty",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "A lightweight CLI framework inspired by citty with zod v4 registry integration for type-safe metadata management",
5
5
  "keywords": [
6
6
  "argument-parser",
@@ -69,18 +69,18 @@
69
69
  "@inquirer/prompts": "8.5.2",
70
70
  "@quansync/fs": "1.0.0",
71
71
  "@types/node": "25.9.4",
72
- "@typescript/native-preview": "7.0.0-dev.20260701.1",
73
- "@vitest/coverage-v8": "4.1.9",
74
- "knip": "6.23.0",
72
+ "@typescript/native-preview": "7.0.0-dev.20260705.1",
73
+ "@vitest/coverage-v8": "4.1.10",
74
+ "knip": "6.24.0",
75
75
  "lefthook": "2.1.9",
76
76
  "organize-imports-cli": "1.0.2",
77
77
  "oxfmt": "0.57.0",
78
78
  "oxlint": "1.72.0",
79
79
  "quansync": "1.0.0",
80
80
  "tsdown": "0.22.3",
81
- "tsx": "4.22.4",
81
+ "tsx": "4.23.0",
82
82
  "typescript": "6.0.3",
83
- "vitest": "4.1.9",
83
+ "vitest": "4.1.10",
84
84
  "zod": "4.4.3"
85
85
  },
86
86
  "peerDependencies": {
@@ -1,25 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/core/arg-registry.ts
4
- /**
5
- * Custom registry for politty argument metadata
6
- * This avoids polluting Zod's GlobalMeta
7
- */
8
- const argRegistry = z.registry();
9
- function arg(schema, meta) {
10
- if (meta) argRegistry.add(schema, meta);
11
- return schema;
12
- }
13
- /**
14
- * Get metadata for a schema from the registry
15
- *
16
- * @param schema - The Zod schema
17
- * @returns The metadata if registered, undefined otherwise
18
- */
19
- function getArgMeta(schema) {
20
- return argRegistry.get(schema);
21
- }
22
-
23
- //#endregion
24
- export { getArgMeta as n, arg as t };
25
- //# sourceMappingURL=arg-registry-BeLLAW5-.js.map