Upgrade Rslib
This section explains how to upgrade the project's Rslib dependencies to the latest version.
Tip
See npm - @rslib/core to view the latest version.
Semantic versioning
Rslib follows the Semantic Versioning specification.
- Major version: contains incompatible API changes.
- Minor version: contains backward-compatible features and fixes.
- Patch version: contains backward-compatible bug fixes.
Changelog
Visit GitHub Releases to view the changes for each version of Rslib.
Using taze
We recommend using Taze to upgrade the Rslib version. Taze is a CLI tool for updating npm dependencies.
Usage
Run the following command to upgrade all dependencies that include rslib and rsbuild in their names:
The result will look similar to:
You can also adjust the include pattern to match specific packages, for example, to upgrade only packages under the @rslib scope:
Options
Here are some examples of using taze options.
- In a monorepo, you can add the
-roption to upgrade recursively:
- Add
-lto upgrade locked versions:
- To upgrade to a major version:
For more options, please refer to the taze documentation.
