feat: Adds React 18 and 19 migration plugin#1339
feat: Adds React 18 and 19 migration plugin#1339SaravananRajaraman wants to merge 1 commit intogithub:stagedfrom
Conversation
🔍 Skill Validator Results21 resource(s) checked | ✅ All checks passed Full output
|
b36a265 to
9bf3358
Compare
There was a problem hiding this comment.
Pull request overview
Adds two new Copilot CLI plugins (react18-upgrade, react19-upgrade) plus a set of React 18/19 migration skills and orchestrator agents to guide audits, dependency upgrades, source migrations, and test-suite modernization.
Changes:
- Introduces React 18 and React 19 upgrade plugins (plugin metadata + READMEs) and registers them in docs/marketplace lists.
- Adds multiple React migration skills (batching, lifecycle, legacy context, string refs, dependency compatibility, React 19 patterns) with reference guides.
- Adds React 18/19 agent definitions for audit/dep/migrate/test orchestration.
Reviewed changes
Copilot reviewed 50 out of 50 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/react19-test-patterns/SKILL.md | React 19 test-migration patterns skill content. |
| skills/react19-source-patterns/SKILL.md | React 19 source-migration patterns and quick reference table. |
| skills/react19-source-patterns/references/api-migrations.md | Detailed React 19 API migration reference examples. |
| skills/react19-concurrent-patterns/SKILL.md | React 19 concurrent APIs guidance and “preserve vs adopt” rules. |
| skills/react19-concurrent-patterns/references/react19-use.md | Reference for the React 19 use() pattern. |
| skills/react19-concurrent-patterns/references/react19-suspense.md | Reference for Suspense-for-data patterns in React 19. |
| skills/react19-concurrent-patterns/references/react19-actions.md | Reference for React 19 Actions-related hooks/patterns. |
| skills/react18-string-refs/SKILL.md | React 18 string refs migration skill. |
| skills/react18-string-refs/references/patterns.md | Detailed before/after patterns for string refs. |
| skills/react18-lifecycle-patterns/SKILL.md | React 18 unsafe lifecycle migration decision guide. |
| skills/react18-lifecycle-patterns/references/componentWillUpdate.md | Reference for migrating componentWillUpdate. |
| skills/react18-lifecycle-patterns/references/componentWillReceiveProps.md | Reference for migrating componentWillReceiveProps. |
| skills/react18-lifecycle-patterns/references/componentWillMount.md | Reference for migrating componentWillMount. |
| skills/react18-legacy-context/SKILL.md | React 18 legacy context migration skill. |
| skills/react18-legacy-context/references/single-context.md | Full example for migrating a single legacy context. |
| skills/react18-legacy-context/references/multi-context.md | Guidance for multiple legacy contexts in one codebase. |
| skills/react18-legacy-context/references/context-file-template.md | Template for new context module files. |
| skills/react18-enzyme-to-rtl/SKILL.md | Enzyme → RTL migration skill for React 18 upgrades. |
| skills/react18-enzyme-to-rtl/references/enzyme-api-map.md | Detailed Enzyme-to-RTL API mapping. |
| skills/react18-enzyme-to-rtl/references/async-patterns.md | Async testing patterns for RTL migrations. |
| skills/react18-dep-compatibility/SKILL.md | React dependency compatibility matrix and decision tree. |
| skills/react18-dep-compatibility/references/router-migration.md | Scope assessment for react-router v5→v6 migration. |
| skills/react18-dep-compatibility/references/apollo-details.md | Apollo client compatibility notes for React 18+. |
| skills/react18-batching-patterns/SKILL.md | React 18 automatic batching diagnosis/migration guidance. |
| skills/react18-batching-patterns/references/flushSync-guide.md | flushSync usage guidance. |
| skills/react18-batching-patterns/references/batching-categories.md | Categorized before/after batching-fix patterns. |
| skills/react-audit-grep-patterns/SKILL.md | Grep-based audit command library skill. |
| skills/react-audit-grep-patterns/references/test-scans.md | Test-specific grep scans used during audits. |
| skills/react-audit-grep-patterns/references/react19-scans.md | React 19 audit scan command reference. |
| skills/react-audit-grep-patterns/references/react18-scans.md | React 18.3.1 audit scan command reference. |
| skills/react-audit-grep-patterns/references/dep-scans.md | Dependency/peer-conflict scan reference. |
| plugins/react19-upgrade/README.md | User-facing README for the React 19 upgrade plugin. |
| plugins/react19-upgrade/.github/plugin/plugin.json | Plugin manifest for react19-upgrade. |
| plugins/react18-upgrade/README.md | User-facing README for the React 18 upgrade plugin. |
| plugins/react18-upgrade/.github/plugin/plugin.json | Plugin manifest for react18-upgrade. |
| docs/README.skills.md | Registers newly added skills in docs. |
| docs/README.plugins.md | Registers newly added plugins in docs. |
| agents/react19-test-guardian.agent.md | React 19 test-suite fix/verification agent definition. |
| agents/react19-migrator.agent.md | React 19 source migration agent definition. |
| agents/react19-dep-surgeon.agent.md | React 19 dependency upgrade agent definition. |
| agents/react19-commander.agent.md | React 19 orchestrator agent definition. |
| agents/react19-auditor.agent.md | React 19 audit agent definition. |
| agents/react18-test-guardian.agent.md | React 18 test-suite fix/verification agent definition updates. |
| agents/react18-dep-surgeon.agent.md | React 18 dependency upgrade agent definition updates. |
| agents/react18-commander.agent.md | React 18 orchestrator agent definition updates. |
| agents/react18-class-surgeon.agent.md | React 18 class-component migration agent definition updates. |
| agents/react18-batching-fixer.agent.md | React 18 batching regression fixer agent definition updates. |
| .github/plugin/marketplace.json | Adds react18/react19 plugins to marketplace catalog. |
Comments suppressed due to low confidence (1)
skills/react18-dep-compatibility/SKILL.md:101
- The markdown code fence opened for the JSON example is never closed, which will break formatting for the remainder of the rendered skill. Please add the missing closing ``` and include (or remove) the intended example content.
- The conflict is only a peer dep declaration mismatch (not actual API incompatibility)
Document every `--legacy-peer-deps` usage:
```json
b355eab to
911334d
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 50 out of 50 changed files in this pull request and generated 5 comments.
Comments suppressed due to low confidence (1)
skills/react18-dep-compatibility/SKILL.md:104
- The JSON code fence is opened but never populated or closed, leaving an empty ```json block at the end of the file. Either provide the intended example content and close the fence, or remove the dangling code block.
- The conflict is only a peer dep declaration mismatch (not actual API incompatibility)
Document every `--legacy-peer-deps` usage:
```json
b600e04 to
ea6db71
Compare
aaronpowell
left a comment
There was a problem hiding this comment.
Looks like something has gone wrong with the PR as there's a bunch of changes to the Learning Hub section which seems incorrect for the scope of the PR.
64c18d4 to
179a129
Compare
179a129 to
64c18d4
Compare
SaravananRajaraman
left a comment
There was a problem hiding this comment.
Updated the changes
64c18d4 to
d957332
Compare
cb6aec5 to
c8c683d
Compare
c8c683d to
d817105
Compare
- Adds React 18 and 19 migration orchestration plugins - Introduces comprehensive upgrade toolkits for migrating legacy React 16/17 and 18 codebases to React 18.3.1 and 19, respectively. Each plugin bundles specialized agents and skills for exhaustive audit, dependency management, class/component API migration, test suite transformation, and batching regression fixes. - The React 18 toolkit targets class-component-heavy apps, ensures safe lifecycle and context transitions, resolves dependency blockers, and fully automates test migrations including Enzyme removal. The React 19 toolkit addresses breaking changes such as removal of legacy APIs, defaultProps on function components, and forwardRef, while enforcing a gated, memory-resumable migration pipeline. - Both plugins update documentation, plugin registries, and skill references to support reliable, repeatable enterprise-scale React migrations.
ea094dd to
7b89fb9
Compare
Adding Agent Plugin with Skills and Custom agent orchestrator to support React 18 and 19 migration.
Introduces comprehensive React 18 and React 19 migration plugins with specialized agents and skills for code auditing, dependency upgrades, source migration, and test suite modernization.
Targets legacy class-component-heavy and modern codebases, handling breaking API removals, automatic batching, context migration, string refs, and test framework transitions (including Enzyme to RTL).
Improves upgrade safety, repeatability, and code quality by providing memory checkpointing, reference migration patterns, and strict validation gates for zero deprecation warnings and test failures.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.stagedbranch for this pull request.Description
Type of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.