Skip to content

Releases: CloudCannon/pagefind

v1.2.0

06 Nov 02:15
Compare
Choose a tag to compare

Core Features & Improvements

UI Translations

  • Fixed Catalan translations (PR #718 β€” thanks @danurbanowicz !).
  • *️⃣ Added Persian translations (PR #690 β€” thanks @YektaDev !).
  • *️⃣ Added Hebrew translations (PR #453 β€” thanks @nirtamir2 !).
  • *️⃣ Added Arabic translations (PR #533 β€” thanks @jermanuts !).

*️⃣ : 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.

v1.1.1

03 Sep 01:52
Compare
Choose a tag to compare

Fixes & Tweaks

  • Fixes an issue where internal anchor and weight tokens would leak when captured in meta or filter attributes.
  • Improves segmentation for extended languages (PR #600 β€” thanks @hamano !).
  • Improves Pagefind's processing of "index.html" URLs (PR #604 β€” thanks @dscho !).
  • Fixes some instances of incorrect types in the Pagefind NodeJS API (PRs #642 & #655 β€” thanks @vanyauhalin & SKalt !).

UI Translations

  • Added Swahili translations

Secutiry

v1.1.0

02 Apr 19:37
8dc9eca
Compare
Choose a tag to compare

Core Features & Improvements

  • Improved Pagefind's core result ranking algorithm to align with BM25. For existing sites, this will change the ordering of search results, and should provide better relevance for search results by default.
  • Added the abitity to configure Pagefind's ranking algorithm.
    • Certain categories of site (i.e. reference documentation) can benefit from tweaks to the way pages are ranked. To support this, a set of ranking parameters are now configurable. Enormous thanks to @dscho for kicking off this work in #534 ❀️
    • See πŸ“˜ Customize ranking to read up on the new ranking parameters.

Default UI Features & Improvements

Fixes & Tweaks

  • Fixed a bug where the forceLanguage setting would not take priority when using the NodeJS Indexing API.
  • Fixed a bug where zero-width spaces in the source content could cause errors in search excerpts.

UI Translations

v1.0.4

16 Nov 03:04
Compare
Choose a tag to compare

Features & Improvements

Fixes & Tweaks

  • Fixed a bug, resulting in a (very) large improvement to the NodeJS Indexing API performance (~100x).
  • Fixed HTML entities being rendered escaped in metadata, filters, and custom page titles.
  • Fixed a bug where debouncedSearch returns null if any options object is passed to it.
  • Fixed a bug where a fully-qualified URL set via the NodeJS indexing API would be broken when returned as a search result.
  • Fixed Pagefind's reporting of really fast indexing times (previously logged as slower than reality) β€” thanks to @danpls in #448.
  • Fixed extracting sub-results when headings contain non-ascii text (especially RTL languages).

UI Translations

v1.0.3

16 Sep 22:33
Compare
Choose a tag to compare

Hopefully the last hotfix for now β€” bugfixes only important for sites indexing Japanese or Chinese pages.

  • Fixes a bug indexing ja/zh language pages containing weighting or element IDs
  • Removes eager warnings being logged to the browser console if bunding the UI JavaScript files
  • Adds a .close() function to the Pagefind NodeJS API, to help clean up the process when it is no longer required

v1.0.2

14 Sep 11:01
Compare
Choose a tag to compare
  • Fixes a bug when indexing some non-breaking spaces on ja/zh language pages in extended mode

v1.0.1 β€” A quick hotfix!

14 Sep 00:15
Compare
Choose a tag to compare

Hotfix for Pagefind v1.0.0, restoring default-on support for multilingual word segmentation, and helping resolve packaging issues with new dependencies.

  • Fixed the pagefind npm wrapper to use the pagefind_extended release, as documented.
  • Changed microjson git dependency to a pagefind_microjson crate dependency (for now) β€” #421 .

Pagefind v1.0.0 β€” Stable static search at scale ✨ πŸš€

13 Sep 18:05
Compare
Choose a tag to compare

Pagefind 1.0 is here! This release has been many months in the making, and we're thrilled to be bringing some great new features and improvements.

This release also marks a point in time for Pagefind's stability and maturity. Thanks to everyone who has helped out with contributions and feedback in the last year, we're now more confident than ever that Pagefind is a perfect fit with nearly any static website, staying performant and lean even as your site scales.

‼️ Breaking Changes

This 1.0 release includes one breaking change, and some notable non-breaking behavioral changes.
A full writeup of these changes and their effects exists in the πŸ“˜ Migrating to Pagefind 1.0 guide on Pagefind's website.

  • BREAKING:
    • PREVIOUS: By default, Pagefind 0.x outputs files to a _pagefind in your site.
    • NEW: By default, Pagefind 1.x outputs files to a pagefind in your site.
    • More details on this change can be found in the [πŸ“˜ migration guide].

⚠️ Behavioral Changes

  • Changes to CLI options [πŸ“˜ migration guide]:
    • The source option has been renamed to site.
    • The bundle-dir option has been renamed to output-subdir.
    • A new output-path option has been added.
  • Search indexing and ranking changes will cause result lists to differ from 0.x [πŸ“˜ migration guide].
  • The JS API initializes Pagefind at a different stage of execution [πŸ“˜ migration guide].

πŸŽ‰ New Features!

✨ Content weighting ✨

Pagefind now supports configurable weighting for regions of content, which will be used when ranking results and generating excerpts.
Headings are automatically weighted higher, and custom weights can be inserted anywhere in your page.

See πŸ“˜ Weighting sections of the page higher or lower for documentation.

✨ Sub results ✨

Pagefind now tracks headings and IDs when indexing your site. This can be used to show multiple results per page when searching your site, with direct links to the closest parent anchor.

See πŸ“˜ Showing multiple results per page for documentation.

✨ NodeJS indexing API ✨

The pagefind package on npm can now be imported as a library into a NodeJS script, giving you programmatic control over indexing content from both disk and memory.

This feature is very open ended β€” be it integrating Pagefind into a static site generator, or indexing non-static and non-HTML content, we're excited to see what people come up with! Open a discussion on GitHub if you build anything unique that you would like to share!

See πŸ“˜ Indexing content using the NodeJS API for documentation.

✨ Greatly improved ranking and relevancy ✨

Pagefind now takes inverse document frequency into account, meaning words that are unique across your site will rank higher than common words.
The ranking algorithm has also been improved across the board, which should result in better search relevance by default.

We're always looking to improve search relevance further, so open an issue on GitHub if you have any examples of searches that don't hit the mark.

✨ Indexing compound words and code ✨

Pagefind now better supports indexing various forms of compound words and code, meaning <MyComponent data-pagefind-body> will now match searches for my, component, data, pagefind, and body.

πŸŽ‰ More Features & Improvements

  • Pagefind now returns results for a prefix of the search word if there would otherwise be zero results:
    • e.g. if searching for bandwidth would return zero results, you might get results for band or ban.
  • Pagefind can now search for emoji πŸŽ‰πŸš€βœ¨.
  • Do you filter more than you search? For those using the JS API directly, Pagefind now supports complex compound filtering:
  • Pagefind is now smarter at generating excerpts, returning the most dense region of search hits on the page.
    • Excerpt calculation also integrates with the new weighting feature, and will favor areas of the page with higher weighted words.
  • The pagefind npm package no longer downloads binaries from a GitHub release, and instead has platform-specific dependencies that download only the relevant binary from npm.
    • This improves the installation speed of Pagefind through npm/npx, and also removes the need for any postinstall script making the entire process more reliable.
  • The Default UI now supports being passed an HTMLElement directly, as an alternative to a selector (PR #331 β€” thanks @stefanprobst).
  • The length of excerpts that Pagefind generates can now be customized:

Fixes & Tweaks

  • CLI: Fixed an issue where multiple data-pagefind-body tags on a page would conflict if one was nested deeper than the other.
  • CLI: Fixed builds for some Windows systems that were missing vcruntime.
  • JS API: A new pagefind.init() function has been added, meaning pagefind.options() can be called before loading assets, allowing you to change the path to load files from.
  • JS API: Performance searching very large sites for short terms should be improved.
  • JS API: Passing an empty array for a filter value now behaves as if the filter was not supplied, instead of returning zero results.
  • Default UI: Don't reset the browser-provided outlines when resetting UI styles.
  • Default UI: Fixed an issue where titles containing HTML elements were not correctly escaped.
  • Default UI: Improved the search input on mobile devices (PR #368 β€” thanks @valtlai !).
  • Default UI: Fixed an issue where some UI strings would appear in English instead of the translated language.

UI Translations

v0.12.0

01 Mar 20:28
Compare
Choose a tag to compare

Note: v0.12.0 will likely be the last feature release before an upcoming v1.0.0 that will contain a small handful of breaking changes. See the v1.0.0 milestone on GitHub for details and updates.

Features & Improvements

  • CLI: Added a "Keep Index URL" setting. (PR #233 β€” thanks @kenpetti-toasttab !). See Pagefind CLI > Keep Index URL
  • JS API: Added a totalFilters object to the search response, containing the total matches for the search term under each filter
  • JS API: Added an unfilteredResultCount key to the search response, containing the total matches for the search term if no filters were applied

Fixes & Tweaks

  • CLI: Stopped warning when encountering data-pagefind-ignore="true" instead of data-pagefind-ignore
  • Search: Fixed merging filters from multiple indexes
  • Default UI: Fixed filters sticking open once search input has been focused
  • Default UI: Fixed the search input clearing when hitting the Enter key
  • Search / Default UI: Fixed HTML tags in Pagefind excerpts not being escaped. The content key remains unprocessed

v0.11.0

16 Feb 02:23
Compare
Choose a tag to compare

Features & Improvements

  • CLI: Improved npx wrapper compatibility on Windows, thanks @tylermercer!
  • JS API: Added a debouncedSearch function to the JS API. See Pagefind JS API > Debounced search
  • Default UI: Added a "Clear" button to the search input
  • Default UI: Clear the search input on an Esc keypress
  • Default UI: Added UI translations for Swedish, thanks @mntzrr!
  • Default UI: Added a processTerm hook that can normalize the search query. See Pagefind UI > Process term
  • Default UI: Added a Clear button to the search input
  • Default UI: Added functionality to clear the search input when Esc is pressed while the input is focused
  • Default UI: Published UI to npm under @pagefind/default-ui, as an alternative to using the files output by the Pagefind CLI

Fixes & Tweaks

  • Default UI: Fixed a syntax error in the CSS

Prelease: Modular UI

  • Work is underway on a new "Modular UI" that will live alongside the current "Default UI". Full support and documentation will be provided in a future release β€” the prerelease version can be found on npm under @pagefind/modular-ui
    • As this package is still under development, some of the configuration may change in a future release. Make sure to pin your Pagefind versions for any production site relying on the Modular UI.