Skip to content

chore(deps): update dependency @rspack/plugin-react-refresh to v2#1479

Open
renovate[bot] wants to merge 2 commits intodevfrom
renovate/rspack-plugin-react-refresh-2.x
Open

chore(deps): update dependency @rspack/plugin-react-refresh to v2#1479
renovate[bot] wants to merge 2 commits intodevfrom
renovate/rspack-plugin-react-refresh-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 20, 2026

This PR contains the following updates:

Package Change Age Confidence
@rspack/plugin-react-refresh ^1.4.1^2.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

rstackjs/rspack-plugin-react-refresh (@​rspack/plugin-react-refresh)

v2.0.0

Compare Source

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: undefined
  • include: /\.([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
Others

Full Changelog: rstackjs/rspack-plugin-react-refresh@v1.6.2...v2.0.0-beta.0


Configuration

📅 Schedule: (UTC)

  • 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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 20, 2026

⚠️ No Changeset found

Latest commit: 5afab98

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@claude
Copy link
Copy Markdown

claude Bot commented Apr 20, 2026

Claude finished @junghyeonsu's task in 2m 36s —— View job


🤖 Renovate 의존성 분석 완료

🛡️ 공급망 보안 분석

Install Scripts 검사

패키지 Install Script 위험 패턴 판정
@rspack/plugin-react-refresh prepare: simple-git-hooks && npm run build 없음 (표준 개발 스크립트) 🟢 안전

분석: simple-git-hooks는 Git hooks 설정을 위한 정상적인 도구이며, npm run build는 패키지 빌드 스크립트입니다. 외부 네트워크 요청, 환경변수 유출, 파일시스템 무단 접근 등의 의심 패턴이 발견되지 않았습니다.

패키지 신뢰도

패키지 저장소 나이 Stars Forks 이슈 판정
@rspack/plugin-react-refresh 20개월 (2024-08 생성) 19 11 4 🟡 보통

분석: rstackjs 조직에서 관리하는 공식 Rspack 플러그인입니다. Star 수는 적지만, Rspack 생태계 내 공식 플러그인으로 신뢰할 수 있습니다. 저장소가 활발히 유지보수되고 있으며, v2.0.0 릴리스가 최근(2026-04-08) 이루어졌습니다.

npm audit 결과

취약점 없음 (사전 검사 결과)


📦 업데이트 요약

패키지 이전 버전 새 버전 타입 영향도
@rspack/plugin-react-refresh ^1.4.1 ^2.0.0 major 🟢 안전

🔍 상세 분석

@rspack/plugin-react-refresh v1.4.1v2.0.0

주요 변경사항:

Breaking Changes

  1. Pure ESM 패키지로 전환 - CommonJS 지원 제거, Rspack 2.0과 동일하게 ESM 전용
  2. 기본 export 제거 - named export만 제공
    - import ReactRefreshRspackPlugin from '@rspack/plugin-react-refresh';
    + import { ReactRefreshRspackPlugin } from '@rspack/plugin-react-refresh';
  3. overlay 옵션 제거 - Rspack/Rsbuild dev server가 내장 에러 오버레이를 제공하므로 중복 기능 제거
  4. 기본 옵션 변경 - 확장자 필터가 include에서 test로 이동
    • Before: include: /\.([cm]js|[jt]sx?|flow)$/i
    • After: test: /\.(?:js|jsx|mjs|cjs|ts|tsx|mts|cts)$/

기타 개선사항

  • deprecated static 메서드 제거
  • @rspack/core를 optional peer dependency로 추가
  • React refresh runtime 헬퍼 현대화

우리 코드 사용처: 1개 파일

  • examples/rspack-spa/rspack.config.ts:3 — named import 사용 중
  • examples/rspack-spa/rspack.config.ts:56 — 옵션 없이 기본 생성자 사용

영향도: 🟢 안전

상세 분석:

  1. Named export 사용 - PR에서 이미 import { ReactRefreshRspackPlugin }로 수정됨
  2. 옵션 미사용 - new ReactRefreshRspackPlugin() 형태로 옵션 없이 사용 중이므로 overlay 제거 영향 없음
  3. 기본 동작 유지 - 확장자 필터 변경은 기본 동작 개선으로, 기존 코드와 호환됨
  4. ESM 호환 - 프로젝트가 이미 TypeScript ESM 방식 사용 중

Breaking change 대응 상태:

  • ✅ Import 문법 변경 완료 (commit 5afab98)
  • ✅ 옵션 호환성 확인 완료
  • ✅ 추가 수정 불필요

🧪 테스트 권고

  • Breaking change 대응 완료 확인
  • bun --filter @seed-design/example-rspack dev 실행하여 개발 서버 정상 동작 확인 권장
  • React Fast Refresh 기능 정상 작동 확인 권장

🎯 결론

✅ 머지 승인 권장

  1. 보안 측면: Install scripts에 의심 패턴 없음, npm audit 취약점 없음, 공식 Rspack 생태계 플러그인으로 신뢰 가능
  2. 호환성: Breaking changes가 이미 PR에서 모두 처리됨 (named import로 변경 완료)
  3. 영향 범위: examples/rspack-spa 예제에만 영향, 옵션 미사용으로 추가 수정 불필요
  4. 버전 정책: Major 업데이트이지만 개발 의존성이며, 이미 코드 수정 완료

권장 사항:

  • Changeset 추가 필요 (changeset-bot 경고 확인)
  • 머지 전 개발 서버 로컬 테스트 수행 권장

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 24, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant