Skip to content

[Snyk] Upgrade pagefind from 1.2.0 to 1.4.0#708

Open
sfrederick-gsa-gov wants to merge 1 commit intomainfrom
snyk-upgrade-8a4f6bab28a50d261eb36905b1951c27
Open

[Snyk] Upgrade pagefind from 1.2.0 to 1.4.0#708
sfrederick-gsa-gov wants to merge 1 commit intomainfrom
snyk-upgrade-8a4f6bab28a50d261eb36905b1951c27

Conversation

@sfrederick-gsa-gov
Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to upgrade pagefind from 1.2.0 to 1.4.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 7 versions ahead of your current version.

  • The recommended version was released 6 months ago.

Release notes
Package name: pagefind
  • 1.4.0 - 2025-09-01

    Core Features & Improvements

    • Added the "Include Characters" option to allow indexing of specific special characters.
    • Reduced filesizes for the Pagefind WebAssembly modules.
    • Added FreeBSD as a supported platform (PR #813 — thanks @ nguthiru !)
    • Fixed an issue where matches in compound words could be ranked with zero weight. (PR #806 — thanks @ teamdandelion !)

    Pagefind Playground

    Modular UI Features & Improvements

    • Added option to hide images on result templates in the Modular UI (PR #874 — thanks @ HannesOberreiter !)
    • Added a data attribute for result count on the filter pills. (PR #827 — thanks @ cmahnke !)

    Default UI Features & Improvements

    • Added title attribute to the default UI search input for improved accessibility (PR #798 — thanks @ rdela !)

    UI Translations

    • Added Thai (th) translations (PR #801 — thanks @ Phon1209 !)
    • Added Thai segmenter support when indexing (PR #807 — thanks @ anonymaew !)
    • Added Basque (eu) translations (PR #826 — thanks @ erral !)
    • Added Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) translations (PR #878 — thanks @ altinnadmin !)
    • Added Burmese (my) translations (PR #768 — thanks @ harrymkt !)

    Everything Else

    • Added a development justfile, and improved CONTRIBUTING.md (hint hint)
    • The Pagefind JavaScript should support running in Node.js a bit better (PR #828 — thanks @ justsml !)

    Looking Forward

    👋 from @ bglw — I thought I'd add a new section to these release notes talking about what's next.

    The biggest item on my list is to improve the relevance of the Pagefind search results. With the current setup, you can tweak enough settings to get decent results for a given site, but it needs to better meet the goal of working more-than-good-enough out of the box.

    The second-biggest item is to fill out the Modular UI and transition the default Pagefind experience to use that. This has been pending for a long time, and will be a much better base for those who wish to customize their search more than the Default UI currently allows.

    Releases also now trigger a GitHub Discussion to be created, so please drop any general thoughts, comments, or feedback there 🙂

  • 1.4.0-rc.3 - 2025-09-01

    Fix python publishing

  • 1.4.0-rc.2 - 2025-09-01

    Omit FreeBSD support for the python wrapper

  • 1.4.0-rc.1 - 2025-09-01

    Changelog

  • 1.4.0-alpha.1 - 2025-01-27

    Add configuration to include specific special characters while indexing

  • 1.4.0-alpha.0 - 2025-01-19

    Resolve flaky playground test

  • 1.3.0 - 2024-12-18

    Core Features & Improvements

    • Added --quiet and --silent flags when running the Pagefind CLI, which reduce the logging output to only warnings or only errors respectively.
    • Stablized the Pagefind Rust library.
      • Thanks to @ cdxker for leading this in #751 ❤️
      • This library interface has feature parity with the Node and Python indexing APIs, and is a great solution for integrating Pagefind indexing into any Rust-based tooling.

    Default UI Features & Improvements

    • Added a data-pagefind-ui-meta attribute to the metadata tags on search results in the Default UI, allowing them to be targeted with CSS.
      • For example, a tag on a result containing Date: April 19, 2024 will now have data-pagefind-ui-meta="date".

    Fixes & Tweaks

    • Fixed an issue where inline metadata would incorrectly render with html-escaped characters.
      • Specifically, tagging metadata inline with data-pagefind-meta="phrase:this &lt; that would index the literal &lt; rather than a < character.
      • This bug didn't occur when using data-pagefind-meta to capture the content of an element.
    • Fixed an issue where matches in compound words could (sometimes) be ranked lower than intended.
      • Specifically, for example, matching just the Cannon in CloudCannon may have ranked the word incorrectly.
    • Fixed an issue where fragment hashes would change between every Pagefind build.
      • Now, if an HTML page has not changed between two Pagefind indexes, the fragment filename will not change.
      • This saves you from having to re-upload all fragment files after every Pagefind build.
  • 1.2.0 - 2024-11-06

    Core Features & Improvements

    UI Translations

    *️⃣ : These languages are the first right-to-left languages in the translation set.
    Please open any issues if improvements can be made to the Pagefind UI libraries when rendered for these RTL languages.

from pagefind 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:

Snyk has created this PR to upgrade pagefind from 1.2.0 to 1.4.0.

See this package in npm:
pagefind

See this project in Snyk:
https://app.snyk.io/org/gsa-pages/project/456f7933-729f-4a38-9192-f611df9dde79?utm_source=github&utm_medium=referral&page=upgrade-pr
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.

2 participants