@gunshi/plugin-i18n 0.34.0 → 0.35.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +21 -2
  2. package/package.json +9 -9
package/lib/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Args, Awaitable, Command, CommandContext, DefaultGunshiParams, ExtendContext, ExtractArgs, ExtractExtensions, GunshiParams, GunshiParamsConstraint, PluginWithExtension, Prettify } from "@gunshi/plugin";
2
2
 
3
- //#region ../../node_modules/.pnpm/args-tokens@0.26.1/node_modules/args-tokens/lib/resolver.d.ts
3
+ //#region ../../node_modules/.pnpm/args-tokens@0.27.0/node_modules/args-tokens/lib/resolver.d.ts
4
4
 
5
5
  //#region src/resolver.d.ts
6
6
  /**
7
7
  * An argument schema definition for command-line argument parsing.
8
8
  *
9
9
  * This schema is similar to the schema of Node.js `util.parseArgs` but with extended features:
10
- * - Additional `required` and `description` properties
10
+ * - Additional `required`, `description`, and `hidden` properties
11
11
  * - Extended `type` support: 'string', 'boolean', 'number', 'enum', 'positional', 'custom'
12
12
  * - Simplified `default` property (single type, not union types)
13
13
  *
@@ -112,6 +112,25 @@ interface ArgSchema {
112
112
  * ```
113
113
  */
114
114
  description?: string;
115
+ /**
116
+ * Hide the argument from generated help or usage output.
117
+ *
118
+ * This is metadata for renderers. It does not affect parsing, validation,
119
+ * required checks, defaults, conflicts, or resolved values.
120
+ *
121
+ * @example
122
+ * Hidden compatibility option:
123
+ * ```ts
124
+ * {
125
+ * legacy: {
126
+ * type: 'string',
127
+ * hidden: true,
128
+ * description: 'Deprecated compatibility option'
129
+ * }
130
+ * }
131
+ * ```
132
+ */
133
+ hidden?: boolean;
115
134
  /**
116
135
  * Marks the argument as required.
117
136
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/plugin-i18n",
3
3
  "description": "internationalization plugin for gunshi",
4
- "version": "0.34.0",
4
+ "version": "0.35.0",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@gunshi/plugin": "0.34.0"
56
+ "@gunshi/plugin": "0.35.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@gunshi/plugin-global": "0.34.0"
59
+ "@gunshi/plugin-global": "0.35.0"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "@gunshi/plugin-global": {
@@ -71,12 +71,12 @@
71
71
  "messageformat": "4.0.0",
72
72
  "publint": "^0.3.20",
73
73
  "tsdown": "0.21.0",
74
- "@gunshi/plugin-global": "0.34.0",
75
- "@gunshi/resources": "0.34.0",
76
- "@gunshi/plugin-renderer": "0.34.0",
77
- "@gunshi/bone": "0.34.0",
78
- "@gunshi/shared": "0.34.0",
79
- "gunshi": "0.34.0"
74
+ "@gunshi/bone": "0.35.0",
75
+ "@gunshi/plugin-renderer": "0.35.0",
76
+ "@gunshi/plugin-global": "0.35.0",
77
+ "@gunshi/resources": "0.35.0",
78
+ "@gunshi/shared": "0.35.0",
79
+ "gunshi": "0.35.0"
80
80
  },
81
81
  "scripts": {
82
82
  "build": "tsdown",