@alexaegis/predicate 0.10.0 → 0.11.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.
@@ -7,10 +7,10 @@ export declare const contains: <T extends string>(criteria: T) => Predicate<stri
7
7
  export declare const matchRegExp: <T extends string>(criteria: RegExp) => Predicate<string>;
8
8
  export declare const predicate: {
9
9
  readonly not: <T>(predicate: Predicate<T>) => Predicate<T>;
10
- readonly equal: <T_1>(criteria: T_1) => (value?: T_1 | null | undefined) => value is T_1;
11
- readonly and: <T_2>(...predicates: Predicate<T_2>[]) => Predicate<T_2>;
12
- readonly or: <T_3>(...predicates: Predicate<T_3>[]) => Predicate<T_3>;
13
- readonly contains: <T_4 extends string>(criteria: T_4) => Predicate<string>;
14
- readonly matchRegExp: <T_5 extends string>(criteria: RegExp) => Predicate<string>;
10
+ readonly equal: <T>(criteria: T) => (value?: T | undefined | null) => value is T;
11
+ readonly and: <T>(...predicates: Predicate<T>[]) => Predicate<T>;
12
+ readonly or: <T>(...predicates: Predicate<T>[]) => Predicate<T>;
13
+ readonly contains: <T extends string>(criteria: T) => Predicate<string>;
14
+ readonly matchRegExp: <T extends string>(criteria: RegExp) => Predicate<string>;
15
15
  };
16
16
  //# sourceMappingURL=predicates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/internal/predicates.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,KAAK,OAAO,CAAC;AAErE,eAAO,MAAM,GAAG,iBAAkB,UAAU,CAAC,CAAC,KAAG,UAAU,CAAC,CAE3D,CAAC;AAEF,eAAO,MAAM,KAAK,gBAAiB,CAAC,cACnB,CAAC,GAAG,SAAS,GAAG,IAAI,eACpC,CAAC;AAEF,eAAO,MAAM,GAAG,qBAAsB,UAAU,CAAC,CAAC,EAAE,KAA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GhF,CAAC;AAEF,eAAO,MAAM,SAAS;mBA5BF,CAAC,aAAa,SAAS,CAAC,CAAC,CAAC,KAAG,SAAS,CAAC,CAAC,CAAC;qBAIvC,CAAC,YAAY,CAAC,cACnB,CAAC,GAAG,SAAS,GAAG,IAAI,KAAG,KAAK,IAAI,CAAC;mBAG9B,CAAC,iBAAiB,SAAS,CAAC,CAAC,CAAC,EAAE,KAAG,SAAS,CAAC,CAAC,CAAC;kBAKhD,CAAC,iBAAiB,SAAS,CAAC,CAAC,CAAC,EAAE,KAAG,SAAS,CAAC,CAAC,CAAC;wBAKzC,CAAC,SAAS,MAAM,YAAY,CAAC,KAAG,SAAS,CAAC,MAAM,CAAC;2BAK9C,CAAC,SAAS,MAAM,YAAY,MAAM,KAAG,SAAS,CAAC,MAAM,CAAC;CAYxE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alexaegis/predicate",
3
3
  "description": "Dead simple declarative predicates",
4
- "version": "0.10.0",
4
+ "version": "0.11.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "archetype": {
@@ -40,8 +40,8 @@
40
40
  "access": "public"
41
41
  },
42
42
  "engines": {
43
- "node": ">=20.12.0",
44
- "pnpm": ">=9.1.1"
43
+ "node": ">=20",
44
+ "pnpm": ">=9"
45
45
  },
46
46
  "exports": {
47
47
  ".": {
@@ -54,36 +54,36 @@
54
54
  "./readme": "./readme.md"
55
55
  },
56
56
  "devDependencies": {
57
- "@alexaegis/eslint-config-vitest": "^0.11.2",
58
- "@alexaegis/ts": "^0.11.2",
59
- "@alexaegis/vite": "^0.11.2",
60
- "@alexaegis/vitest": "^0.11.2",
61
- "@types/node": "^20.12.12",
62
- "publint": "^0.2.8",
63
- "typescript": "^5.4.5",
64
- "vite": "^5.2.11",
65
- "vitest": "^1.6.0"
57
+ "@alexaegis/eslint-config-vitest": "^0.12.0",
58
+ "@alexaegis/ts": "^0.12.0",
59
+ "@alexaegis/vite": "^0.12.0",
60
+ "@alexaegis/vitest": "^0.12.0",
61
+ "@types/node": "^22.10.1",
62
+ "publint": "^0.2.12",
63
+ "typescript": "^5.7.2",
64
+ "vite": "^6.0.1",
65
+ "vitest": "^2.1.6"
66
66
  },
67
67
  "scripts": {
68
- "lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
68
+ "lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/predicate",
69
69
  "lint:depcheck_": "depcheck",
70
- "lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
70
+ "lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/predicate",
71
71
  "lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
72
- "lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
72
+ "lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/predicate",
73
73
  "lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
74
- "lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
74
+ "lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/predicate",
75
75
  "lint:md_": "remark --frail --no-stdout --silently-ignore .",
76
- "lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
76
+ "lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/predicate",
77
77
  "lint:tsc_": "tsc --noEmit",
78
- "publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
78
+ "publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/predicate",
79
79
  "publint_": "publint dist",
80
- "test": "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
80
+ "test": "turbo run test_ --concurrency 16 --filter @alexaegis/predicate",
81
81
  "test_": "vitest --passWithNoTests --coverage --run",
82
82
  "test:watch": "vitest --passWithNoTests --coverage",
83
- "all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
84
- "build": "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
83
+ "all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/predicate",
84
+ "build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/predicate",
85
85
  "build-lib_": "vite build",
86
- "format": "turbo run format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/predicate",
86
+ "format": "turbo run format_ --concurrency 16 --filter @alexaegis/predicate",
87
87
  "format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
88
88
  }
89
89
  }