Skip to content

rfc: add react v16 to v18 migration proposal - #112

Open
mirekys wants to merge 6 commits into
inveniosoftware:masterfrom
oarepo:oarepo-contribution-react-rfc
Open

mirekys wants to merge 6 commits into
inveniosoftware:masterfrom
oarepo:oarepo-contribution-react-rfc

Conversation

@mirekys

@mirekys mirekys commented Mar 31, 2026 •

Copy link
Copy Markdown

❤️ 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:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@mirekys
mirekys force-pushed the oarepo-contribution-react-rfc branch 3 times, most recently from 3df9456 to 4b7e306 Compare April 2, 2026 06:59
@mirekys
mirekys force-pushed the oarepo-contribution-react-rfc branch 2 times, most recently from acda575 to b389b90 Compare April 7, 2026 15:08
@mirekys mirekys added this to v15 Apr 8, 2026
@mirekys mirekys moved this to Triage in v15 Apr 8, 2026
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.
@mirekys
mirekys force-pushed the oarepo-contribution-react-rfc branch from b389b90 to b7e351c Compare April 8, 2026 12:09
mirekys added a commit to oarepo/invenio-rdm-records that referenced this pull request Apr 15, 2026
* 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.
mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request May 4, 2026
* 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
mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request May 6, 2026
* 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
@ptamarit

ptamarit commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

@kpsherva

Copy link
Copy Markdown
Contributor

hello! do you have in mind a date for integrating these PRs? is this a finalised list?

@utnapischtim

Copy link
Copy Markdown

next steps:

@mirekys is checking about uppy upload, and the react-invenio-forms PR

then we are safe to start the release chain

mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request Nov 4, 2026
* 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
mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request Nov 4, 2026
* 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
mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request Nov 4, 2026
* 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
@mirekys

mirekys commented Nov 4, 2026

Copy link
Copy Markdown
Author

next steps:

@mirekys is checking about uppy upload, and the react-invenio-forms PR

then we are safe to start the release chain

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

@mirekys

mirekys commented Nov 6, 2026

Copy link
Copy Markdown
Author

next steps:
@mirekys is checking about uppy upload, and the react-invenio-forms PR
then we are safe to start the release chain

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 invenio-cli init rdm -c master

mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request Nov 9, 2026
* 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
mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request Nov 9, 2026
* 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>
mirekys added a commit to oarepo/react-invenio-forms that referenced this pull request Nov 9, 2026
* 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
utnapischtim pushed a commit to inveniosoftware/react-invenio-forms that referenced this pull request Nov 9, 2026
* 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
@github-project-automation github-project-automation Bot moved this from Triage to To release 🤖 in v15 Nov 10, 2026
@ptamarit ptamarit reopened this Nov 12, 2026
Comment thread rfcs/framework-0112-react-upgrade.md Resolved
Comment thread rfcs/framework-0100-react-upgrade.md Resolved
Miroslav Bauer added 2 commits November 18, 2026 15:32
* 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
@mirekys
mirekys requested a review from ptamarit November 18, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To release 🤖

Development

Successfully merging this pull request may close these issues.

4 participants