Skip to content

Commit 8d25eb6

Browse files
736-c41-2c1-e464fc974Loom MR Pipeline Triggeropen-source Pipeline
committed
Merge branch 'renovate/frontend-dependencies' into 'main'
chore(deps): update frontend dependencies (minor) (minor) This MR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | devDependencies | minor | [`^0.4.20` → `^0.5.0`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.26/0.5.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ArnaudBarre/eslint-plugin-react-refresh/badge)](https://securityscorecards.dev/viewer/?uri=github.com/ArnaudBarre/eslint-plugin-react-refresh) | | [react-pdf](https://github.com/wojtekmaj/react-pdf) ([source](https://github.com/wojtekmaj/react-pdf/tree/HEAD/packages/react-pdf)) | dependencies | minor | [`10.3.0` → `10.4.0`](https://renovatebot.com/diffs/npm/react-pdf/10.3.0/10.4.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/wojtekmaj/react-pdf/badge)](https://securityscorecards.dev/viewer/?uri=github.com/wojtekmaj/react-pdf) | --- ### Release Notes <details> <summary>ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)</summary> ### [`v0.5.0`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#050) [Compare Source](ArnaudBarre/eslint-plugin-react-refresh@v0.4.26...v0.5.0) ##### Breaking changes - The package now ships as ESM and requires ESLint 9 + node 20. Because legacy config doesn't support ESM, this requires to use [flat config](https://eslint.org/docs/latest/use/configure/migration-guide) - A new `reactRefresh` export is available and prefered over the default export. It's an object with two properties: - `plugin`: The plugin object with the rules - `configs`: An object containing configuration presets, each exposed as a function. These functions accept your custom options, merge them with sensible defaults for that config, and return the final config object. - `customHOCs` option was renamed to `extraHOCs` - Validation of HOCs calls is now more strict, you may need to add some HOCs to the `extraHOCs` option Config example: ```js import { defineConfig } from "eslint/config"; import { reactRefresh } from "eslint-plugin-react-refresh"; export default defineConfig( /* Main config */ reactRefresh.configs.vite({ extraHOCs: ["someLibHOC"] }), ); ``` Config example without config: ```js import { defineConfig } from "eslint/config"; import { reactRefresh } from "eslint-plugin-react-refresh"; export default defineConfig({ files: ["**/*.ts", "**/*.tsx"], plugins: { // other plugins "react-refresh": reactRefresh.plugin, }, rules: { // other rules "react-refresh/only-export-components": [ "warn", { extraHOCs: ["someLibHOC"] }, ], }, }); ``` ##### Why This version follows a revamp of the internal logic to better make the difference between random call expressions like `export const Enum = Object.keys(Record)` and actual React HOC calls like `export const MemoComponent = memo(Component)`. (fixes [#&#8203;93](ArnaudBarre/eslint-plugin-react-refresh#93)) The rule now handles ternaries and patterns like `export default customHOC(props)(Component)` which makes it able to correctly support files like [this one](https://github.com/eclipse-apoapsis/ort-server/blob/ddfc624ce71b9f2ca6bad9b8c82d4c3249dd9c8b/ui/src/routes/__root.tsx) given this config: ```json { "react-refresh/only-export-components": [ "warn", { "extraHOCs": ["createRootRouteWithContext"] } ] } ``` > \[!NOTE] > Actually createRoute functions from TanStack Router are not React HOCs, they return route objects that [fake to be a memoized component](https://github.com/TanStack/router/blob/8628d0189412ccb8d3a01840aa18bac8295e18c8/packages/react-router/src/route.tsx#L263) but are not. When only doing `createRootRoute({ component: Foo })`, HMR will work fine, but as soon as you add a prop to the options that is not a React component, HMR will not work. I would recommend to avoid adding any TanStack function to `extraHOCs` it you want to preserve good HMR in the long term. [Bluesky thread](https://bsky.app/profile/arnaud-barre.bsky.social/post/3ma5h5tf2sk2e). Because I'm not 100% sure this new logic doesn't introduce any false positive, this is done in a major-like version. This also give me the occasion to remove the hardcoded `connect` from the rule. If you are using `connect` from `react-redux`, you should now add it to `extraHOCs` like this: ```json { "react-refresh/only-export-components": ["warn", { "extraHOCs": ["connect"] }] } ``` </details> <details> <summary>wojtekmaj/react-pdf (react-pdf)</summary> ### [`v10.4.0`](https://github.com/wojtekmaj/react-pdf/releases/tag/v10.4.0) [Compare Source](wojtekmaj/react-pdf@v10.3.0...v10.4.0) #### What's new? - Added support for `pageColors` prop in Page component ([#&#8203;2068](wojtekmaj/react-pdf#2068)). With this option, you can easily override colors used to render the PDF and implement accessibility enhancements. For example, this: ```tsx <Page /* … */ pageColors={{ background: 'black', foreground: '#FF0000' }} /> ``` will result in the following: <img width="297" height="421" alt="" src="https://github.com/user-attachments/assets/0d45f01d-7582-47af-bcbd-9db777a30d11" /> </details> --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40LjIiLCJ1cGRhdGVkSW5WZXIiOiI0My4yOS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==--> See merge request swiss-armed-forces/cyber-command/cea/loom!302 Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com> Co-authored-by: open-source Pipeline <group_90701827_bot_ed04ae348bc5f40af9966fb8b6867e99@noreply.gitlab.com>
2 parents 7d63032 + e8f30f1 commit 8d25eb6

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

Frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-plugin-prettier": "^5.5.0",
5454
"eslint-plugin-react": "^7.37.5",
5555
"eslint-plugin-react-hooks": "^7.0.0",
56-
"eslint-plugin-react-refresh": "^0.4.20",
56+
"eslint-plugin-react-refresh": "^0.5.0",
5757
"eslint-plugin-unused-imports": "^4.1.4",
5858
"globals": "^16.2.0",
5959
"jsdom": "^26.1.0",

Frontend/pnpm-lock.yaml

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

Frontend/public/THIRD-PARTY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ The complete source code for Traefik is publicly available at [https://github.co
695695
| eslint-plugin-prettier | MIT | 5.5.5 |
696696
| eslint-plugin-react | MIT | 7.37.5 |
697697
| eslint-plugin-react-hooks | MIT | 7.0.1 |
698-
| eslint-plugin-react-refresh | MIT | 0.4.26 |
698+
| eslint-plugin-react-refresh | MIT | 0.5.0 |
699699
| eslint-plugin-unused-imports | MIT | 4.4.1 |
700700
| globals | MIT | 16.5.0 |
701701
| jsdom | MIT | 26.1.0 |

THIRD-PARTY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ The complete source code for Traefik is publicly available at [https://github.co
695695
| eslint-plugin-prettier | MIT | 5.5.5 |
696696
| eslint-plugin-react | MIT | 7.37.5 |
697697
| eslint-plugin-react-hooks | MIT | 7.0.1 |
698-
| eslint-plugin-react-refresh | MIT | 0.4.26 |
698+
| eslint-plugin-react-refresh | MIT | 0.5.0 |
699699
| eslint-plugin-unused-imports | MIT | 4.4.1 |
700700
| globals | MIT | 16.5.0 |
701701
| jsdom | MIT | 26.1.0 |

0 commit comments

Comments
 (0)