Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
chore(deps): update dependency whatwg-mimetype to v5 (#3357)
renovate[bot]9b813f69260f
diff --git a/package.json b/package.jsonindex bc07e5bca..bb7d30ee0 100644--- a/package.json+++ b/package.json@@ -100,7 +100,7 @@"@types/rimraf": "^4.0.5","@types/sax": "^1.2.7","@types/semver": "^7.7.0",- "@types/whatwg-mimetype": "^3.0.2",+ "@types/whatwg-mimetype": "^5.0.0","@types/yargs": "^17.0.33","@vitest/coverage-v8": "^4.0.16","apify": "*",diff --git a/packages/utils/package.json b/packages/utils/package.jsonindex 19406f2f1..10b1b879a 100644--- a/packages/utils/package.json+++ b/packages/utils/package.json@@ -54,7 +54,7 @@"sax": "^1.4.1","tldts": "^7.0.6","tslib": "^2.8.1",- "whatwg-mimetype": "^4.0.0",+ "whatwg-mimetype": "^5.0.0","zod": "catalog:"}}diff --git a/packages/utils/src/internals/sitemap.ts b/packages/utils/src/internals/sitemap.tsindex 7bf52c64d..5587d27ab 100644--- a/packages/utils/src/internals/sitemap.ts+++ b/packages/utils/src/internals/sitemap.ts@@ -9,7 +9,7 @@ import type { BaseHttpClient } from '@crawlee/http-client';import type { CrawleeLogger } from '@crawlee/types';// Imported as a type only so `sax` (a fairly heavy parser) isn't loaded eagerly with @crawlee/utils.import type * as sax from 'sax';-import MIMEType from 'whatwg-mimetype';+import { MIMEType } from 'whatwg-mimetype';import { mergeAsyncIterables } from './iterables.js';import { RobotsTxtFile } from './robots.js';diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e64f6ba84..46250a7a9 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -317,8 +317,8 @@ importers:specifier: ^7.7.0version: 7.8.0'@types/whatwg-mimetype':- specifier: ^3.0.2- version: 3.0.2+ specifier: ^5.0.0+ version: 5.0.0'@types/yargs':specifier: ^17.0.33version: 17.0.35@@ -1086,8 +1086,8 @@ importers:specifier: ^2.8.1version: 2.8.1whatwg-mimetype:- specifier: ^4.0.0- version: 4.0.0+ specifier: ^5.0.0+ version: 5.0.0zod:specifier: 'catalog:'version: 4.6.5@@ -5355,8 +5355,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==}- '@types/[email protected]':- resolution: {integrity: sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-YYiBDCoqBgDIF2ByYn4qDb4RaXZ46cOQ6j2We1Ni3bikFNI7YFeL8jxSiYowWsriZrb1mw09CLZ+b+ZkIhsLVw==}'@types/[email protected]':resolution: {integrity: sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==}@@ -13116,6 +13116,10 @@ packages:resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}engines: {node: '>=18'}+ resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}@@ -18728,7 +18732,7 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}+ '@types/[email protected]': {}'@types/[email protected]':dependencies:@@ -28377,6 +28381,8 @@ snapshots:+ [email protected]: {}+dependencies:tr46: 0.0.3