@gunshi/combinators 1.0.0-rc.3 → 1.0.0-rc.5

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/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Version][npm-version-src]][npm-version-href]
4
4
  [![InstallSize][install-size-src]][install-size-src]
5
- [![JSR][jsr-src]][jsr-href]
6
5
 
7
6
  > parser combinators for gunshi argument schema
8
7
 
@@ -32,9 +31,6 @@ pnpm add @gunshi/combinators
32
31
  ## yarn
33
32
  yarn add @gunshi/combinators
34
33
 
35
- ## deno
36
- deno add jsr:@gunshi/combinators
37
-
38
34
  ## bun
39
35
  bun add @gunshi/combinators
40
36
  ```
@@ -100,6 +96,4 @@ About details, See the below official docs sections:
100
96
 
101
97
  [npm-version-src]: https://img.shields.io/npm/v/@gunshi/combinators?style=flat
102
98
  [npm-version-href]: https://npmjs.com/package/@gunshi/combinators@alpha
103
- [jsr-src]: https://jsr.io/badges/@gunshi/combinators
104
- [jsr-href]: https://jsr.io/@gunshi/combinators
105
99
  [install-size-src]: https://pkg-size.dev/badge/install/23122
package/lib/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- //#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/resolver.d.ts
2
- //#region src/resolver.d.ts
1
+ //#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/resolver.d.ts
3
2
  /**
4
3
  * An argument schema definition for command-line argument parsing.
5
4
  *
@@ -361,9 +360,9 @@ interface ArgSchema {
361
360
  */
362
361
  toKebab?: true;
363
362
  /**
364
- * Names of other options that conflict with this option.
363
+ * Names of other arguments that conflict with this argument.
365
364
  *
366
- * When this option is used together with any of the conflicting options, the error is an
365
+ * When this argument is used together with any of the conflicting arguments, the error is an
367
366
  * `ArgResolveError` with type 'conflict' and the code `err:arg:conflict`
368
367
  * ({@link ArgsValidationErrorKeys}.conflict). Its `values` has the `displayName` and `name` of
369
368
  * the argument whose `conflicts` names the other one, and the `conflictDisplayName` and
@@ -373,9 +372,8 @@ interface ArgSchema {
373
372
  *
374
373
  * A positional argument can be on either side, such as `[file]` and `--stdin`. It conflicts when
375
374
  * it is given, and it is shown by its name, such as `'file'` (in kebab-case with `toKebab`), as
376
- * in its other errors. The message starts with the kind of the argument given as `name`:
377
- * `Positional argument 'file' conflicts with '--stdin'` or
378
- * `Optional argument '--stdin' conflicts with 'file'`.
375
+ * in its other errors. The message names the argument given as `name` first:
376
+ * `'file' conflicts with '--stdin'` or `'--stdin' conflicts with 'file'`.
379
377
  *
380
378
  * Conflicts only need to be defined on one side - if option A defines a conflict
381
379
  * with option B, the conflict is automatically detected when both are used,
@@ -414,7 +412,7 @@ interface ArgSchema {
414
412
  * }
415
413
  * }
416
414
  * // Usage: --summer --autumn reports an error
417
- * // Error: "Optional argument '--summer' conflicts with '--autumn'"
415
+ * // Error: "'--summer' conflicts with '--autumn'"
418
416
  * ```
419
417
  *
420
418
  * @example
@@ -454,7 +452,7 @@ interface ArgSchema {
454
452
  * toKebab: true // Accessible as --autumn-season
455
453
  * }
456
454
  * }
457
- * // Error: "Optional argument '--summer-season' conflicts with '--autumn-season'"
455
+ * // Error: "'--summer-season' conflicts with '--autumn-season'"
458
456
  * ```
459
457
  */
460
458
  conflicts?: string | string[];
@@ -559,8 +557,7 @@ interface Args {
559
557
  [option: string]: ArgSchema;
560
558
  }
561
559
  //#endregion
562
- //#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/combinators.d.ts
563
- //#region src/combinators.d.ts
560
+ //#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/combinators.d.ts
564
561
  /**
565
562
  * A combinator produced by combinator factory functions.
566
563
  *
@@ -1891,5 +1888,4 @@ declare function merge<T extends Args[]>(...schemas: T): MergeArgs<T>;
1891
1888
  */
1892
1889
  declare function extend<T extends Args, U extends Args>(base: T, overrides: U): Omit<T, keyof U> & U;
1893
1890
  //#endregion
1894
- //#endregion
1895
1891
  export { type BaseOptions, type BooleanOptions, type Combinator, type CombinatorOptions, type CombinatorSchema, type FloatOptions, type IntegerOptions, type NumberOptions, type StringOptions, args, boolean, choice, combinator, describe, extend, float, hidden, integer, map, merge, multiple, number, positional, required, short, string, unrequired, withDefault };
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@
9
9
  "-".codePointAt(0);
10
10
  "=".codePointAt(0);
11
11
  //#endregion
12
- //#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/utils.js
12
+ //#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/utils.js
13
13
  /**
14
14
  * @author kazuya kawaguchi (a.k.a. kazupon)
15
15
  * @license MIT
@@ -24,7 +24,7 @@ function formatChoices(choices) {
24
24
  return choices.map((value) => JSON.stringify(value)).join(", ");
25
25
  }
26
26
  //#endregion
27
- //#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/resolver-CAlgxe_R.js
27
+ //#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/resolver-Cx5Pw6-S.js
28
28
  /**
29
29
  * Internal definitions shared by the modules of `args-tokens`.
30
30
  *
@@ -127,7 +127,7 @@ var ArgsValidationError = class extends Error {
127
127
  }
128
128
  };
129
129
  //#endregion
130
- //#region ../../node_modules/.pnpm/args-tokens@1.0.0/node_modules/args-tokens/lib/combinators.js
130
+ //#region ../../node_modules/.pnpm/args-tokens@1.0.2/node_modules/args-tokens/lib/combinators.js
131
131
  /**
132
132
  * Parser combinator factory functions for composable argument schema construction.
133
133
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/combinators",
3
3
  "description": "parser combinators for gunshi argument schema",
4
- "version": "1.0.0-rc.3",
4
+ "version": "1.0.0-rc.5",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -52,16 +52,11 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "deno": "^2.7.14",
56
- "gunshi": "1.0.0-rc.3",
57
- "jsr": "^0.14.3",
58
- "jsr-exports-lint": "^0.4.2",
55
+ "gunshi": "1.0.0-rc.5",
59
56
  "publint": "^0.3.20",
60
57
  "tsdown": "0.22.14"
61
58
  },
62
59
  "scripts": {
63
- "build": "tsdown",
64
- "lint:jsr": "jsr publish --dry-run --allow-dirty",
65
- "typecheck:deno": "deno check --import-map=../../importmap.json ./src"
60
+ "build": "tsdown"
66
61
  }
67
62
  }