Releases: apify/got-scraping
Releases · apify/got-scraping
v4.0.8
v4.0.7
v4.0.6
v4.0.5
v4.0.4
v4.0.3
What's Changed
- fix: correct types for got scraping by @vladfrangu in #122
Full Changelog: v4.0.2...v4.0.3
v4.0.2
What's Changed
- fix: compile to es2021 to properly support node 16.x by @vladfrangu in #120
Full Changelog: v4.0.1...v4.0.2
v4.0.1
What's Changed
- fix: compile module in one file and add missing ignores by @vladfrangu in #117
Full Changelog: v4.0.0...v4.0.1
v4.0.0
The module is now ESM only
This means you have to import it by using an import
expression, or the import()
method. You can do so by either migrating your project to ESM, or importing got-scraping
in an async context
-const { gotScraping } = require('got-scraping');
+import { gotScraping } from 'got-scraping';
If you cannot migrate to ESM, here's an example of how to import it in an async context:
let gotScraping;
async function fetchWithGotScraping(url) {
gotScraping ??= (await import('got-scraping')).gotScraping;
return gotScraping.get(url);
}
What's Changed
- feat: add export of hooks and TransformHeadersAgent by @foxt451 in #102
- feat: ESM migration of got-scraping by @vladfrangu in #109
- feat: add Cloudflare blocking benchmarking by @barjin in #114
New Contributors
Full Changelog: v3.2.15...v4.0.0