File tree 13 files changed +360
-218
lines changed
13 files changed +360
-218
lines changed Original file line number Diff line number Diff line change
1
+ # [ v8.0.0] ( https://github.com/coder-hxl/x-crawl/compare/v7.1.3...v8.0.0 ) (2023-08-22)
2
+
3
+ ### 🚨 Breaking Changes
4
+
5
+ - update dependencies
6
+
7
+ - puppeteer from 19.10.0 to 21.1.0.
8
+ - https-proxy-agent upgraded from 5.0.1 to 7.0.1.
9
+
10
+ - XCrawlConfig.crawlPage's launchBrowser option renamed to puppeteerLaunch .
11
+
12
+ ---
13
+
14
+ ### 🚨 重大改变
15
+
16
+ - 更新依赖
17
+
18
+ - puppeteer 从 19.10.0 升至 21.1.0 。
19
+ - https-proxy-agent 从 5.0.1 升至 7.0.1 。
20
+
21
+ - XCrawlConfig.crawlPage 的 launchBrowser 选项更名为 puppeteerLaunch 。
22
+
1
23
# [ v7.1.3] ( https://github.com/coder-hxl/x-crawl/compare/v7.1.2...v7.1.3 ) (2023-07-02)
2
24
3
25
### 🐞 Bug fixes
4
26
5
- - The crawlData API writes the correct data to the request body and processes the response body..
27
+ - The crawlData API writes the correct data to the request body and processes the response body.
6
28
7
29
---
8
30
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ import xCrawl from 'x-crawl'
331
331
const myXCrawl = xCrawl ({
332
332
maxRetry: 3 ,
333
333
// Cancel running the browser in headless mode
334
- crawlPage: { launchBrowser : { headless: false } }
334
+ crawlPage: { puppeteerLaunch : { headless: false } }
335
335
})
336
336
337
337
myXCrawl .crawlPage (' https://www.example.com' ).then ((res ) => {})
@@ -1298,7 +1298,7 @@ export interface XCrawlConfig extends CrawlCommonConfig {
1298
1298
baseUrl ?: string
1299
1299
intervalTime ?: IntervalTime
1300
1300
crawlPage ?: {
1301
- launchBrowser ?: PuppeteerLaunchOptions // puppeteer
1301
+ puppeteerLaunch ?: PuppeteerLaunchOptions // puppeteer
1302
1302
}
1303
1303
}
1304
1304
` ` `
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ import xCrawl from 'x-crawl'
329
329
const myXCrawl = xCrawl ({
330
330
maxRetry: 3 ,
331
331
// 取消以无头模式运行浏览器
332
- crawlPage: { launchBrowser : { headless: false } }
332
+ crawlPage: { puppeteerLaunch : { headless: false } }
333
333
})
334
334
335
335
myXCrawl .crawlPage (' https://www.example.com' ).then ((res ) => {})
@@ -1292,7 +1292,7 @@ export interface XCrawlConfig extends CrawlCommonConfig {
1292
1292
baseUrl ?: string
1293
1293
intervalTime ?: IntervalTime
1294
1294
crawlPage ?: {
1295
- launchBrowser ?: PuppeteerLaunchOptions // puppeteer
1295
+ puppeteerLaunch ?: PuppeteerLaunchOptions // puppeteer
1296
1296
}
1297
1297
}
1298
1298
` ` `
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"name" : " x-crawl" ,
4
- "version" : " 7.1.3 " ,
4
+ "version" : " 8.0.0 " ,
5
5
"author" : " coderHXL" ,
6
6
"description" : " x-crawl is a flexible Node.js multifunctional crawler library." ,
7
7
"license" : " MIT" ,
32
32
},
33
33
"dependencies" : {
34
34
"chalk" : " 4.1.2" ,
35
- "https-proxy-agent" : " ^7.0.0 " ,
36
- "puppeteer" : " 19.10 .0" ,
35
+ "https-proxy-agent" : " ^7.0.1 " ,
36
+ "puppeteer" : " 21.1 .0" ,
37
37
"x-crawl" : " link:"
38
38
},
39
39
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments