Skip to content

[Snyk] Upgrade @11ty/eleventy-fetch from 5.0.2 to 5.1.0 #438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

Jin-Sun-tts
Copy link
Contributor

snyk-top-banner

Snyk has created this PR to upgrade @11ty/eleventy-fetch from 5.0.2 to 5.1.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 4 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: @11ty/eleventy-fetch
  • 5.1.0 - 2025-05-08
    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

  • 5.1.0-beta.3 - 2025-04-23
    • Dependency cleanup (swap from graceful-fs to node:fs) from @ outslept #63

    Full Changelog: v5.1.0-beta.2...v5.1.0-beta.3

  • 5.1.0-beta.2 - 2025-03-20
    • Fixes Missing cache type error #61

    Full Changelog: v5.1.0-beta.1...v5.1.0-beta.2

  • 5.1.0-beta.1 - 2025-03-17
    • Refetch data on transient network failures by @ gorbak25 #57 #59
    • Fix bug with partially purged cache files on CI servers #59
    • Removes flat-cache dependency: 🏋🏻‍♀️ 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

  • 5.0.2 - 2025-01-07
    • Improved advanced API (you might not need this). Existing default export creates an instance and couples data fetching together. This release adds a Fetch named export to create a Fetch instance without fetching data automatically. Works with the concurrency queue. Use the queue() 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() on Fetch instances, used to solve bug with Eleventy Image disk cache 11ty/eleventy-img#146
    • Improved efficiency: Adds top level instance cache and a few internal caches to avoid duplicate fetch or file system read calls.
    • Adds internal directory manager to avoid duplicate fs.mkdir calls
    • Improved debug logs

    Full Changelog: v5.0.1...v5.0.2

from @11ty/eleventy-fetch GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

@FuhuXia FuhuXia enabled auto-merge June 5, 2025 14:28
@FuhuXia FuhuXia disabled auto-merge June 5, 2025 14:28
@FuhuXia FuhuXia self-requested a review June 5, 2025 14:35
@FuhuXia
Copy link
Member

FuhuXia commented Jun 5, 2025

included in #438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants