gapless.js 3.0.1 → 4.0.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.
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "gapless.js",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "Gapless audio playback javascript plugin",
5
- "main": "dist/cjs/index.cjs",
5
+ "type": "module",
6
+ "main": "dist/index.mjs",
6
7
  "module": "dist/index.mjs",
7
- "types": "dist/index.d.mts",
8
+ "types": "dist/index.d.ts",
8
9
  "files": [
9
10
  "dist",
10
11
  "src",
@@ -13,22 +14,20 @@
13
14
  "exports": {
14
15
  "./package.json": "./package.json",
15
16
  ".": {
16
- "import": {
17
- "types": "./dist/index.d.mts",
18
- "default": "./dist/index.mjs"
19
- },
20
- "require": {
21
- "types": "./dist/cjs/index.d.cts",
22
- "default": "./dist/cjs/index.cjs"
23
- }
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.mjs"
24
19
  }
25
20
  },
26
21
  "sideEffects": false,
27
22
  "private": false,
28
23
  "scripts": {
29
- "test": "echo \"Error: no test specified\" && exit 1",
24
+ "test": "vitest run",
30
25
  "build": "tsup",
31
- "types": "tsc --noEmit"
26
+ "build:demo": "pnpm --dir demo build",
27
+ "dev": "pnpm --dir demo dev",
28
+ "types": "tsc --noEmit",
29
+ "test:watch": "vitest",
30
+ "test:coverage": "vitest run --coverage"
32
31
  },
33
32
  "repository": {
34
33
  "type": "git",
@@ -37,9 +36,18 @@
37
36
  "author": "Daniel Saewitz",
38
37
  "license": "MIT",
39
38
  "devDependencies": {
40
- "@switz/eslint-config": "^12.3.2",
39
+ "@playwright/test": "^1.58.2",
40
+ "@switz/eslint-config": "^12.5.2",
41
+ "@vitest/coverage-v8": "^4.0.18",
41
42
  "eslint": "^9.25.1",
42
- "tsup": "^8.4.0",
43
- "typescript": "^5.8.3"
43
+ "happy-dom": "^20.7.0",
44
+ "playwright": "^1.58.2",
45
+ "tsup": "^8.5.1",
46
+ "typescript": "^5.9.3",
47
+ "vitest": "^4.0.18"
48
+ },
49
+ "packageManager": "pnpm@10.30.2",
50
+ "dependencies": {
51
+ "xstate": "^5.28.0"
44
52
  }
45
- }
53
+ }