Repository navigation
Conversation
3df9456 to
4b7e306
Compare
acda575 to
b389b90
Compare
Adds RFC framework-0100 proposing the upgrade of all Invenio JavaScript packages from React 16.13.0 to React 18.3, migration from Enzyme to React Testing Library, and optional TypeScript adoption.
b389b90 to
b7e351c
Compare
* Adds run-js-tests.sh for unified JavaScript test execution implementing Phase 0 of React 18 Upgrade RFC. (addresses inveniosoftware/rfcs#112) * Adds package-lock.json to .gitignore.
* Adds run-js-tests.sh for unified JavaScript test execution implementing Phase 0 of React 18 Upgrade RFC. (addresses inveniosoftware/rfcs#112) * Adds package-lock.json to .gitignore.
* React 18 deprecates defaultProps on function components, spamming the console with deprecation notices. * Replaces `defaultProps` with ES6 default param syntax across affected components. Part of: inveniosoftware/rfcs#112
* React 18 deprecates defaultProps on function components, spamming the console with deprecation notices. * Replaces `defaultProps` with ES6 default param syntax across affected components. Part of: inveniosoftware/rfcs#112
|
hello! do you have in mind a date for integrating these PRs? is this a finalised list? |
|
next steps: @mirekys is checking about uppy upload, and the react-invenio-forms PR then we are safe to start the release chain |
* React 18 deprecates defaultProps on function components, spamming the console with deprecation notices. * Replaces `defaultProps` with ES6 default param syntax across affected components. Part of: inveniosoftware/rfcs#112
* React 18 deprecates defaultProps on function components, spamming the console with deprecation notices. * Replaces `defaultProps` with ES6 default param syntax across affected components. Part of: inveniosoftware/rfcs#112
* React 18 deprecates defaultProps on function components, spamming the console with deprecation notices. * Replaces `defaultProps` with ES6 default param syntax across affected components. Part of: inveniosoftware/rfcs#112
Manually verified that Uppy works as before on react 18 branch of zenodo-rdm, also verified with playwright e2e test suite (created with help of Claude: zenodo/zenodo-rdm@react-18-migration...mirekys:zenodo-rdm:react-18-uppy-e2e). I plan to do one more verification on plain InvenioRDM instance with React 18 branches |
Confirmed working also against vanilla |
* React 18 deprecates defaultProps on function components, spamming the console with deprecation notices. * Replaces `defaultProps` with ES6 default param syntax across affected components. Part of: inveniosoftware/rfcs#112
* Applies the pure-component codemod to class components that only implement render() * React imports, createRoot and defaultProps were already migrated in v5.0.0-alpha.3 * Keeps FieldLabel a class: semantic-ui-react v3 Checkbox/Radio attach a ref to their `label` element, and a plain function component would trigger "Function components cannot be given refs" warnings (e.g. in RadioField) Part of: inveniosoftware/rfcs#112 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Applies the pure-component codemod to class components that only implement render() * React imports, createRoot and defaultProps were already migrated in v5.0.0-alpha.3 * Keeps FieldLabel a class: semantic-ui-react v3 Checkbox/Radio attach a ref to their `label` element, and a plain function component would trigger "Function components cannot be given refs" warnings (e.g. in RadioField) Part of: inveniosoftware/rfcs#112
* Applies the pure-component codemod to class components that only implement render() * React imports, createRoot and defaultProps were already migrated in v5.0.0-alpha.3 * Keeps FieldLabel a class: semantic-ui-react v3 Checkbox/Radio attach a ref to their `label` element, and a plain function component would trigger "Function components cannot be given refs" warnings (e.g. in RadioField) Part of: inveniosoftware/rfcs#112
* replace TinyMCE upgrade plan with HugeRTE migration * keep react-overridable on non-breaking v1.1.0 * bump Node requirement to 22+ * document defaultProps deprecation handling * fix ESLint react18 config usage and linter script name * add invenio-vocabularies, invenio-jobs, invenio-collections * mark Formik upgrade as done, note invenio-assets RSPack PR not merged * move answered questions to resolved, fix CKEditor table and typo
❤️ Thank you for your contribution!
Description
Adds RFC framework-0100 proposing the upgrade of all Invenio JavaScript packages from React 16.13.0 to React 18.3, migration from Enzyme to React Testing Library, and optional TypeScript adoption.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: