Releases: 11ty/eleventy-fetch
Eleventy Fetch v5.0.1
- Fix internals issue with missing default options on queue() function for
11ty/eleventy-img
, related to 11ty/eleventy-img#252
Full Changelog: v5.0.0...v5.0.1
Eleventy Fetch v5.0.1-beta.1
- Fix internals issue with missing default options on
queue()
function, related to 11ty/eleventy-img#252
Full Changelog: v5.0.0...v5.0.1-beta.1
Eleventy Fetch v5.0.0
npm install @11ty/eleventy-fetch@5.0.0
- Breaking: requires Node 18+
- Breaking: Use native
fetch()
and dropnode-fetch
dependency by @uncenter in #37 - Not Breaking: for compatibility this package is still CommonJS (not ESM)
- Support
URL
instance target #41 - Use
AbortSignal
for fetch timeouts #39 - Support custom
function
source (async-friendly) @doug-wade in #32 - Allow custom filename via
filenameFormat
by @chriskirknielsen in #49 - Add prettier @uncenter in #38
- Cache request verbs (e.g. POST versus GET) separately (and request body) by @Zegnat in #34
- Upgrade dependencies to get rid of deprecation warnings by @Zegnat in #46
- Upgrades flat-cache dependency from v3 to v6 (internal API changes)
- Update debug module name Eleventy:Fetch by @uncenter in #40
- Adds support for
type: "xml"
(alias for"text"
) - Adds support for
type: "parsed-xml"
#53 returns a JS object via @rgrove’s https://github.com/rgrove/parse-xml - Adds
returnType: "response"
option to return (and cache)Response
metadata, includingurl
,status
,headers
,body
. - Adds
requestId
option to control reuse, de-duping, unique cache keys when caching non-URL sources. Fixes a few more bugs with de-duping internally when HTTP methods and body requests are used for cache keys.
Eleventy Fetch v5.0.0-beta.7
- Adds support for
type: "xml"
(alias for"text"
) - Adds support for
type: "parsed-xml"
#53 returns a JS object via @rgrove’s https://github.com/rgrove/parse-xml - Adds
returnType: "response"
option to return (and cache)Response
metadata, includingurl
,status
,headers
,body
.
Full Changelog: v5.0.0-beta.6...v5.0.0-beta.7
Full Milestone: https://github.com/11ty/eleventy-fetch/milestone/5?closed=1
Eleventy Fetch v5.0.0-beta.6
- Adds
requestId
option to control reuse, de-duping, unique cache keys when caching non-URL sources. Fixes a few more bugs with de-duping internally when HTTP methods and body requests are used for cache keys.
Full Changelog: v5.0.0-beta.5...v5.0.0-beta.6
Full Milestone: https://github.com/11ty/eleventy-fetch/milestone/5?closed=1
Eleventy Fetch v5.0.0-beta.5
Full Changelog: v5.0.0-beta.4...v5.0.0-beta.5
Full Milestone: https://github.com/11ty/eleventy-fetch/milestone/5?closed=1
Eleventy Fetch v5.0.0-beta.4
- Very big fix for overly aggressive cache misses due to new cache instance being created too often 818313f
Full Changelog: v5.0.0-beta.3...v5.0.0-beta.4
Full Milestone: https://github.com/11ty/eleventy-fetch/milestone/5?closed=1
Eleventy Fetch v5.0.0-beta.3
- Fix outdated asset key reference for custom asset filename by @chriskirknielsen in #51
Full Changelog: v5.0.0-beta.2...v5.0.0-beta.3
Full Milestone: https://github.com/11ty/eleventy-fetch/milestone/5?closed=1
Eleventy Fetch v5.0.0-beta.2
Changes
- Breaking: requires Node 18+
- Breaking: Use native
fetch
and dropnode-fetch
dependency by @uncenter in #37 - Pass in a URL instance #41
- Use
AbortSignal
for fetch timeouts #39 - Pass in a custom fetching function rather than a URL by @doug-wade in #32
- Allow custom filename for AssetCache by @chriskirknielsen in #49
- Add prettier @uncenter in #38
- Cache request verbs separately (and request body) by @Zegnat in #34
- Upgrade dependencies to get rid of deprecation warnings by @Zegnat in #46
- Upgrades
flat-cache
dependency from v3 to v6 (internal API changes) - Update debug module name Eleventy:Fetch by @uncenter in #40
Try it out
npm install @11ty/eleventy-fetch@5.0.0-beta.2 --save-exact
Miscellanous
- New contributors: @uncenter, @Zegnat, @doug-wade, and @chriskirknielsen
- Full Changelog: v4.0.1...v5.0.0-beta.2
- Milestone: https://github.com/11ty/eleventy-fetch/milestone/5?closed=1
Eleventy Fetch v4.0.0
What's Changed
- Node 14+ required
dryRun
will allow reading of cached files for re-use in serverless contexts, thank you @ryangittings! #28- Include the response in the error object when a request fails by @arcxyz and @BigBlueHat #21 #29
Full Milestone: https://github.com/11ty/eleventy-fetch/issues?q=is%3Aclosed+milestone%3A%22Eleventy+Fetch+v4.0.0%22
Full Changelog: v3.0.0...v4.0.0