@cplieger/actions 2.0.4 → 2.0.6

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/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/actions",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "exports": {
5
5
  ".": "./src/index.ts",
6
6
  "./testing": "./src/testing.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/actions",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -13,16 +13,16 @@
13
13
  "test": "vitest --run"
14
14
  },
15
15
  "dependencies": {
16
- "@cplieger/reactive": "1.2.1"
16
+ "@cplieger/reactive": "1.2.2"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@eslint/js": "10.0.1",
20
20
  "@types/node": "24.13.2",
21
21
  "@vitest/coverage-v8": "4.1.9",
22
- "eslint": "10.5.0",
22
+ "eslint": "10.6.0",
23
23
  "fast-check": "4.8.0",
24
24
  "happy-dom": "20.10.6",
25
- "prettier": "3.8.4",
25
+ "prettier": "3.9.1",
26
26
  "typescript-eslint": "8.62.0",
27
27
  "vitest": "4.1.9"
28
28
  },
package/src/loading.ts CHANGED
@@ -18,10 +18,7 @@ import { isPending, pendingCount } from "./registry.js";
18
18
 
19
19
  /** Element types that have a `.disabled` writable boolean. */
20
20
  type DisableableElement =
21
- | HTMLButtonElement
22
- | HTMLInputElement
23
- | HTMLSelectElement
24
- | HTMLTextAreaElement;
21
+ HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
25
22
 
26
23
  interface BindLoadingOptions {
27
24
  ariaBusy?: boolean;
package/src/types.ts CHANGED
@@ -50,9 +50,7 @@ export interface ActionInstance<TArgs = unknown, TResult = unknown> {
50
50
  * computed from action args + result/error at call time. Pass false
51
51
  * to opt out of the default notification for that branch. */
52
52
  export type NotificationSpec<TArgs, TPayload> =
53
- | string
54
- | ((args: TArgs, payload: TPayload) => string)
55
- | false;
53
+ string | ((args: TArgs, payload: TPayload) => string) | false;
56
54
 
57
55
  /** @deprecated Use {@link NotificationSpec} instead. */
58
56
  export type ToastSpec<TArgs, TPayload> = NotificationSpec<TArgs, TPayload>;