This is a meta issue to gather information about the upcoming Docusaurus v4 release.
This comment will be updated regularly as we progress toward v4.
If you have opinions on breaking changes and dependency upgrades we should focus on, please let us know.
Apart from that, I'd like to keep the release relatively small, to make it easy to adopt, and to not delay it more than needed.
Top Priority changes
These are the changes we really want for v4. The list is already quite long, so I'm likely to migrate some items to optional changes.
Dependency upgrades:
Behaviors:
- v4 future flags are turned on by default; we may provide an opt-out for some, like CSS Cascade Layers
experimental_faster is now stable and enabled by default. It remains possible to opt out webpack/slower tools.
experimental_storage is now stable and uses namespacing by default, with the ability to out-out.
- Remove deprecated APIs
- Use browserslist query
baseline widely available by default
- Use native
RegExp.escape
- Remove CLI built-in
--bundle-analyzer option, it shouldn't be in core and could be a plugin
- Enable
respectPrefersColorScheme by default
- Remove Google Analytics plugin
- Get rid of prop-types from client bundle
- Migrate docs/blog/pages-specific code from theme-common to plugin client exports
- TypeScript strict by default (cleanup init template, now useless since TS 6.0)
- Deprecate
configureWebpack(...args) in favor of configureBundler({params}), upgrade webpack-merge
Also: handle all the // TODO Docusaurus v4 comments in code
Optional changes
These are the changes we'd like to have for v4, but if they are too complicated, difficult to implement, or too disruptive for users, we may postpone them to another major version.
This is a meta issue to gather information about the upcoming Docusaurus v4 release.
This comment will be updated regularly as we progress toward v4.
If you have opinions on breaking changes and dependency upgrades we should focus on, please let us know.
Apart from that, I'd like to keep the release relatively small, to make it easy to adopt, and to not delay it more than needed.
Top Priority changes
These are the changes we really want for v4. The list is already quite long, so I'm likely to migrate some items to optional changes.
Dependency upgrades:
Behaviors:
experimental_fasteris now stable and enabled by default. It remains possible to opt out webpack/slower tools.experimental_storageis now stable and uses namespacing by default, with the ability to out-out.baseline widely availableby defaultRegExp.escape--bundle-analyzeroption, it shouldn't be in core and could be a pluginrespectPrefersColorSchemeby defaultconfigureWebpack(...args)in favor ofconfigureBundler({params}), upgrade webpack-mergeAlso: handle all the
// TODO Docusaurus v4comments in codeOptional changes
These are the changes we'd like to have for v4, but if they are too complicated, difficult to implement, or too disruptive for users, we may postpone them to another major version.
algolia.themeConfigin favor of plugin/preset options?getSwizzleComponentListin favor ofgetSwizzleConfig.mdparsed as CommonMark by default?