koatty_cacheable 3.0.4 → 3.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/dist/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "koatty_cacheable",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Cacheable for koatty.",
5
5
  "scripts": {
6
- "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
7
- "build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
8
- "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
- "build:doc": "npx api-documenter markdown --input temp --output docs/api",
6
+ "build": "pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp",
7
+ "build:js": "tsup",
10
8
  "build:dts": "bash ../../scripts/build-dts.sh",
11
- "eslint": "eslint --ext .ts,.js ./",
12
- "lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
13
- "prepublishOnly": "npm test && npm run build",
14
- "prerelease": "npm test && npm run build",
15
- "test": "npm run eslint && jest --passWithNoTests",
9
+ "build:doc": "api-documenter markdown --input temp --output docs/api",
10
+ "build:cp": "node ../../scripts/postBuild.js",
11
+ "clean": "rimraf dist temp docs/api",
12
+ "lint": "eslint --ext .ts,.js ./src",
13
+ "test": "pnpm run lint && jest --passWithNoTests",
16
14
  "test:cov": "jest --collectCoverage --detectOpenHandles"
17
15
  },
18
- "main": "./dist/index.js",
16
+ "main": "./index.js",
19
17
  "exports": {
20
- "require": "./dist/index.js",
21
- "import": "./dist/index.mjs",
22
- "types": "./dist/index.d.ts"
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.js"
22
+ }
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "koatty"
33
33
  ],
34
34
  "engines": {
35
- "node": ">10.0.0"
35
+ "node": ">=18.0.0"
36
36
  },
37
37
  "author": {
38
38
  "name": "richenlin",
@@ -50,49 +50,35 @@
50
50
  }
51
51
  ],
52
52
  "devDependencies": {
53
- "@commitlint/cli": "^19.x.x",
54
- "@commitlint/config-conventional": "^19.x.x",
55
- "@commitlint/format": "^19.x.x",
56
- "@microsoft/api-documenter": "^7.x.x",
57
- "@microsoft/api-extractor": "^7.x.x",
58
- "@rollup/plugin-commonjs": "^28.x.x",
59
- "@rollup/plugin-json": "^6.x.x",
60
- "@rollup/plugin-node-resolve": "^16.x.x",
61
- "@types/jest": "^29.x.x",
53
+ "@microsoft/api-documenter": "^7.26.x",
54
+ "@microsoft/api-extractor": "^7.52.x",
55
+ "@types/jest": "^29.5.x",
62
56
  "@types/koa": "^2.x.x",
63
57
  "@types/lodash": "^4.x.x",
64
58
  "@types/node": "^22.x.x",
65
59
  "@typescript-eslint/eslint-plugin": "^8.x.x",
66
60
  "@typescript-eslint/parser": "^8.x.x",
67
- "conventional-changelog-cli": "^5.x.x",
68
- "copyfiles": "^2.x.x",
69
61
  "eslint": "^8.x.x",
70
62
  "eslint-plugin-jest": "^28.x.x",
71
- "husky": "^4.x.x",
72
63
  "jest": "^29.x.x",
73
64
  "jest-html-reporters": "^3.x.x",
74
- "reflect-metadata": "^0.x.x",
75
- "rollup": "^4.x.x",
76
- "rollup-plugin-delete": "^2.x.x",
77
- "rollup-plugin-typescript2": "^0.x.x",
78
- "standard-version": "^9.x.x",
65
+ "reflect-metadata": "^0.2.2",
79
66
  "ts-jest": "^29.x.x",
80
- "ts-node": "^10.x.x",
81
- "tslib": "^2.x.x",
82
- "typescript": "^5.x.x"
67
+ "tslib": "^2.x.x"
83
68
  },
84
69
  "dependencies": {
85
- "koatty_container": "workspace:*",
86
- "koatty_core": "workspace:*",
87
- "koatty_lib": "workspace:*",
88
- "koatty_logger": "workspace:*",
89
- "koatty_store": "workspace:*"
70
+ "koatty_container": "^2.0.6",
71
+ "koatty_core": "^2.1.6",
72
+ "koatty_lib": "^1.4.7",
73
+ "koatty_logger": "^2.8.3",
74
+ "koatty_store": "^2.0.4"
90
75
  },
91
76
  "peerDependencies": {
92
- "koatty_container": "^2.0.4",
93
- "koatty_core": "^2.1.4",
94
- "koatty_lib": "^1.4.6",
95
- "koatty_logger": "^2.8.2",
96
- "koatty_store": "^2.0.3"
97
- }
77
+ "koatty_container": "^2.0.6",
78
+ "koatty_core": "^2.1.6",
79
+ "koatty_lib": "^1.4.7",
80
+ "koatty_logger": "^2.8.3",
81
+ "koatty_store": "^2.0.4"
82
+ },
83
+ "types": "./index.d.ts"
98
84
  }
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "koatty_cacheable",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Cacheable for koatty.",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
7
- "require": "./dist/index.js",
8
- "import": "./dist/index.mjs",
9
- "types": "./dist/index.d.ts"
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/index.js"
11
+ }
10
12
  },
