Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update react dependencies #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 15, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@vitejs/plugin-react-swc ^3.3.2 -> ^3.8.0 age adoption passing confidence
eslint-plugin-react-hooks (source) ^4.6.0 -> ^4.6.2 age adoption passing confidence
eslint-plugin-react-refresh ^0.4.3 -> ^0.4.19 age adoption passing confidence
react (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-dom (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-router-dom (source) ^6.18.0 -> ^6.30.0 age adoption passing confidence

Release Notes

vitejs/vite-plugin-react-swc (@​vitejs/plugin-react-swc)

v3.8.0

Compare Source

Add useAtYourOwnRisk_mutateSwcOptions option

The future of Vite is with OXC, and from the beginning this was a design choice to not exposed too many specialties from SWC so that Vite React users can move to another transformer later.
Also debugging why some specific version of decorators with some other unstable/legacy feature doesn't work is not fun, so we won't provide support for it, hence the name useAtYourOwnRisk.

react({
  useAtYourOwnRisk_mutateSwcOptions(options) {
    options.jsc.parser.decorators = true;
    options.jsc.transform.decoratorVersion = "2022-03";
  },
});

v3.7.2

Compare Source

Add Vite 6 to peerDependencies range #​207

Thanks @​RobinTail

Revert throw when refresh runtime is loaded twice #​237

Revert the throw when refresh runtime is loaded twice to enable usage in micro frontend apps. This was added to help fix setup usage, and this is not worth an annoying warning for others or a config parameter.

This revert was done in the Babel plugin last year and I didn't port it back.

v3.7.1

Compare Source

Ignore directive sourcemap error #​231

v3.7.0

Compare Source

Support HMR for class components

This is a long overdue and should fix some issues people had with HMR when migrating from CRA.

v3.6.0

Compare Source

Add parserConfig option

This will unlock to use the plugin in some use cases where the original source code is not in TS. Using this option to keep using JSX inside .js files is highly discouraged and can be removed in any future version.

v3.5.0

Compare Source

Update peer dependency range to target Vite 5

There were no breaking change that impacted this plugin, so any combination of React plugins and Vite core version will work.

Align jsx runtime for optimized dependencies

This will only affect people using internal libraries that contains untranspiled JSX. This change aligns the optimizer with the source code and avoid issues when the published source don't have React in the scope.

Reminder: While being partially supported in Vite, publishing TS & JSX outside of internal libraries is highly discouraged.

facebook/react (eslint-plugin-react-hooks)

v4.6.2

Compare Source

v4.6.1

Compare Source

ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)

v0.4.19

Compare Source

Add name to configs for ESLint Config Inspector

v0.4.18

Compare Source

ESM/CJS interop is the worse that happened to this ecosystem, this is all I have to say.

v0.4.17

Compare Source

  • Fix detection of local components to not generate warning on for variable inside JSX files that follow React component naming (fixes #​75)
  • Update types to not require extra unnecessary .default property access under TS node16 module resolution (fixes #​70)

v0.4.16

Compare Source

Fix CJS/ESM interop issue. Sorry everyone for the trouble.

v0.4.15

Compare Source

Add support for custom HOCs (#​60)

By default, the rule only knows that memo & forwardRef function calls with return a React component. With this option, you can also allow extra function names like Mobx observer to make this code valid:

const Foo = () => <></>;
export default observer(Foo);
{
  "react-refresh/only-export-components": [
    "error",
    { "customHOCs": ["observer"] }
  ]
}

Thanks @​HorusGoul!

Add recommended config and simple types (#​67)

You can now add the recommended config to your ESLint config like this:

import reactRefresh from "eslint-plugin-react-refresh";

export default [
  /* Main config */
  reactRefresh.configs.recommended, // Or reactRefresh.configs.vite for Vite users
];

To follow ESLint recommandations, the rule is added with the error severity.

Some simple types ensure that people typecheking their config won't need @ts-expect-error anymore.

Bump ESLint peer dependency to 8.40

This was actually done by mistake in the previous release when moving from a deprecated API to a new one.

Given that ESLint 8 is officialy end-of-life and the only report (#​56) didn't get likes, I'm going forward and documenting the expected minimum version from ESLin in the package JSON so that people can get warning from their package manager.

v0.4.14

Compare Source

v0.4.13

Compare Source

v0.4.12

Compare Source

  • Support type assertion on default export (fixes #​48)
  • Add default export to fix usage with jiti (fixes #​50)

v0.4.11

Compare Source

  • Ignore type exports (ex. export type foo = string;) (fixes #​47)

v0.4.10

Compare Source

  • Support function Foo() {}; export default React.memo(Foo) (#​46) (thanks @​SukkaW!)

v0.4.9

Compare Source

  • Support function Foo() {}; export default memo(Foo) (fixes #​44) (thanks @​SukkaW!)

v0.4.8

Compare Source

  • Support export const foo = -1 with allowConstantExport (fixes #​43)

v0.4.7

Compare Source

  • Support export { Component as default } (fixes #​41)

v0.4.6

Compare Source

  • Ignore cypress test files (#​39)

v0.4.5

Compare Source

  • Allow TaggedTemplateExpression for styled components (fixes #​32)
facebook/react (react)

v18.3.1

Compare Source

  • Export act from react f1338f

v18.3.0

Compare Source

This release is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19.

Read the React 19 Upgrade Guide for more info.

React
  • Allow writing to this.refs to support string ref codemod 909071
  • Warn for deprecated findDOMNode outside StrictMode c3b283
  • Warn for deprecated test-utils methods d4ea75
  • Warn for deprecated Legacy Context outside StrictMode 415ee0
  • Warn for deprecated string refs outside StrictMode #​25383
  • Warn for deprecated defaultProps for function components #​25699
  • Warn when spreading key #​25697
  • Warn when using act from test-utils d4ea75
React DOM
  • Warn for deprecated unmountComponentAtNode 8a015b
  • Warn for deprecated renderToStaticNodeStream #​28874
remix-run/react-router (react-router-dom)

v6.30.0

Compare Source

v6.29.0

Compare Source

v6.28.2

Compare Source

v6.28.1

Compare Source

v6.28.0

Compare Source

v6.27.0

Compare Source

v6.26.2

Compare Source

v6.26.1

Compare Source

v6.26.0

Compare Source

v6.25.1

Compare Source

v6.25.0

Compare Source

v6.24.1

Compare Source

v6.24.0

Compare Source

v6.23.1

Compare Source

v6.23.0

Compare Source

v6.22.3

Compare Source

v6.22.2

Compare Source

v6.22.1

Compare Source

v6.22.0

Compare Source

v6.21.3

Compare Source

v6.21.2

Compare Source

v6.21.1

Compare Source

v6.21.0

Compare Source

v6.20.1

Compare Source

v6.20.0

Compare Source

v6.19.0

Compare Source


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

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

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

@renovate renovate bot force-pushed the renovate/react-dependencies branch from 2ea5752 to 1abc2ef Compare January 19, 2024 02:37
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from 84d7da9 to 2e7e7ba Compare February 1, 2024 21:34
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from c7637fd to 93f4a4f Compare February 16, 2024 22:53
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 93f4a4f to 8fe2acd Compare February 28, 2024 21:06
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from 2c5fb2d to 7b6cd08 Compare March 13, 2024 11:36
@renovate renovate bot force-pushed the renovate/react-dependencies branch 3 times, most recently from 82d2c7c to 75c4506 Compare April 26, 2024 20:02
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from 4d9846b to 9637a56 Compare May 10, 2024 18:45
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 9637a56 to a766ed5 Compare May 22, 2024 20:29
@renovate renovate bot force-pushed the renovate/react-dependencies branch from a766ed5 to 5231391 Compare June 24, 2024 19:21
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from 6694d42 to fc4d0b4 Compare July 10, 2024 01:02
@renovate renovate bot force-pushed the renovate/react-dependencies branch 3 times, most recently from a2d5911 to 230fdfe Compare July 21, 2024 19:09
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 230fdfe to 30f73e3 Compare August 1, 2024 18:19
@renovate renovate bot force-pushed the renovate/react-dependencies branch 3 times, most recently from a65864a to c835757 Compare August 22, 2024 14:06
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from 998951e to cc9252e Compare September 14, 2024 11:18
@renovate renovate bot force-pushed the renovate/react-dependencies branch from cc9252e to 4c16d43 Compare September 29, 2024 22:52
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 4c16d43 to b6e3056 Compare October 11, 2024 22:34
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from ec06c50 to d9ba885 Compare October 24, 2024 19:58
@renovate renovate bot force-pushed the renovate/react-dependencies branch from d9ba885 to 461f0a7 Compare November 7, 2024 00:24
@renovate renovate bot force-pushed the renovate/react-dependencies branch 3 times, most recently from ccc5aef to eb5e5c2 Compare December 2, 2024 13:43
@renovate renovate bot force-pushed the renovate/react-dependencies branch from eb5e5c2 to 8addc9f Compare December 20, 2024 23:06
@renovate renovate bot force-pushed the renovate/react-dependencies branch 2 times, most recently from 51b8690 to f711e7c Compare January 16, 2025 17:09
@renovate renovate bot force-pushed the renovate/react-dependencies branch from f711e7c to b843835 Compare January 30, 2025 18:50
@renovate renovate bot force-pushed the renovate/react-dependencies branch from b843835 to 7a3dfdb Compare February 9, 2025 10:02
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 7a3dfdb to a8617e6 Compare February 27, 2025 19:40
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.

0 participants