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 initpagefind 164 changes
Breaking changes 3
Crate consumers can enable actix-web and related serving dependencies through the serve feature flag.
The default output location changes from /_pagefind/ to /pagefind/, so existing asset links and multisite bundlePath references may need updating.
Adds an output path option relative to the directory where Pagefind runs; it also accepts absolute paths.
Deprecations 6
The CLI option --bundle-dir is renamed to --output-subdir; the old option continues to work but prints a warning.
The config file key bundle_dir is renamed to output_subdir; the old option continues to work but prints a warning.
The environment variable PAGEFIND_BUNDLE_DIR is renamed to PAGEFIND_OUTPUT_SUBDIR; the old option continues to work but prints a warning.
The environment variable PAGEFIND_SOURCE is renamed to PAGEFIND_SITE; the old option continues to work but prints a warning.
The CLI option --source is renamed to --site; the old option continues to work but prints a warning.
The config file key source is renamed to site; the old option continues to work but prints a warning.
New APIs and options 13
An element with both an
idanddata-pagefind-titlecan be used as an explicit sub-result.Adds an option to mark the truncated ends of excerpts.
Limits the total number of fragment files produced per language by bundling multiple fragments and loading them as a set when required.
The
<pagefind-searchbox>component accepts amax-sub-resultsattribute.A setter is available for the
placeholderon<pagefind-searchbox>and<pagefind-modal-trigger>.Set to true to disable diacritic normalization and require exact diacritic matches.
The includeCharacters option is now available in the Node and Python wrapper APIs.
Search results now include a field listing which metadata fields matched the query.
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.
Search results and sub-results now include excerpt text without highlight mark tags, allowing consumers to handle highlighting themselves or omit it.
Adds a config file key for setting an output path relative to the directory where Pagefind runs; absolute paths are also accepted.
Adds an environment variable for setting an output path relative to the directory where Pagefind runs; absolute paths are also accepted.
Adds an explicit initialization function so applications can configure Pagefind before loading index metadata and WebAssembly; other API calls still trigger initialization.
Performance 5
Searches no longer request index chunks for empty terms.
Search performance improved for a number of broad queries, with additional minor performance work.
Linux musl builds now achieve the 2x indexing performance claimed for v1.4.0 after jemalloc replaced the thrashing musl allocator.
Index chunks are about 45% smaller due to delta-encoding page numbers and word locations.
The indexing binary is smaller to download and faster to run; indexing is more than twice as fast on some sites.
Behavior and default changes 15
Configuration now applies to an instance that exists but has not loaded yet.
Further work makes the index more deterministic between builds.
The keyboard shortcut badge is hidden on touch-only devices.
The extended build uses ICU4X to segment Chinese, Japanese, and Thai pages, producing smaller binaries and aligning indexing more closely with browser query segmentation.
Per-page warnings are now logged only when
--verboseis used.Index filenames are more deterministic between indexes.
Search queries in Chinese, Japanese, and Korean are segmented with Intl.Segmenter, so users no longer need to delimit query words.
Search matches across diacritics by default, while preferring exact diacritic matches in ranking.
Index chunk fetches are throttled to avoid overwhelming the network on large sites.
Pages that match a query only in metadata now appear in search results.
Pagefind searches metadata by default, including title metadata, and metadata matches affect result ranking.
Stemming support is added for Polish and Estonian, and stemming quality improves across many already-supported languages.
Search runs in a Web Worker automatically to keep the main thread responsive, falling back to the main thread when Web Workers are unavailable.
Compound words are indexed and searchable by their component words; subword matches receive lower weight than normal content.
Weighting is introduced as a concept, and headings receive higher default priority, so pages with heading matches appear higher in results.
Fixes and other changes 22
Component cleanup now works after a component is disconnected.
Improved compound indexing allows
sysconfig.is_python_buildto be found by searchingis_python_build.Excerpt generation no longer builds excerpts from the wrong words.
A single unparseable selector no longer causes
--exclude-selectorsto hard-error.Fixed the filter panel checkbox shrinking when its label wraps.
Filters now match values containing escaped characters such as quotes or backslashes.
HTML entities are now decoded correctly in automatic
imagemetadata.HTML entities are now decoded correctly in automatic
image_altmetadata.Fixed support for IME composition keystrokes.
A word with many variants no longer produces an oversized index chunk.
Failed index fetches are evicted from the cache correctly and retried.
Compound words are no longer counted twice, preventing metadata matches from being overvalued.
The modal no longer stays open when clicking a result for the current page.
Search terms that normalize to nothing are dropped instead of searching for an empty term.
Handling of percent-encoded page URLs has been improved.
Phrase searches now match across diacritic variants, such as
cafe lattematchingcafé latte.Fixed a case where output files could be truncated in service-mode.
The UI language is resolved before the first render, preventing a flash of incorrect translations.
A deprecation warning that appeared in the browser console was cleaned up.
Relative image URLs such as ./image.png no longer break when displayed in search results.
Subresult URLs now respect page meta URL overrides.
Windows ARM64 is now a supported platform.