* feat(core): promote `future.experimental_faster` to `future.faster` + add `future.v4.fasterByDefault` flag
Stabilize the Docusaurus Faster config by removing the `experimental_` prefix.
Add a `fasterByDefault` v4 future flag that enables all faster features by default
when `v4: true` is used, allowing granular overrides. Init templates now include
`@docusaurus/faster` as a dependency since they use `v4: true`.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: apply lint autofix
* fix(docs): remove broken #faster anchor link in fasterByDefault docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): add Yarn PnP packageExtension for @docusaurus/bundler → @docusaurus/faster
Yarn PnP strict mode doesn't resolve optional dependencies automatically.
Add a packageExtension so @docusaurus/bundler can resolve @docusaurus/faster
in the e2e Yarn Berry tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(core): declare @docusaurus/faster as optional peer dep instead of CI packageExtension
Revert the packageExtensions workaround in the e2e CI workflow and instead
declare @docusaurus/faster as an optional peer dependency of @docusaurus/core,
matching the existing pattern in @docusaurus/bundler.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: retrigger CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* empty
* add randomness to e2e test script version, to avoid using cached versions when trying to run this locally
* Rspack + PnP doesn't work, so add a warning in this case + fallback to Webpack
This should fix the e2e pnp workflows
* refactor: apply lint autofix
* typo
* typo
* revert wrong change
* also use slower minimizers
* comment
* restore snapshots
* ensure faster key resolution is always exhaustive, no hardcoding of keys
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
* chore(v2): Add E2E test for yarn v2
* Remove root node_modules to prevent them from accessible in e2e test
The purpose of e2e test is to ensure that the docusaurus inited website can stand on its own. The root node_modules remain accessible according to how node resolution works and it might interfere with the test. Remove them for safety.
* Add @mdx-js/react to docusaurus init templates