rpc404 / playpoint-user

Application for Beta Version of Playpoint Prediction Pool Platform. V1.0 soon to be released. ✨
https://playpoint.ai
MIT License
4 stars 3 forks source link

Update dependency react-error-boundary to v4 #248

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-error-boundary ^3.1.4 -> ^4.0.0 age adoption passing confidence

Release Notes

bvaughn/react-error-boundary (react-error-boundary) ### [`v4.1.2`](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.1.1...4.1.2) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.1.1...4.1.2) ### [`v4.1.1`](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.1.0...4.1.1) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.1.0...4.1.1) ### [`v4.1.0`](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.13...4.1.0) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.13...4.1.0) ### [`v4.0.13`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.13) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.12...4.0.13) Removed references to ESLint config `kcd-scripts` from `package.json` ### [`v4.0.12`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.12) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.11...4.0.12) - Support null fallback prop ([#​169](https://redirect.github.com/bvaughn/react-error-boundary/issues/169)) ### [`v4.0.11`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.11) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.10...4.0.11) - Re-throw original error in the event that no fallback is specified ([#​160](https://redirect.github.com/bvaughn/react-error-boundary/issues/160)) - Improved exported prop types def ([#​152](https://redirect.github.com/bvaughn/react-error-boundary/issues/152)) - Bundle built with Preconstruct ([#​144](https://redirect.github.com/bvaughn/react-error-boundary/issues/144), [#​149](https://redirect.github.com/bvaughn/react-error-boundary/issues/149), [`9b7b15b`](https://redirect.github.com/bvaughn/react-error-boundary/commit/9b7b15bc29829b2a145c047ef188fecb90c9894e)) ### [`v4.0.10`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.10) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.9...4.0.10) - Target Safari 12+ compatibility (by removing optional chaining operator and default parameters) ### [`v4.0.9`](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.8...4.0.9) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.8...4.0.9) ### [`v4.0.8`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.8) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.7...4.0.8) - [144](https://redirect.github.com/bvaughn/react-error-boundary/pull/144): Build release bundle with Preconstruct ### [`v4.0.7`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.7) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.6...4.0.7) \*Replaced post-processing `"use client"` insertion step with a custom Parcel plug-in. This should hopefully produce better source maps. ### [`v4.0.6`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.6) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.5...4.0.6) - Removed arrow function syntax to support older versions of Safari ### [`v4.0.5`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.5) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.4...4.0.5) Move `"use client"` directive to top of the bundled file. ### [`v4.0.4`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.4) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.3...4.0.4) README changes only ### [`v4.0.3`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.3) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.2...4.0.3) - `withErrorBoundary` forwards refs - Add `"use client"` directive ### [`v4.0.2`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.2) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.1...4.0.2) Fix broken TypeScript definitions file ([#​133](https://redirect.github.com/bvaughn/react-error-boundary/issues/133), [https://github.com/parcel-bundler/parcel/issues/8908](https://redirect.github.com/parcel-bundler/parcel/issues/8908)) ### [`v4.0.1`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.1) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/4.0.0...4.0.1) - Render `ErrorBoundaryContext` around fallback UI as well, so the `useErrorBoundary` hook could be used within the fallback component to reset the boundary. For example: ```js import { useErrorBoundary } from "react-error-boundary"; function ErrorFallback({ error }) { const { resetBoundary } = useErrorBoundary(); return (

Something went wrong:

{error.message}
); } ``` See this demo: https://codesandbox.io/s/nostalgic-browser-e9lpmf ### [`v4.0.0`](https://redirect.github.com/bvaughn/react-error-boundary/releases/tag/4.0.0) [Compare Source](https://redirect.github.com/bvaughn/react-error-boundary/compare/v3.1.4...4.0.0) - Replace `useErrorHandler` hook with `useErrorBoundary`; can be used to trigger an error boundary or dismiss one - Merge `onReset` and `onResetKeys` props; pass "details" object explaining the cause of the reset *** ### Why did the `useErrorHandler` hook change? The old hook had two design flaws, both related to the `givenError` parameter: 1. All the hook did was `throw` this value. This seemed unnecessary, because if a component already has a reference to an error during render, it can just `throw` the value itself. - It would not properly re-throw `null` or `undefined` values. (Although an edge case, JavaScript enables throwing *any* values/types.) If you were using the `givenError` functionality– you can now just *throw the value* directly instead. ```js // Before function Greeting() { const [name, setName] = React.useState('') const {greeting, error} = useGreeting(name) useErrorHandler(error) ``` ```js // After function Greeting() { const [name, setName] = React.useState('') const {greeting, error} = useGreeting(name) if (error) { throw error; } ``` ### How can I use the new `useErrorHandler` hook? #### Show the nearest error boundary from an event handler React only handles errors thrown during render or during component lifecycle methods (e.g. effects and did-mount/did-update). Errors thrown in event handlers, or after async code has run, will not be caught. This hook can be used to pass those errors to the nearest error boundary: ```js import { useErrorBoundary } from "react-error-boundary"; function Example() { const { showBoundary } = useErrorBoundary(); useEffect(() => { fetchGreeting(name).then( response => { // Set data in state and re-render }, error => { // Show error boundary showBoundary(error); } ); }); // Render ... } ``` #### Dismiss the nearest error boundary A fallback component can use this hook to request the nearest error boundary retry the render that original failed. ```js import { useErrorBoundary } from "react-error-boundary"; function ErrorFallback({ error }) { const { resetBoundary } = useErrorBoundary(); return (

Something went wrong:

{error.message}
); } ```

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
playpoint-user ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 21, 2023 at 6:31PM (UTC)