Releases: 11ty/fetch
Releases · 11ty/fetch
Fetch v5.1.2
Immutable
release. Only release title and notes can be modified.
Milestone: https://github.com/11ty/eleventy-fetch/milestone/7?closed=1
Full Changelog: v5.1.1...v5.1.2
Eleventy Fetch v5.1.1
No code changes to this utility, only npm publishing workflow improvements using OIDC Trusted Publishers.
Full Changelog: v5.1.0...v5.1.1
Eleventy Fetch v5.1.0
| Metric | Fetch v5.0.2 |
Fetch v5.1.0 |
Change |
|---|---|---|---|
node_modules Weight |
1.7 MB | 0.9 MB | -47% |
| Dependency Count | 19 | 10 | -47% |
- Removes flat-cache dependency #56
- Swap from graceful-fs to node:fs from @outslept #63
- Fixes Missing cache type error #61
- Refetch data on transient network failures by @gorbak25 #57 #58
- Fix bug with partially purged cache files on CI servers #59 #60
- Backwards compatibility with existing cache files is preserved (note that breaking compatibility with existing cache files is considered a semver major breaking change).
Full Changelog: v5.0.2...v5.1.0
Milestone: https://github.com/11ty/eleventy-fetch/milestone/6?closed=1
Eleventy Fetch v5.1.0-beta.3
Full Changelog: v5.1.0-beta.2...v5.1.0-beta.3
Eleventy Fetch v5.1.0-beta.2
- Fixes
Missing cache typeerror #61
Full Changelog: v5.1.0-beta.1...v5.1.0-beta.2
Eleventy Fetch v5.1.0-beta.1
- Refetch data on transient network failures by @gorbak25 #57 #59
- Fix bug with partially purged cache files on CI servers #59
- Removes
flat-cachedependency: 🏋🏻♀️ weight 1.6 MB to 1 MB and ✅ dependency count 18 to 11. #56 - Backwards compatibility with existing cache files is preserved (otherwise this would be a major breaking change).
Milestone: https://github.com/11ty/eleventy-fetch/milestone/6?closed=1
Full Changelog: v5.0.2...v5.1.0-beta.1
Eleventy Fetch v5.0.2
- Improved advanced API (you might not need this). Existing default export creates an instance and couples data fetching together. This release adds a
Fetchnamed export to create a Fetch instance without fetching data automatically. Works with the concurrency queue. Use thequeue()method to fetch data.
import CachedFetch, { Fetch } from "@11ty/eleventy-fetch";
let data = await CachedFetch(source, options);
// is the same as:
let inst = Fetch(source, options);
let data = await inst.queue();- Adds
wasLastFetchCacheHit()onFetchinstances, used to solve bug with Eleventy Image disk cache 11ty/image#146 - Improved efficiency: Adds top level instance cache and a few internal caches to avoid duplicate
fetchor file systemreadcalls. - Adds internal directory manager to avoid duplicate
fs.mkdircalls - Improved debug logs
Full Changelog: v5.0.1...v5.0.2
Eleventy Fetch v5.0.2-beta.2
- Adds internal directory manager to avoid duplicate
fs.mkdircalls - Improved debug logs
Full Changelog: v5.0.2-beta.1...v5.0.2-beta.2
Eleventy Fetch v5.0.2-beta.1
- Improved advanced API (you might not need this). Existing default export creates an instance and couples data fetching together. This release adds a
Fetchnamed export to create a Fetch instance that does not automatically fetch data and works with the concurrency queue. Useasync queue()to fetch data.
import { Fetch } from "@11ty/eleventy-fetch";
let inst = Fetch(source, options);
let data = await inst.queue();same as:
import CachedFetch from "@11ty/eleventy-fetch";
let data = await CachedFetch(source, options);- Adds
wasLastFetchCacheHit()onFetchinstances, used to solve bug with Eleventy Image disk cache 11ty/image#146 - Improved efficiency: Adds top level instance cache and a few internal caches to avoid duplicate
fetchor file systemreadcalls.
Full Changelog: v5.0.1...v5.0.2-beta.1
Eleventy Fetch v5.0.1
- Fix internals issue with missing default options on queue() function for
11ty/eleventy-img, related to 11ty/image#252
Full Changelog: v5.0.0...v5.0.1