prismicio / prismic-react

React components and hooks to fetch and present Prismic content
https://prismic.io/docs/technologies/homepage-reactjs
Apache License 2.0
154 stars 40 forks source link

fix: support React 18 #138

Closed MarcMcIntosh closed 2 years ago

MarcMcIntosh commented 2 years ago

Types of changes

Description

This PR updates @prismicio/react's React peer dependency to support React 18.

The package continues to support React >= 16.8, 17, and 18.

Note: no changes to the package's code was needed. This PR merely updates dependencies and the declared peer dependency.

Checklist:

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
dist/index.js 4.43 KB (0%)
dist/index.cjs 6.31 KB (0%)
codecov-commenter commented 2 years ago

Codecov Report

Merging #138 (5b97dad) into master (50ed2f0) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #138   +/-   ##
=======================================
  Coverage   92.36%   92.36%           
=======================================
  Files          16       16           
  Lines         275      275           
  Branches       64       64           
=======================================
  Hits          254      254           
  Misses          5        5           
  Partials       16       16           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 50ed2f0...5b97dad. Read the comment docs.

aaron5670 commented 2 years ago

Looking forward for this PR 👀

angeloashmore commented 2 years ago

Thanks @MarcMcIntosh! This should be a straightforward update, so I plan to publish this sometime today or tomorrow.