Skip to content

Commit bc71f3b

Browse files
chore(deps): update dependency @rslib/core to ^0.15.0 (#1828)
> [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07. <hr> This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@rslib/core](https://rslib.rs) ([source](https://redirect.github.com/web-infra-dev/rslib/tree/HEAD/packages/core)) | [`^0.13.3` -> `^0.15.0`](https://renovatebot.com/diffs/npm/@rslib%2fcore/0.13.3/0.15.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@rslib%2fcore/0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rslib%2fcore/0.13.3/0.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>web-infra-dev/rslib (@&#8203;rslib/core)</summary> ### [`v0.15.0`](https://redirect.github.com/web-infra-dev/rslib/releases/tag/v0.15.0) [Compare Source](https://redirect.github.com/web-infra-dev/rslib/compare/v0.14.0...v0.15.0) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Highlights 💡 ##### Preserve JSX Rslib supports setting the JSX runtime to `'preserve'` to leave JSX syntax unchanged without transforming it, which is useful when you expect JSX to be left as is in library development. <img alt="Preserve JSX" src="https://github.com/user-attachments/assets/70aeb34c-427d-44fb-85e1-99d5a7283440" width="400" /> > See [JSX transform - React](https://rslib.rs/guide/solution/react#jsx-transform) for more details. #### What's Changed ##### New Features 🎉 - feat: support JSX preserve by [@&#8203;fi3ework](https://redirect.github.com/fi3ework) in [#&#8203;1244](https://redirect.github.com/web-infra-dev/rslib/pull/1244) - feat: support inspect Rslib config by [@&#8203;fi3ework](https://redirect.github.com/fi3ework) in [#&#8203;1255](https://redirect.github.com/web-infra-dev/rslib/pull/1255) ##### Bug Fixes 🐞 - fix(create-rslib): drop legacy Storybook packages by [@&#8203;fi3ework](https://redirect.github.com/fi3ework) in [#&#8203;1252](https://redirect.github.com/web-infra-dev/rslib/pull/1252) ##### Document 📖 - docs: correct rslib mf command in README by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1245](https://redirect.github.com/web-infra-dev/rslib/pull/1245) - docs: update examples link by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1246](https://redirect.github.com/web-infra-dev/rslib/pull/1246) - docs(zh): translate bundle example heading by [@&#8203;fi3ework](https://redirect.github.com/fi3ework) in [#&#8203;1248](https://redirect.github.com/web-infra-dev/rslib/pull/1248) - docs: specify [@&#8203;storybook/addon-essentials](https://redirect.github.com/storybook/addon-essentials) next version by [@&#8203;nyqykk](https://redirect.github.com/nyqykk) in [#&#8203;1250](https://redirect.github.com/web-infra-dev/rslib/pull/1250) - docs(AGENTS.md): refine by [@&#8203;fi3ework](https://redirect.github.com/fi3ework) in [#&#8203;1251](https://redirect.github.com/web-infra-dev/rslib/pull/1251) ##### Other Changes - chore(deps): update all non-major dependencies by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;1253](https://redirect.github.com/web-infra-dev/rslib/pull/1253) - chore(deps): bump Rsbuild 1.5.13 by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1256](https://redirect.github.com/web-infra-dev/rslib/pull/1256) - Release v0.15.0 by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1259](https://redirect.github.com/web-infra-dev/rslib/pull/1259) **Full Changelog**: <web-infra-dev/rslib@v0.14.0...v0.15.0> ### [`v0.14.0`](https://redirect.github.com/web-infra-dev/rslib/releases/tag/v0.14.0) [Compare Source](https://redirect.github.com/web-infra-dev/rslib/compare/v0.13.3...v0.14.0) <!-- Release notes generated using configuration in .github/release.yml at main --> #### Breaking changes 🚨 ##### Config loading Currently, configuration files are loaded with [jiti](https://redirect.github.com/unjs/jiti), which relies on Babel. This approach is relatively slow (at least \~70ms slower compared to native). In Rslib [v0.13.3](https://redirect.github.com/web-infra-dev/rslib/releases/tag/v0.13.3), we introduced a new CLI option `--config-loader native`, which uses Node.js's native loader. This approach offers better performance and stricter behavior, but comes with certain requirements: - Requires Node v22.18+ with built-in TypeScript support - Import specifiers must include file extensions - When using TypeScript, `package.json` must set `"type": "module"` - Importing JSON requires `with { type: "json" }` In Rslib [v0.14.0](https://redirect.github.com/web-infra-dev/rslib/releases/tag/v0.14.0), we adjust the default configuration loading behavior. The new default is now `--config-loader auto`, which: - First attempts to use the faster native loader - If that fails, it gracefully falls back to jiti for broader compatibility This change to `'auto'` as the default is part of our long-term plan to [transition config loading from jiti to Node.js native](https://redirect.github.com/web-infra-dev/rsbuild/discussions/6188). #### What's Changed ##### New Features 🎉 - feat!: config loader default to `'auto'` by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1240](https://redirect.github.com/web-infra-dev/rslib/pull/1240) - feat(CLI): support `logLevel` by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1238](https://redirect.github.com/web-infra-dev/rslib/pull/1238) ##### Bug Fixes 🐞 - fix(docs): use `rp-not-doc` for rsbuild doc badge by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1236](https://redirect.github.com/web-infra-dev/rslib/pull/1236) ##### Other Changes - chore(deps): update dependency ora to v9 by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;1230](https://redirect.github.com/web-infra-dev/rslib/pull/1230) - chore(deps): update dependency ubuntu to v24 by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1231](https://redirect.github.com/web-infra-dev/rslib/pull/1231) - chore(renovate): ignore `jsdom` due to Node.js version limit by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1233](https://redirect.github.com/web-infra-dev/rslib/pull/1233) - chore: update tailwind v4 in test cases by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1232](https://redirect.github.com/web-infra-dev/rslib/pull/1232) - chore(deps): bump Rsbuild 1.5.9 by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1234](https://redirect.github.com/web-infra-dev/rslib/pull/1234) - chore(deps): update all non-major dependencies by [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;1235](https://redirect.github.com/web-infra-dev/rslib/pull/1235) - chore(deps): bump Rsbuild 1.5.11 by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1241](https://redirect.github.com/web-infra-dev/rslib/pull/1241) - test: make test logs clear by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1242](https://redirect.github.com/web-infra-dev/rslib/pull/1242) - Release v0.14.0 by [@&#8203;Timeless0911](https://redirect.github.com/Timeless0911) in [#&#8203;1243](https://redirect.github.com/web-infra-dev/rslib/pull/1243) **Full Changelog**: <web-infra-dev/rslib@v0.13.3...v0.14.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/lynx-family/lynx-stack). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjEzMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJib3Q6cmVub3ZhdGUiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Qingyu Wang <[email protected]>
1 parent 8dd1ecb commit bc71f3b

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@eslint/markdown": "^7.3.0",
2020
"@microsoft/api-extractor": "catalog:",
2121
"@rsbuild/core": "catalog:rsbuild",
22-
"@rslib/core": "^0.13.3",
22+
"@rslib/core": "^0.15.0",
2323
"@rspack/core": "catalog:rspack",
2424
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
2525
"@tsconfig/node20": "^20.1.6",

packages/react/testing-library/rslib.config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { defineConfig, type rsbuild } from '@rslib/core';
1+
import { createRequire } from 'node:module';
2+
3+
import { defineConfig } from '@rslib/core';
4+
5+
const require = createRequire(import.meta.url);
26

37
export default defineConfig({
48
lib: [
@@ -55,8 +59,8 @@ export default defineConfig({
5559
},
5660
],
5761
tools: {
58-
rspack(config) {
59-
config.module!.rules!.push({
62+
rspack(_, { appendRules }) {
63+
appendRules({
6064
test: /\.jsx$/,
6165
use: [
6266
{

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)