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

Upgrade react to version 18 and react-leaflet to version 4 #6689

Draft
wants to merge 7 commits into
base: 2.5
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Jul 10, 2022

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets parts of #6343
Related issues/PRs
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Upgrade react to version 18.

Why?

Usage of the latest react version.

@alexander-schranz alexander-schranz added the DX Affecting the end developer label Jul 10, 2022
@alexander-schranz alexander-schranz changed the title Upgrade react to version 18 Upgrade react to version 18 and react-leaflet to version 4 Jul 10, 2022
UPGRADE.md Outdated Show resolved Hide resolved
UPGRADE.md Outdated Show resolved Hide resolved
UPGRADE.md Outdated
@@ -2,6 +2,17 @@

## 2.5.0

### JS Dependencies update

Sulu requires now new versions of the following JS packages:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would add this to the existing list once #6688 is merged

"leaflet": "^1.5.1",
"react-leaflet": "^3.2.0"
"leaflet": "^1.8",
"react-leaflet": "^4.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the react-leaflet changelog sounds like we cannot use whenCreated here anymore:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh thats funny. Need to check it out for me all did work as expected while testing.

@@ -78,8 +78,8 @@
"postcss-nested": "^4.2.3",
"postcss-simple-vars": "^5.0.2",
"raw-loader": "^4.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react": "^18.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as far as i understand, we cannot really use any new react features together while still using our outdated version of mobx (#6343). but hopefully it should also not cause any issues 🙂

@alexander-schranz alexander-schranz marked this pull request as draft July 11, 2022 15:36
@alexander-schranz
Copy link
Member Author

We will not yet update to react 18. first we would need to make sure https://github.com/wojtekmaj/enzyme-adapter-react-17 is supporting it.

@chirimoya
Copy link
Member

https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl /cc @sulu/core-team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants