@qui-cli/validators 3.0.1 → 3.0.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [3.0.2](https://github.com/battis/qui-cli/compare/validators/3.0.1...validators/3.0.2) (2025-11-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * remove unnecessary plugin dependency ([ac4be0b](https://github.com/battis/qui-cli/commit/ac4be0b7d92240beecc673cbfafa4502b439663a))
11
+
5
12
  ## [3.0.1](https://github.com/battis/qui-cli/compare/validators/3.0.0...validators/3.0.1) (2025-08-04)
6
13
 
7
14
 
@@ -1,5 +1,4 @@
1
1
  export type Validator = (value?: string) => boolean | string;
2
- export declare const name = "validators";
3
2
  export declare function notEmpty(value?: string): true | "May not be empty";
4
3
  export declare function minLength(minLength: number): Validator;
5
4
  export declare function maxLength(maxLength: number): Validator;
@@ -5,7 +5,6 @@ import emailValidator from 'email-validator';
5
5
  import pathValidator from 'is-valid-path';
6
6
  import fs from 'node:fs';
7
7
  import path from 'node:path';
8
- export const name = 'validators';
9
8
  export function notEmpty(value) {
10
9
  return (!!value && value.length > 0) || 'May not be empty';
11
10
  }
@@ -36,7 +35,7 @@ export function cron(value) {
36
35
  return (
37
36
  // FIXME cronValidator callable
38
37
  // Issue URL: https://github.com/battis/qui-cli/issues/27
39
- // @ts-ignore
38
+ // @ts-expect-error 2349 cronValidator typing
40
39
  (notEmpty(value) === true && cronValidator(value || '').isValid()) ||
41
40
  'Must be valid cron schedule');
42
41
  }
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- import * as Validators from './Validators.js';
2
- export { Validators };
1
+ export * as Validators from './Validators.js';
package/dist/index.js CHANGED
@@ -1,4 +1 @@
1
- import { register } from '@qui-cli/plugin';
2
- import * as Validators from './Validators.js';
3
- await register(Validators);
4
- export { Validators };
1
+ export * as Validators from './Validators.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qui-cli/validators",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "@qui-cli Plugin: Input validators",
5
5
  "homepage": "https://github.com/battis/qui-cli/tree/main/packages/validators#readme",
6
6
  "repository": {
@@ -18,23 +18,21 @@
18
18
  "types": "./dist/index.d.ts",
19
19
  "dependencies": {
20
20
  "@tahul/is-valid-domain": "^1.0.5",
21
- "cron-validate": "^1.5.2",
21
+ "cron-validate": "^1.5.3",
22
22
  "email-validator": "^2.0.4",
23
23
  "is-valid-path": "^0.1.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@tsconfig/node20": "^20.1.6",
27
27
  "@types/is-valid-path": "^0.1.2",
28
- "@types/node": "^24.1.0",
29
- "commit-and-tag-version": "^12.5.2",
28
+ "@types/node": "^24.10.0",
29
+ "commit-and-tag-version": "^12.6.0",
30
30
  "del-cli": "^6.0.0",
31
31
  "npm-run-all": "^4.1.5",
32
- "typescript": "^5.9.2",
33
- "@qui-cli/root": "3.0.1",
34
- "@qui-cli/plugin": "3.0.0"
32
+ "typescript": "^5.9.3",
33
+ "@qui-cli/root": "3.0.1"
35
34
  },
36
35
  "peerDependencies": {
37
- "@qui-cli/plugin": "3.x",
38
36
  "@qui-cli/root": "3.x"
39
37
  },
40
38
  "target": "node",