Releases: rstackjs/rspack-plugin-react-refresh
v2.0.0-beta.0
What's Changed
Breaking Changes
- feat!: remove overlay support by @chenjiahan in #89
- feat!: update default include regex by @chenjiahan in #99
- refactor!: remove CommonJS and default export entrypoints by @chenjiahan in #90
- fix!: preserve default extension filter when include is customized by @chenjiahan in #100
Others
- refactor: migrate package runtime to ESM by @chenjiahan in #91
- chore: replace Biome with rslint and Prettier by @chenjiahan in #92
- chore: remove unused release tooling deps by @chenjiahan in #93
- ci: simplify release workflow by @chenjiahan in #94
- fix: remove deprecated static method for runtime paths by @chenjiahan in #95
- feat: add optional peer dependency for @rspack/core by @chenjiahan in #96
- chore: update references from webpack to Rspack by @chenjiahan in #97
- refactor: modernize react refresh runtime helpers by @chenjiahan in #98
- release: 2.0.0-beta.0 by @chenjiahan in #101
Full Changelog: v1.6.2...v2.0.0-beta.0
v2.0.0
Upgrade Guide
Pure ESM package
@rspack/plugin-react-refresh is now pure ESM (the same as Rspack 2.0).
Default export removed
The plugin now provides a named export only.
- import ReactRefreshRspackPlugin from '@rspack/plugin-react-refresh';
+ import { ReactRefreshRspackPlugin } from '@rspack/plugin-react-refresh';overlay option removed
The overlay option has been removed. Rspack dev server and Rsbuild dev server already provide built-in error overlays, so this package no longer ships its own overlay integration.
Default option changes
The default extension filter has moved from include to test.
Before:
test:undefinedinclude:/\.([cm]js|[jt]sx?|flow)$/i
Now:
test:/\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/include:undefined
This makes custom include safer: when include points to a directory, the plugin still only applies to supported JS/TS module extensions by default.
What's Changed
Breaking Changes
- feat!: remove overlay support by @chenjiahan in #89
- feat!: update default include regex by @chenjiahan in #99
- refactor!: remove CommonJS and default export entrypoints by @chenjiahan in #90
- fix!: preserve default extension filter when include is customized by @chenjiahan in #100
Others
- refactor: migrate package runtime to ESM by @chenjiahan in #91
- chore: replace Biome with rslint and Prettier by @chenjiahan in #92
- chore: remove unused release tooling deps by @chenjiahan in #93
- ci: simplify release workflow by @chenjiahan in #94
- fix: remove deprecated static method for runtime paths by @chenjiahan in #95
- feat: add optional peer dependency for @rspack/core by @chenjiahan in #96
- chore: update references from webpack to Rspack by @chenjiahan in #97
- refactor: modernize react refresh runtime helpers by @chenjiahan in #98
- release: 2.0.0-beta.0 by @chenjiahan in #101
Full Changelog: v1.6.2...v2.0.0-beta.0
v1.6.2
What's Changed
- perf(deps): remove html-entities dependency by @chenjiahan in #82
- chore: remove empty changelog file by @chenjiahan in #74
- chore(deps): pin dependencies by @renovate[bot] in #76
- chore(deps): update all non-major dependencies by @renovate[bot] in #77
- chore(deps): update all non-major dependencies by @renovate[bot] in #78
- chore: setup example project by @chenjiahan in #80
- chore(deps): update @rspack/core to v2 and adjust TypeScript config by @chenjiahan in #81
- chore(deps): update dependency bumpp to v11 by @renovate[bot] in #79
- chore(deps): update dependency cac to v7 by @renovate[bot] in #84
- chore(deps): update all non-major dependencies by @renovate[bot] in #83
- chore: upgrade TypeScript to 6.0.2 by @chenjiahan in #85
- chore(deps): update dependency typescript to v6 by @renovate[bot] in #86
- chore(deps): update all non-major dependencies by @renovate[bot] in #87
Full Changelog: v1.6.1...v1.6.2
v1.6.1
What's Changed
- fix(exports): support default-only module shape in ESM wrapper by @BleedingDev in #72
New Contributors
- @BleedingDev made their first contribution in #72
Full Changelog: v1.6.0...v1.6.1
v1.6.0
What's Changed
- feat: allow to override the default react-refresh-loader by @n0th1ng-else in #70
- chore(deps): update actions/checkout action to v6 by @renovate[bot] in #67
- chore(deps): update all non-major dependencies by @renovate[bot] in #66
- chore(deps): update dependency node to v24 by @renovate[bot] in #69
- chore(deps): update actions/setup-node action to v6 by @renovate[bot] in #68
New Contributors
- @n0th1ng-else made their first contribution in #70
Full Changelog: v1.5.3...v1.6.0
v1.5.3
What's Changed
- test: migrate tests to rstest by @9aoy in #60
- chore: switch to
compiler.rspackby @chenjiahan in #61 - chore(deps): update actions/checkout action to v5 by @renovate[bot] in #63
- chore(deps): update all non-major dependencies by @renovate[bot] in #62
- docs: move license headers to THIRDPARTY.md by @chenjiahan in #64
New Contributors
Full Changelog: v1.5.2...v1.5.3
v1.5.2
What's Changed
- perf: bundle main script via Rslib by @chenjiahan in #55
- perf: replace require.resolve with path.join by @chenjiahan in #56
- perf: use require to reduce cjs-module-lexer overhead by @chenjiahan in #57
- perf: convert runtime paths to lazy-loaded functions by @chenjiahan in #58
Full Changelog: v1.5.1...v1.5.2
v1.5.1
What's Changed
- feat: always log error during HMR applying status by @stormslowly in #49
- feat: add reloadOnRuntimeErrors config by @stormslowly in #50
- fix: removeChild may throw when render to
document.bodyby @stormslowly in #52 - fix: early return to void overlay flashing by @stormslowly in #51
- chore: release on release branch by @stormslowly in #53
- chore: format the code by @stormslowly in #48
New Contributors
- @stormslowly made their first contribution in #48
Full Changelog: v1.5.0...v1.5.1
v1.5.0
What's Changed
- feat: add new
testoption by @chenjiahan in #45 - fix: should exclude url dependency by @ahabhgk in #36
- fix: overlay.module is not working by @SyMind in #41
- chore(deps): update all non-major dependencies by @renovate[bot] in #37
- chore(deps): update all non-major dependencies by @renovate[bot] in #38
- chore(deps): update dependency cross-env to v10 by @renovate[bot] in #44
- chore(deps): update all non-major dependencies by @renovate[bot] in #43
- chore(workflow): enable trusted publishing by @chenjiahan in #46
New Contributors
Full Changelog: v1.4.3...v1.5.0
v1.4.2
What's Changed
- feat: add resourceQuery option for excluding by query by @chenjiahan in #34
- chore(deps): update all non-major dependencies by @renovate in #32
Full Changelog: v1.4.1...v1.4.2