Skip to content

Commit fb2ef4c

Browse files
authored
React Router 6.4-pre.8 (#936)
* latest prerelease. fixes bugs that prevented us from upgrading from prev prerelease * ../.. workaround no longer needed * actually pre.8 * update comment about absolute paths in OrgLayout
1 parent 00ddf40 commit fb2ef4c

File tree

4 files changed

+19
-24
lines changed

4 files changed

+19
-24
lines changed

app/layouts/OrgLayout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ import {
1818
PageContainer,
1919
} from './helpers'
2020

21-
// absolute paths are a workaround for
22-
// https://github.com/remix-run/react-router/pull/8985 not being released yet
21+
// We need to use absolute paths here because sometimes this layout is rendered
22+
// at `/orgs/:orgName` and other times it's rendered at `/orgs/:orgName/access`.
23+
// Relative paths would resolve differently in the two locations.
2324

2425
const OrgLayout = () => {
2526
const { orgName } = useParams('orgName')

app/pages/project/disks/DisksPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function AttachedInstance(props: {
3232
})
3333
const instance = instances?.items.find((i) => i.id === props.instanceId)
3434
return instance ? (
35-
<Link className="text-accent" to={`../../instances/${instance.name}`}>
35+
<Link className="text-accent" to={`../instances/${instance.name}`}>
3636
{instance.name}
3737
</Link>
3838
) : null

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"react-is": "^17.0.2",
4949
"react-popper": "^2.2.5",
5050
"react-query": "^4.0.0-alpha.20",
51-
"react-router-dom": "^6.4.0-pre.2",
51+
"react-router-dom": "^6.4.0-pre.8",
5252
"react-transition-group": "^4.4.1",
5353
"recharts": "^2.1.6",
5454
"tiny-invariant": "^1.2.0",

yarn.lock

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,10 +2199,10 @@
21992199
prop-types "^15.7.2"
22002200
tslib "^2.3.0"
22012201

2202-
"@remix-run/router@^0.1.0":
2203-
version "0.1.0"
2204-
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-0.1.0.tgz#9dee1610f5ba730e4c67e5de517912f71c627031"
2205-
integrity sha512-mK2wZWAFsijTGIk7ZhKvEAzU7qIS6F6RhPy5AiEosaEs3mB3J2NvUWRoN3W74V+5Jju/AisT5NaM2pIbnfGXWg==
2202+
"@remix-run/router@0.2.0-pre.3":
2203+
version "0.2.0-pre.3"
2204+
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-0.2.0-pre.3.tgz#2864cf275433ec39d2370a1aec28a5957060f47a"
2205+
integrity sha512-/1vRiMh8j31PBgLgB2lqcwDDEBEwsnucOouZ8GvJTRNHULkPOU3kvQ1ZUpt9IPd1lS5AVC93I9pVLnFhlNA4Mw==
22062206

22072207
"@rollup/pluginutils@^4.1.2":
22082208
version "4.1.2"
@@ -12027,12 +12027,12 @@ react-router-dom@^6.0.0:
1202712027
history "^5.2.0"
1202812028
react-router "6.2.1"
1202912029

12030-
react-router-dom@^6.4.0-pre.2:
12031-
version "6.4.0-pre.2"
12032-
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.4.0-pre.2.tgz#6c34e3a96db3712a79dd78416b01dbb40f18aae7"
12033-
integrity sha512-Y6tOV4zs7uS+7pTbMoOcMWP9H5hVKINIyLIO1oWVVQEKv2KDEQx0njyPnhso4LkbOK6l7JhUMNO5DLwMqZVWFQ==
12030+
react-router-dom@^6.4.0-pre.8:
12031+
version "6.4.0-pre.8"
12032+
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.4.0-pre.8.tgz#1f784fa09719801250070431703dd02c5fdcde6e"
12033+
integrity sha512-5hxQdiPOG98YOANbJ8IBUKbRgU6k4/TSX4VyO6jRWoG6KY0K2EG5wjEZgZ0tlAN9fXFgnHsro/HKi/r+HxugAg==
1203412034
dependencies:
12035-
react-router "6.4.0-pre.2"
12035+
react-router "6.4.0-pre.8"
1203612036

1203712037
react-router@6.2.1, react-router@^6.0.0:
1203812038
version "6.2.1"
@@ -12041,13 +12041,12 @@ react-router@6.2.1, react-router@^6.0.0:
1204112041
dependencies:
1204212042
history "^5.2.0"
1204312043

12044-
react-router@6.4.0-pre.2:
12045-
version "6.4.0-pre.2"
12046-
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.4.0-pre.2.tgz#f80856faae0a1163ca58aad6ddf82e00a03264a3"
12047-
integrity sha512-JFwatrS+QFmyoOrjUNpHFeAO72Y1FUZ9wOfQoCm1a6cRglAbLXAdKll/WEGUtGUb3LwLx3uAZ57kPXHQX5vutw==
12044+
react-router@6.4.0-pre.8:
12045+
version "6.4.0-pre.8"
12046+
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.4.0-pre.8.tgz#90ce4cc590b453fc26ad2d131f51d908783c9091"
12047+
integrity sha512-xwt2s9jW5NaakymlSRG0hZoGda6E/Skfgmj/4vlwvRX/kqoO8jU0g+Vi3sHDCatH/V+GjDyTQkdMEDm8qGsBsQ==
1204812048
dependencies:
12049-
"@remix-run/router" "^0.1.0"
12050-
use-sync-external-store "1.1.0"
12049+
"@remix-run/router" "0.2.0-pre.3"
1205112050

1205212051
react-sizeme@^3.0.1:
1205312052
version "3.0.2"
@@ -14245,11 +14244,6 @@ use-sidecar@^1.0.1, use-sidecar@^1.0.5:
1424514244
detect-node-es "^1.1.0"
1424614245
tslib "^1.9.3"
1424714246

14248-
use-sync-external-store@1.1.0:
14249-
version "1.1.0"
14250-
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.1.0.tgz#3343c3fe7f7e404db70f8c687adf5c1652d34e82"
14251-
integrity sha512-SEnieB2FPKEVne66NpXPd1Np4R1lTNKfjuy3XdIoPQKYBAFdzbzSZlSn1KJZUiihQLQC5Znot4SBz1EOTBwQAQ==
14252-
1425314247
use@^3.1.0:
1425414248
version "3.1.1"
1425514249
resolved "https://registry.npmjs.org/use/-/use-3.1.1.tgz"

0 commit comments

Comments
 (0)