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

chore(dependencies): bumping plate packages and react version to 18 [TOL-2415] #1756

Merged
merged 17 commits into from
Oct 1, 2024

Conversation

aodhagan-cf
Copy link
Contributor

@aodhagan-cf aodhagan-cf commented Sep 30, 2024

  • Bumping plate packages
  • Updating to react v18, required as the cypress component test webpack build fails without it after bumping some of the plate packages
  • Fixing cypress component test parallelism

@wiz-inc-38d59fb8d7
Copy link

wiz-inc-38d59fb8d7 bot commented Sep 30, 2024

Wiz Scan Summary

Scan Module Critical High Medium Low Info Total
IaC Misconfigurations 0 0 0 0 0 0
Vulnerabilities 0 0 0 0 0 0
Sensitive Data 0 0 0 0 0 0
Secrets 0 0 0 0 0 0
Total 0 0 0 0 0 0

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@aodhagan-cf aodhagan-cf changed the title fix: bumping plate packages [TOL-2415] fix: bumping plate packages and react version [TOL-2415] Sep 30, 2024
@aodhagan-cf aodhagan-cf changed the title fix: bumping plate packages and react version [TOL-2415] fix: bumping plate packages and react version to 18 [TOL-2415] Sep 30, 2024
@github-actions github-actions bot added the tools label Sep 30, 2024
@@ -71,7 +71,7 @@ jobs:
- run:
name: Run cypress component tests
command: |
TESTFILES=$(circleci tests glob cypress/component/**/*.ts | circleci tests split --split-by=timings --timings-type=filename | tr '\n' ',')
TESTFILES=$(circleci tests glob cypress/component/**/*.ts | circleci tests split --split-by=timings --timings-type=filename | awk '{if (NR>1) printf ","; printf "%s", $0} END {if (NR>0) printf " "}')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a known issue with cypress, if you end a CSV with a comma the cypress command ignores it and runs everything, we are actually running all tests but now in 3 containers instead of splitting

Copy link
Contributor

Choose a reason for hiding this comment

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

wonder if we have this issue in other projects too? (experience-packages, ..)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

experience-packages is not parallelised but yeah it's possible with the combo of test field splitting in circleci

@aodhagan-cf aodhagan-cf marked this pull request as ready for review October 1, 2024 11:40
@aodhagan-cf aodhagan-cf requested review from a team as code owners October 1, 2024 11:40
@aodhagan-cf aodhagan-cf changed the title fix: bumping plate packages and react version to 18 [TOL-2415] chore(dependencies): bumping plate packages and react version to 18 [TOL-2415] Oct 1, 2024
Co-authored-by: Chris Helgert <chrishelgert@users.noreply.github.com>
@@ -46,7 +46,7 @@
},
"peerDependencies": {
"@contentful/app-sdk": "^4.29.0",
"react": ">=16.8.0"
"react": ">=17.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

here too :D (and in the other ones too :D)

},
"devDependencies": {
"@contentful/field-editor-test-utils": "^1.5.1",
"@contentful/rich-text-react-renderer": "^15.16.4",
"@types/is-hotkey": "^0.1.6",
"@udecode/plate-test-utils": "^3.2.0",
"prism-react-renderer": "2.4.0",
"react": ">=16.14.0"
"react": "17.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

dev should be react 18 right?

Copy link
Contributor

Choose a reason for hiding this comment

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

potentialy we don't even need it as it's in the global package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think we don't need to change this, but will anyways. Rich text is the only package that even has a react dev dependency

@aodhagan-cf aodhagan-cf merged commit 3c54af2 into master Oct 1, 2024
16 checks passed
@aodhagan-cf aodhagan-cf deleted the feat/TOL-2415 branch October 1, 2024 13:44
@2wce 2wce mentioned this pull request Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment