Skip to content

Commit

Permalink
Merge pull request #57 from coder-hxl/v8.0.0
Browse files Browse the repository at this point in the history
V8.0.0
  • Loading branch information
coder-hxl authored Aug 22, 2023
2 parents c798ee9 + 8950e1b commit f274a1c
Show file tree
Hide file tree
Showing 13 changed files with 360 additions and 218 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
# [v8.0.0](https://github.com/coder-hxl/x-crawl/compare/v7.1.3...v8.0.0) (2023-08-22)

### 🚨 Breaking Changes

- update dependencies

- puppeteer from 19.10.0 to 21.1.0.
- https-proxy-agent upgraded from 5.0.1 to 7.0.1.

- XCrawlConfig.crawlPage's launchBrowser option renamed to puppeteerLaunch .

---

### 🚨 重大改变

- 更新依赖

- puppeteer 从 19.10.0 升至 21.1.0 。
- https-proxy-agent 从 5.0.1 升至 7.0.1 。

- XCrawlConfig.crawlPage 的 launchBrowser 选项更名为 puppeteerLaunch 。

# [v7.1.3](https://github.com/coder-hxl/x-crawl/compare/v7.1.2...v7.1.3) (2023-07-02)

### 🐞 Bug fixes

- The crawlData API writes the correct data to the request body and processes the response body..
- The crawlData API writes the correct data to the request body and processes the response body.

---

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ import xCrawl from 'x-crawl'
const myXCrawl = xCrawl({
maxRetry: 3,
// Cancel running the browser in headless mode
crawlPage: { launchBrowser: { headless: false } }
crawlPage: { puppeteerLaunch: { headless: false } }
})

myXCrawl.crawlPage('https://www.example.com').then((res) => {})
Expand Down Expand Up @@ -1298,7 +1298,7 @@ export interface XCrawlConfig extends CrawlCommonConfig {
baseUrl?: string
intervalTime?: IntervalTime
crawlPage?: {
launchBrowser?: PuppeteerLaunchOptions // puppeteer
puppeteerLaunch?: PuppeteerLaunchOptions // puppeteer
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ import xCrawl from 'x-crawl'
const myXCrawl = xCrawl({
maxRetry: 3,
// 取消以无头模式运行浏览器
crawlPage: { launchBrowser: { headless: false } }
crawlPage: { puppeteerLaunch: { headless: false } }
})

myXCrawl.crawlPage('https://www.example.com').then((res) => {})
Expand Down Expand Up @@ -1292,7 +1292,7 @@ export interface XCrawlConfig extends CrawlCommonConfig {
baseUrl?: string
intervalTime?: IntervalTime
crawlPage?: {
launchBrowser?: PuppeteerLaunchOptions // puppeteer
puppeteerLaunch?: PuppeteerLaunchOptions // puppeteer
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "x-crawl",
"version": "7.1.3",
"version": "8.0.0",
"author": "coderHXL",
"description": "x-crawl is a flexible Node.js multifunctional crawler library.",
"license": "MIT",
Expand Down Expand Up @@ -32,8 +32,8 @@
},
"dependencies": {
"chalk": "4.1.2",
"https-proxy-agent": "^7.0.0",
"puppeteer": "19.10.0",
"https-proxy-agent": "^7.0.1",
"puppeteer": "21.1.0",
"x-crawl": "link:"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit f274a1c

Please sign in to comment.