11
13
  "repository": {
12
14
  "type": "git",
@@ -19,7 +21,7 @@
19
21
  "koatty"
20
22
  ],
21
23
  "engines": {
22
- "node": ">10.0.0"
24
+ "node": ">=18.0.0"
23
25
  },
24
26
  "author": {
25
27
  "name": "richenlin",
@@ -37,61 +39,46 @@
37
39
  }
38
40
  ],
39
41
  "devDependencies": {
40
- "@commitlint/cli": "^19.x.x",
41
- "@commitlint/config-conventional": "^19.x.x",
42
- "@commitlint/format": "^19.x.x",
43
- "@microsoft/api-documenter": "^7.x.x",
44
- "@microsoft/api-extractor": "^7.x.x",
45
- "@rollup/plugin-commonjs": "^28.x.x",
46
- "@rollup/plugin-json": "^6.x.x",
47
- "@rollup/plugin-node-resolve": "^16.x.x",
48
- "@types/jest": "^29.x.x",
42
+ "@microsoft/api-documenter": "^7.26.x",
43
+ "@microsoft/api-extractor": "^7.52.x",
44
+ "@types/jest": "^29.5.x",
49
45
  "@types/koa": "^2.x.x",
50
46
  "@types/lodash": "^4.x.x",
51
47
  "@types/node": "^22.x.x",
52
48
  "@typescript-eslint/eslint-plugin": "^8.x.x",
53
49
  "@typescript-eslint/parser": "^8.x.x",
54
- "conventional-changelog-cli": "^5.x.x",
55
- "copyfiles": "^2.x.x",
56
50
  "eslint": "^8.x.x",
57
51
  "eslint-plugin-jest": "^28.x.x",
58
- "husky": "^4.x.x",
59
52
  "jest": "^29.x.x",
60
53
  "jest-html-reporters": "^3.x.x",
61
- "reflect-metadata": "^0.x.x",
62
- "rollup": "^4.x.x",
63
- "rollup-plugin-delete": "^2.x.x",
64
- "rollup-plugin-typescript2": "^0.x.x",
65
- "standard-version": "^9.x.x",
54
+ "reflect-metadata": "^0.2.2",
66
55
  "ts-jest": "^29.x.x",
67
- "ts-node": "^10.x.x",
68
- "tslib": "^2.x.x",
69
- "typescript": "^5.x.x"
56
+ "tslib": "^2.x.x"
70
57
  },
71
58
  "dependencies": {
72
- "koatty_container": "2.0.4",
73
- "koatty_core": "2.1.4",
74
- "koatty_store": "2.0.3",
75
- "koatty_lib": "1.4.6",
76
- "koatty_logger": "2.8.2"
59
+ "koatty_container": "2.0.6",
60
+ "koatty_core": "2.1.6",
61
+ "koatty_lib": "1.4.7",
62
+ "koatty_logger": "2.8.3",
63
+ "koatty_store": "2.0.4"
77
64
  },
78
65
  "peerDependencies": {
79
- "koatty_container": "^2.0.4",
80
- "koatty_core": "^2.1.4",
81
- "koatty_lib": "^1.4.6",
82
- "koatty_logger": "^2.8.2",
83
- "koatty_store": "^2.0.3"
66
+ "koatty_container": "^2.0.6",
67
+ "koatty_core": "^2.1.6",
68
+ "koatty_lib": "^1.4.7",
69
+ "koatty_logger": "^2.8.3",
70
+ "koatty_store": "^2.0.4"
84
71
  },
72
+ "types": "./dist/index.d.ts",
85
73
  "scripts": {
86
- "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
87
- "build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
88
- "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
89
- "build:doc": "npx api-documenter markdown --input temp --output docs/api",
74
+ "build": "pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp",
75
+ "build:js": "tsup",
90
76
  "build:dts": "bash ../../scripts/build-dts.sh",
91
- "eslint": "eslint --ext .ts,.js ./",
92
- "lock": "npm i --package-lock-only && npm audit fix && npx pnpm i",
93
- "prerelease": "npm test && npm run build",
94
- "test": "npm run eslint && jest --passWithNoTests",
77
+ "build:doc": "api-documenter markdown --input temp --output docs/api",
78
+ "build:cp": "node ../../scripts/postBuild.js",
79
+ "clean": "rimraf dist temp docs/api",
80
+ "lint": "eslint --ext .ts,.js ./src",
81
+ "test": "pnpm run lint && jest --passWithNoTests",
95
82
  "test:cov": "jest --collectCoverage --detectOpenHandles"
96
83
  }
97
84
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { defineConfig } from "tsup";
2
+ import { baseConfig } from "../../tsup.config.base";
3
+
4
+ export default defineConfig({
5
+ ...baseConfig,
6
+ });