react-router 6.7.0 → 6.8.0-pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # `react-router`
2
2
 
3
+ ## 6.8.0-pre.1
4
+
5
+ ## 6.7.1-pre.0
6
+
7
+ ### Patch Changes
8
+
9
+ - Updated dependencies:
10
+ - `@remix-run/router@1.3.1-pre.0`
11
+
3
12
  ## 6.7.0
4
13
 
5
14
  ### Minor Changes
@@ -19,12 +28,6 @@
19
28
 
20
29
  - Ensure `useId` consistency during SSR ([#9805](https://github.com/remix-run/react-router/pull/9805))
21
30
 
22
- ## 6.6.2-pre.0
23
-
24
- ### Patch Changes
25
-
26
- - Ensure `useId` consistency during SSR ([#9805](https://github.com/remix-run/react-router/pull/9805))
27
-
28
31
  ## 6.6.1
29
32
 
30
33
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.7.0
2
+ * React Router v6.8.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -578,17 +578,23 @@ function DefaultErrorElement() {
578
578
  padding: "2px 4px",
579
579
  backgroundColor: lightgrey
580
580
  };
581
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h2", null, "Unhandled Thrown Error!"), /*#__PURE__*/React.createElement("h3", {
581
+ let devInfo = null;
582
+
583
+ if (process.env.NODE_ENV !== "production") {
584
+ devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCBF Hey developer \uD83D\uDC4B"), /*#__PURE__*/React.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own\xA0", /*#__PURE__*/React.createElement("code", {
585
+ style: codeStyles
586
+ }, "errorElement"), " props on\xA0", /*#__PURE__*/React.createElement("code", {
587
+ style: codeStyles
588
+ }, "<Route>")));
589
+ }
590
+
591
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h2", null, "Unexpected Application Error!"), /*#__PURE__*/React.createElement("h3", {
582
592
  style: {
583
593
  fontStyle: "italic"
584
594
  }
585
595
  }, message), stack ? /*#__PURE__*/React.createElement("pre", {
586
596
  style: preStyles
587
- }, stack) : null, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCBF Hey developer \uD83D\uDC4B"), /*#__PURE__*/React.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own\xA0", /*#__PURE__*/React.createElement("code", {
588
- style: codeStyles
589
- }, "errorElement"), " props on\xA0", /*#__PURE__*/React.createElement("code", {
590
- style: codeStyles
591
- }, "<Route>")));
597
+ }, stack) : null, devInfo);
592
598
  }
593
599
 
594
600
  class RenderErrorBoundary extends React.Component {