unstale

npm / pagefind

pagefind

What changed in pagefind 1, from its official release notes, upgrade guides and advisories. Also covers @pagefind/component-ui. Sources checked 2026-11-30.

3 breaking6 deprecations13 new APIs and options5 performance15 behavior and defaults22 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

pagefind 164 changes

Breaking changes 3

  • Crate consumers can enable actix-web and related serving dependencies through the serve feature flag.

    1.5.0release notes

  • The default output location changes from /_pagefind/ to /pagefind/, so existing asset links and multisite bundlePath references may need updating.

    1.0.0upgrade guide

  • Adds an output path option relative to the directory where Pagefind runs; it also accepts absolute paths.

    1.0.0upgrade guide

Deprecations 6

  • The CLI option --bundle-dir is renamed to --output-subdir; the old option continues to work but prints a warning.

    1.0.0upgrade guide

  • The config file key bundle_dir is renamed to output_subdir; the old option continues to work but prints a warning.

    1.0.0upgrade guide

  • The environment variable PAGEFIND_BUNDLE_DIR is renamed to PAGEFIND_OUTPUT_SUBDIR; the old option continues to work but prints a warning.

    1.0.0upgrade guide

  • The environment variable PAGEFIND_SOURCE is renamed to PAGEFIND_SITE; the old option continues to work but prints a warning.

    1.0.0upgrade guide

  • The CLI option --source is renamed to --site; the old option continues to work but prints a warning.

    1.0.0upgrade guide

  • The config file key source is renamed to site; the old option continues to work but prints a warning.

    1.0.0upgrade guide

New APIs and options 13

  • An element with both an id and data-pagefind-title can be used as an explicit sub-result.

    1.6.0release notes

  • Adds an option to mark the truncated ends of excerpts.

    1.6.0release notes

  • Limits the total number of fragment files produced per language by bundling multiple fragments and loading them as a set when required.

    1.6.0release notes

  • The <pagefind-searchbox> component accepts a max-sub-results attribute.

    1.6.0release notes

  • A setter is available for the placeholder on <pagefind-searchbox> and <pagefind-modal-trigger>.

    1.6.0release notes

  • Set to true to disable diacritic normalization and require exact diacritic matches.

    1.5.0release notes

  • The includeCharacters option is now available in the Node and Python wrapper APIs.

    1.5.0release notes

  • Search results now include a field listing which metadata fields matched the query.

    1.5.0release notes

  • Configure the cache-busting tag on the metadata file, which is fetched fresh on every page load; this can be overridden for offline and PWA service-worker scenarios.

    1.5.0release notes

  • Search results and sub-results now include excerpt text without highlight mark tags, allowing consumers to handle highlighting themselves or omit it.

    1.5.0release notes

  • Adds a config file key for setting an output path relative to the directory where Pagefind runs; absolute paths are also accepted.

    1.0.0upgrade guide

  • Adds an environment variable for setting an output path relative to the directory where Pagefind runs; absolute paths are also accepted.

    1.0.0upgrade guide

  • Adds an explicit initialization function so applications can configure Pagefind before loading index metadata and WebAssembly; other API calls still trigger initialization.

    1.0.0upgrade guide

Performance 5

  • Searches no longer request index chunks for empty terms.

    1.6.0release notes

  • Search performance improved for a number of broad queries, with additional minor performance work.

    1.6.0release notes

  • Linux musl builds now achieve the 2x indexing performance claimed for v1.4.0 after jemalloc replaced the thrashing musl allocator.

    1.5.2release notes

  • Index chunks are about 45% smaller due to delta-encoding page numbers and word locations.

    1.5.0release notes

  • The indexing binary is smaller to download and faster to run; indexing is more than twice as fast on some sites.

    1.5.0release notes

Behavior and default changes 15

  • Configuration now applies to an instance that exists but has not loaded yet.

    1.6.0release notes

  • Further work makes the index more deterministic between builds.

    1.6.0release notes

  • The keyboard shortcut badge is hidden on touch-only devices.

    1.6.0release notes

  • The extended build uses ICU4X to segment Chinese, Japanese, and Thai pages, producing smaller binaries and aligning indexing more closely with browser query segmentation.

    1.6.0release notes

  • Per-page warnings are now logged only when --verbose is used.

    1.6.0release notes

  • Index filenames are more deterministic between indexes.

    1.5.2release notes

  • Search queries in Chinese, Japanese, and Korean are segmented with Intl.Segmenter, so users no longer need to delimit query words.

    1.5.0release notes

  • Search matches across diacritics by default, while preferring exact diacritic matches in ranking.

    1.5.0release notes

  • Index chunk fetches are throttled to avoid overwhelming the network on large sites.

    1.5.0release notes

  • Pages that match a query only in metadata now appear in search results.

    1.5.0release notes

  • Pagefind searches metadata by default, including title metadata, and metadata matches affect result ranking.

    1.5.0release notes

  • Stemming support is added for Polish and Estonian, and stemming quality improves across many already-supported languages.

    1.5.0release notes

  • Search runs in a Web Worker automatically to keep the main thread responsive, falling back to the main thread when Web Workers are unavailable.

    1.5.0release notes

  • Compound words are indexed and searchable by their component words; subword matches receive lower weight than normal content.

    1.0.0upgrade guide

  • Weighting is introduced as a concept, and headings receive higher default priority, so pages with heading matches appear higher in results.

    1.0.0upgrade guide

Fixes and other changes 22

  • Component cleanup now works after a component is disconnected.

    1.6.0release notes

  • Improved compound indexing allows sysconfig.is_python_build to be found by searching is_python_build.

    1.6.0release notes

  • Excerpt generation no longer builds excerpts from the wrong words.

    1.6.0release notes

  • A single unparseable selector no longer causes --exclude-selectors to hard-error.

    1.6.0release notes

  • Fixed the filter panel checkbox shrinking when its label wraps.

    1.6.0release notes

  • Filters now match values containing escaped characters such as quotes or backslashes.

    1.6.0release notes

  • HTML entities are now decoded correctly in automatic image metadata.

    1.6.0release notes

  • HTML entities are now decoded correctly in automatic image_alt metadata.

    1.6.0release notes

  • Fixed support for IME composition keystrokes.

    1.6.0release notes

  • A word with many variants no longer produces an oversized index chunk.

    1.6.0release notes

  • Failed index fetches are evicted from the cache correctly and retried.

    1.6.0release notes

  • Compound words are no longer counted twice, preventing metadata matches from being overvalued.

    1.6.0release notes

  • The modal no longer stays open when clicking a result for the current page.

    1.6.0release notes

  • Search terms that normalize to nothing are dropped instead of searching for an empty term.

    1.6.0release notes

  • Handling of percent-encoded page URLs has been improved.

    1.6.0release notes

  • Phrase searches now match across diacritic variants, such as cafe latte matching café latte.

    1.6.0release notes

  • Fixed a case where output files could be truncated in service-mode.

    1.6.0release notes

  • The UI language is resolved before the first render, preventing a flash of incorrect translations.

    1.6.0release notes

  • A deprecation warning that appeared in the browser console was cleaned up.

    1.5.2release notes

  • Relative image URLs such as ./image.png no longer break when displayed in search results.

    1.5.0release notes

  • Subresult URLs now respect page meta URL overrides.

    1.5.0release notes

  • Windows ARM64 is now a supported platform.

    1.5.0release notes