koa-files 4.1.6 → 5.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,9 @@
1
1
  {
2
2
  "name": "koa-files",
3
- "version": "4.1.6",
3
+ "version": "5.0.0",
4
4
  "description": "A static files serving middleware for koa.",
5
5
  "type": "module",
6
- "main": "cjs/index.cjs",
7
- "module": "esm/index.js",
6
+ "sideEffects": false,
8
7
  "exports": {
9
8
  ".": {
10
9
  "import": "./esm/index.js",
@@ -31,7 +30,7 @@
31
30
  "middleware"
32
31
  ],
33
32
  "engines": {
34
- "node": ">=8.0.0"
33
+ "node": ">=18"
35
34
  },
36
35
  "author": {
37
36
  "name": "nuintun",
@@ -50,26 +49,27 @@
50
49
  "devDependencies": {
51
50
  "@rollup/plugin-typescript": "^12.3.0",
52
51
  "@types/etag": "^1.8.4",
53
- "@types/koa": "^3.0.1",
54
- "@types/node": "^25.2.1",
52
+ "@types/koa": "^3.0.2",
53
+ "@types/node": "^25.5.2",
55
54
  "@types/range-parser": "^1.2.7",
56
- "dts-paths": "^1.1.16",
57
- "koa": "^3.1.1",
55
+ "dts-paths": "^2.2.1",
56
+ "koa": "^3.2.0",
58
57
  "prettier": "^3.8.1",
59
- "rimraf": "^6.1.2",
60
- "rollup": "^4.57.1",
61
- "typescript": "^5.9.3"
58
+ "rimraf": "^6.1.3",
59
+ "rollup": "^4.60.1",
60
+ "typescript": "^6.0.2"
62
61
  },
63
62
  "peerDependencies": {
64
63
  "koa": ">=2.0.0"
65
64
  },
66
65
  "scripts": {
67
66
  "lint": "tsc --noEmit",
68
- "test": "node tests/index.js",
69
- "clean": "node tools/clean.js",
70
- "build:cjs": "rollup -c tools/rollup.cjs.js",
71
- "build:esm": "rollup -c tools/rollup.esm.js",
72
- "build:fix-types": "node tools/fix-types.js",
67
+ "pretest": "pnpm build",
68
+ "clean": "node tools/clean.ts",
69
+ "test": "node --test tests/index.ts",
70
+ "build:cjs": "rollup -c tools/rollup.cjs.ts",
71
+ "build:esm": "rollup -c tools/rollup.esm.ts",
72
+ "build:fix-types": "node tools/fix-types.ts",
73
73
  "build": "pnpm clean && pnpm build:main && pnpm format",
74
74
  "format": "prettier --write . --ignore-path .prettierignore",
75
75
  "build:main": "pnpm build:cjs && pnpm build:esm && pnpm build:fix-types"