@xpadev-net/niconicomments 0.2.77 → 0.3.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.
Files changed (4) hide show
  1. package/README.md +45 -7
  2. package/dist/bundle.d.ts +440 -307
  3. package/dist/bundle.js +2919 -1144
  4. package/package.json +20 -23
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@xpadev-net/niconicomments",
3
- "version": "0.2.77",
3
+ "version": "0.3.0",
4
4
  "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/bundle.d.ts",
7
7
  "sideEffects": false,
8
8
  "scripts": {
9
- "build": "npx rimraf dist&&npm run build:ts&&npm run build:dts",
9
+ "build": "rimraf dist && \"$npm_execpath\" run build:ts && \"$npm_execpath\" run build:dts",
10
10
  "build:ts": "rolldown -c rolldown.config.mjs",
11
11
  "build:dts": "rolldown -c rolldown.config.dts.mjs",
12
12
  "watch": "rolldown -c rolldown.config.mjs -w",
13
13
  "typedoc": "typedoc --entryPointStrategy Expand --out ./docs/type/ ./src/",
14
- "prepublishOnly": "npm run build",
14
+ "prepublishOnly": "\"$npm_execpath\" run check-types && \"$npm_execpath\" run build",
15
15
  "check-types": "tsc --noEmit --jsx react --types node --project tsconfig.json",
16
16
  "eslint": "biome lint src",
17
17
  "eslint:fix": "biome lint --write src",
@@ -19,7 +19,7 @@
19
19
  "format:fix": "biome format --write src",
20
20
  "lint": "biome check src",
21
21
  "lint:fix": "biome check --write --unsafe src",
22
- "prepare": "lefthook install",
22
+ "prepare": "node scripts/prepare.mjs",
23
23
  "test": "docker-compose run --rm pw",
24
24
  "test-server": "http-server",
25
25
  "test:unit": "vitest run",
@@ -48,29 +48,26 @@
48
48
  "homepage": "https://xpadev-net.github.io/niconicomments/",
49
49
  "license": "MIT",
50
50
  "devDependencies": {
51
- "@biomejs/biome": "^2.4.9",
52
- "@codspeed/vitest-plugin": "^5.2.0",
53
- "@playwright/test": "^1.58.2",
54
- "@types/node": "^24.12.0",
51
+ "@biomejs/biome": "^2.4.16",
52
+ "@codspeed/vitest-plugin": "^5.5.0",
53
+ "@playwright/test": "^1.60.0",
54
+ "@types/node": "^24.12.4",
55
+ "@types/pngjs": "^6.0.5",
55
56
  "http-server": "^14.1.1",
56
- "lefthook": "^2.1.4",
57
+ "lefthook": "^2.1.9",
58
+ "pixelmatch": "^7.2.0",
59
+ "pngjs": "^7.0.0",
57
60
  "rimraf": "^6.1.3",
58
- "rolldown": "1.0.0-rc.12",
59
- "rolldown-plugin-dts": "^0.23.2",
61
+ "rolldown": "^1.1.0",
62
+ "rolldown-plugin-dts": "^0.25.1",
60
63
  "tslib": "^2.8.1",
61
- "typedoc": "^0.28.18",
62
- "typedoc-plugin-missing-exports": "^4.1.2",
63
- "typescript": "^6.0.2",
64
- "valibot": "^1.3.1",
65
- "vitest": "^4.1.1"
64
+ "typedoc": "^0.28.19",
65
+ "typedoc-plugin-missing-exports": "^4.1.3",
66
+ "typescript": "^6.0.3",
67
+ "valibot": "^1.4.1",
68
+ "vitest": "^4.1.8"
66
69
  },
67
70
  "engines": {
68
- "node": ">=20.0.0"
69
- },
70
- "pnpm": {
71
- "onlyBuiltDependencies": [
72
- "@biomejs/biome",
73
- "lefthook"
74
- ]
71
+ "node": ">=22.0.0"
75
72
  }
76
73
  }