Skip to content

Raise minimum React version to 18#93

Merged
agneym merged 4 commits into
masterfrom
chore/react-18-min
Apr 25, 2026
Merged

Raise minimum React version to 18#93
agneym merged 4 commits into
masterfrom
chore/react-18-min

Conversation

@agneym
Copy link
Copy Markdown
Owner

@agneym agneym commented Apr 25, 2026

Changes

  • Raise minimum React version from 16 to 18 in peer dependencies
  • Remove main field from example package (fixes Parcel serve mode error)
  • Add changeset for major version bump

Summary by CodeRabbit

  • Breaking Changes

    • Minimum supported React version is now 18.
  • Chores

    • Updated runtime and development dependencies including component libraries, code editor tools, and testing frameworks.
    • Removed unnecessary stylesheet imports from example project.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 25, 2026

🦋 Changeset detected

Latest commit: 756ce7c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@agney/playground Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 25, 2026

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

The PR records a major version bump for the playground package, raises the minimum React peer dependency to version 18, removes configuration from the example package, and updates multiple runtime and development dependencies while adapting the Prism renderer integration to new API exports.

Changes

Cohort / File(s) Summary
Release Configuration
.changeset/raise-react-18.md
Records major version release with React 18 as minimum supported version.
Example Package Cleanup
example/package.json, example/src/index.js
Removes main field from package configuration and removes @reach/tabs stylesheet import.
Playground Dependencies
playground/package.json
Upgrades runtime dependencies (@reach/auto-id, @reach/tabs, prism-react-renderer, react-simple-code-editor) and dev tooling (@rollup/plugin-babel, @testing-library/react, jsdom, tsdown, vitest). Updates React peer dependencies from >=16 to >=18.
Prism Renderer Integration
playground/src/Editor/EditorSetup.tsx
Updates Prism renderer to use named exports (Highlight, themes) instead of default props spreading; selects themes.nightOwl explicitly.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

Poem

🐰 A leap to React eighteen we make,
Dependencies dance, improvements awake!
Prism shines bright with exports so new,
Clean up the old, the playground shines through! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately summarizes the main change—raising the minimum React version to 18, which is reflected across all modified files including the changeset, peer dependencies, and code updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/react-18-min

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@agneym agneym marked this pull request as ready for review April 25, 2026 07:27
@agneym agneym self-assigned this Apr 25, 2026
@agneym agneym merged commit dacf5c9 into master Apr 25, 2026
1 of 2 checks passed
@agneym agneym deleted the chore/react-18-min branch April 25, 2026 07:30
@github-actions github-actions Bot mentioned this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant