Skip to content

Commit 0ba4bcd

Browse files
committed
yarn fix and stuff
1 parent 2550dac commit 0ba4bcd

File tree

5 files changed

+32
-24
lines changed

5 files changed

+32
-24
lines changed

dev-packages/e2e-tests/test-applications/react-19/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement,
2222
root.render(
2323
<div>
2424
<Index />
25-
</div>
25+
</div>,
2626
);

dev-packages/e2e-tests/test-applications/react-19/src/pages/Index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ const Index = () => {
2525
);
2626
};
2727

28-
function Throw({error}) {
28+
function Throw({ error }) {
2929
throw new Error(`${error} error`);
3030
}
3131

3232
class SampleErrorBoundary extends React.Component {
3333
constructor(props) {
3434
super(props);
35-
this.state = {error: null};
35+
this.state = { error: null };
3636
}
3737

3838
componentDidCatch(error, errorInfo) {
39-
this.setState({error});
39+
this.setState({ error });
4040
// no-op
4141
}
4242

packages/react/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ root.render(<App />);
4242

4343
### React 19
4444

45-
Starting with React 19, the `createRoot` and `hydrateRoot` methods expose error hooks that can be used to capture errors automatically. Use the `Sentry.reactErrorHandler` function to capture errors in the error hooks you are interested in.
45+
Starting with React 19, the `createRoot` and `hydrateRoot` methods expose error hooks that can be used to capture errors
46+
automatically. Use the `Sentry.reactErrorHandler` function to capture errors in the error hooks you are interested in.
4647

4748
```js
4849
const container = document.getElementById(“app”);
@@ -59,7 +60,8 @@ const root = createRoot(container, {
5960
root.render(<App />);
6061
```
6162

62-
If you want more finely grained control over error handling, we recommend only adding the `onUncaughtError` and `onRecoverableError` hooks and using an `ErrorBoundary` component instead of the `onCaughtError` hook.
63+
If you want more finely grained control over error handling, we recommend only adding the `onUncaughtError` and
64+
`onRecoverableError` hooks and using an `ErrorBoundary` component instead of the `onCaughtError` hook.
6365

6466
### ErrorBoundary
6567

packages/react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@types/history-5": "npm:@types/history@4.7.8",
5959
"@types/hoist-non-react-statics": "^3.3.1",
6060
"@types/node-fetch": "^2.6.0",
61-
"@types/react": "^17.0.3",
61+
"@types/react": "^18.0.0",
6262
"@types/react-router-3": "npm:@types/react-router@3.0.24",
6363
"@types/react-router-4": "npm:@types/react-router@5.1.14",
6464
"@types/react-router-5": "npm:@types/react-router@5.1.14",
@@ -67,8 +67,8 @@
6767
"history-4": "npm:history@4.6.0",
6868
"history-5": "npm:history@4.9.0",
6969
"node-fetch": "^2.6.0",
70-
"react": "19@rc",
71-
"react-dom": "19@rc",
70+
"react": "^18.0.0",
71+
"react-dom": "^18.0.0",
7272
"react-router-3": "npm:react-router@3.2.0",
7373
"react-router-4": "npm:react-router@4.1.0",
7474
"react-router-5": "npm:react-router@5.0.0",

yarn.lock

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8840,7 +8840,7 @@
88408840
dependencies:
88418841
"@types/react" "*"
88428842

8843-
"@types/react@*", "@types/react@>=16.9.0", "@types/react@^17.0.3":
8843+
"@types/react@*", "@types/react@>=16.9.0":
88448844
version "17.0.3"
88458845
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.3.tgz#ba6e215368501ac3826951eef2904574c262cc79"
88468846
integrity sha512-wYOUxIgs2HZZ0ACNiIayItyluADNbONl7kt8lkLjVK8IitMH5QMyAh75Fwhmo37r1m7L2JaFj03sIfxBVDvRAg==
@@ -8849,6 +8849,14 @@
88498849
"@types/scheduler" "*"
88508850
csstype "^3.0.2"
88518851

8852+
"@types/react@^18.0.0":
8853+
version "18.3.3"
8854+
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.3.tgz#9679020895318b0915d7a3ab004d92d33375c45f"
8855+
integrity sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==
8856+
dependencies:
8857+
"@types/prop-types" "*"
8858+
csstype "^3.0.2"
8859+
88528860
"@types/resolve@1.17.1":
88538861
version "1.17.1"
88548862
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6"
@@ -26045,12 +26053,13 @@ rc@^1.2.7, rc@^1.2.8:
2604526053
minimist "^1.2.0"
2604626054
strip-json-comments "~2.0.1"
2604726055

26048-
react-dom@19@rc:
26049-
version "19.0.0-rc-f994737d14-20240522"
26050-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-19.0.0-rc-f994737d14-20240522.tgz#992710eeed9ccc7546fd258745cff1e04a3f8659"
26051-
integrity sha512-J4CsfTSptPKkhaPbaR6n/KohQiHZTrRZ8GL4H8rbAqN/Qpy69g2MIoLBr5/PUX21ye6JxC1ZRWJFna7Xdg1pdA==
26056+
react-dom@^18.0.0:
26057+
version "18.3.1"
26058+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4"
26059+
integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==
2605226060
dependencies:
26053-
scheduler "0.25.0-rc-f994737d14-20240522"
26061+
loose-envify "^1.1.0"
26062+
scheduler "^0.23.2"
2605426063

2605526064
react-error-boundary@^3.1.0:
2605626065
version "3.1.1"
@@ -26139,11 +26148,6 @@ react-router-dom@^6.2.2:
2613926148
history "^5.2.0"
2614026149
react-router "6.3.0"
2614126150

26142-
react@19@rc:
26143-
version "19.0.0-rc-f994737d14-20240522"
26144-
resolved "https://registry.yarnpkg.com/react/-/react-19.0.0-rc-f994737d14-20240522.tgz#b400d554859940e9f4b8b6db1fd2537bd822bcc9"
26145-
integrity sha512-SeU2v5Xy6FotVhKz0pMS2gvYP7HlkF0qgTskj3JzA1vlxcb3dQjxlm9t0ZlJqcgoyI3VFAw7bomuDMdgy1nBuw==
26146-
2614726151
react@^18.0.0:
2614826152
version "18.0.0"
2614926153
resolved "https://registry.yarnpkg.com/react/-/react-18.0.0.tgz#b468736d1f4a5891f38585ba8e8fb29f91c3cb96"
@@ -27353,10 +27357,12 @@ saxes@^6.0.0:
2735327357
dependencies:
2735427358
xmlchars "^2.2.0"
2735527359

27356-
scheduler@0.25.0-rc-f994737d14-20240522:
27357-
version "0.25.0-rc-f994737d14-20240522"
27358-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0-rc-f994737d14-20240522.tgz#6bbdbf50adeb250035a26f082bf966077d264a7e"
27359-
integrity sha512-qS+xGFF7AljP2APO2iJe8zESNsK20k25MACz+WGOXPybUsRdi1ssvaoF93im2nSX2q/XT3wKkjdz6RQfbmaxdw==
27360+
scheduler@^0.23.2:
27361+
version "0.23.2"
27362+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3"
27363+
integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==
27364+
dependencies:
27365+
loose-envify "^1.1.0"
2736027366

2736127367
schema-utils@^1.0.0:
2736227368
version "1.0.0"

0 commit comments

Comments
 (0)