Skip to content

Commit af64260

Browse files
committed
feat: version update
1 parent 0ab9061 commit af64260

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [v8.1.0](https://github.com/coder-hxl/x-crawl/compare/v8.0.0...v8.1.0) (2023-09-01)
2+
3+
### 🚀 Features
4+
5+
- Limit Node.JS versions to 16.0.0 and above.
6+
- Expose the corresponding puppeteer version type.
7+
- Reduce package size and support ESM and cjs by packaging output a CJS file.
8+
9+
---
10+
11+
### 🚀 特征
12+
13+
- 对 Node.JS 版本进行限制,只有 16.0.0 版本以上才能使用。
14+
- 将对应的 puppeteer 版本类型暴露出来。
15+
- 减少包体积,通过打包输出一个 cjs 文件支持 ESM 和 CJS 。
16+
117
# [v8.0.0](https://github.com/coder-hxl/x-crawl/compare/v7.1.3...v8.0.0) (2023-08-22)
218

319
### 🚨 Breaking Changes

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "x-crawl",
4-
"version": "8.0.0",
4+
"version": "8.1.0",
55
"author": "coderHXL",
66
"description": "x-crawl is a flexible Node.js multifunctional crawler library.",
77
"license": "MIT",
@@ -30,6 +30,9 @@
3030
"test-crawlFile": "jest test/environment/api/crawlFile.test.ts dev",
3131
"prettier": "prettier --write ."
3232
},
33+
"engines": {
34+
"node": ">=16.0.0"
35+
},
3336
"dependencies": {
3437
"chalk": "4.1.2",
3538
"https-proxy-agent": "^7.0.1",

publish/package.json

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "x-crawl",
3-
"version": "8.0.0",
3+
"version": "8.1.0",
44
"author": "coderHXL",
55
"description": "x-crawl is a flexible Node.js multifunctional crawler library.",
66
"license": "MIT",
@@ -15,24 +15,31 @@
1515
"flexible",
1616
"multifunction"
1717
],
18-
"main": "dist/index.js",
19-
"types": "dist/index.d.ts",
2018
"homepage": "https://github.com/coder-hxl/x-crawl/tree/main/publish",
2119
"repository": {
2220
"type": "git",
2321
"url": "https://github.com/coder-hxl/x-crawl"
2422
},
25-
"scripts": {},
23+
"main": "index.js",
24+
"types": "dist/x-crawl.d.ts",
2625
"exports": {
2726
".": {
28-
"import": "./dist/index.mjs",
29-
"require": "./dist/index.js"
27+
"import": {
28+
"types": "./dist/index.d.mts",
29+
"default": "./index.mjs"
30+
},
31+
"require": {
32+
"types": "./dist/index.d.ts",
33+
"default": "./index.js"
34+
}
3035
}
3136
},
37+
"engines": {
38+
"node": ">=16.0.0"
39+
},
3240
"dependencies": {
3341
"chalk": "4.1.2",
3442
"https-proxy-agent": "^7.0.1",
3543
"puppeteer": "21.1.0"
36-
},
37-
"devDependencies": {}
44+
}
3845
}

0 commit comments

Comments
 (0)