toastflow-core 1.0.2 → 1.0.3

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/package.json +2 -5
  2. package/src/store.ts +1 -2
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://github.com/adrianjanocko/toastflow.git",
9
9
  "directory": "packages/core"
10
10
  },
11
- "version": "1.0.2",
11
+ "version": "1.0.3",
12
12
  "main": "src/index.ts",
13
13
  "module": "src/index.ts",
14
14
  "types": "src/index.ts",
@@ -20,8 +20,5 @@
20
20
  "tsup": "^8.5.1",
21
21
  "typescript": "^5.9.3",
22
22
  "vitest": "^4.0.13"
23
- },
24
- "dependencies": {
25
- "uuid": "^13.0.0"
26
23
  }
27
- }
24
+ }
package/src/store.ts CHANGED
@@ -15,7 +15,6 @@ import type {
15
15
  ToastType,
16
16
  ToastUpdateInput,
17
17
  } from "./types";
18
- import { v4 as uuidv4 } from "uuid";
19
18
 
20
19
  type Listener = (state: ToastState) => void;
21
20
  type EventListener = (event: ToastEvent) => void;
@@ -150,7 +149,7 @@ export function createToastStore(
150
149
  }
151
150
  }
152
151
 
153
- const id = uuidv4();
152
+ const id = crypto.randomUUID();
154
153
  const createdAt = Date.now();
155
154
 
156
155
  const toastInstance: ToastInstance = {