Skip to content

Commit bb9028f

Browse files
committed
chore: update dependencies
1 parent a964dac commit bb9028f

7 files changed

Lines changed: 723 additions & 571 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@
2222
},
2323
"devDependencies": {
2424
"@changesets/cli": "^2.31.0",
25-
"@commitlint/cli": "^20.5.2",
26-
"@commitlint/config-conventional": "^20.5.0",
27-
"@resolid/config": "^5.3.12",
25+
"@commitlint/cli": "^20.5.3",
26+
"@commitlint/config-conventional": "^20.5.3",
27+
"@resolid/config": "^5.3.14",
2828
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
2929
"@tailwindcss/language-server": "^0.14.29",
3030
"@types/node": "^24.12.2",
3131
"eslint-plugin-react-hooks": "^7.1.1",
32-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.3",
32+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.10.0",
3333
"lefthook": "^2.1.6",
34-
"oxfmt": "^0.47.0",
35-
"oxlint": "^1.62.0",
34+
"oxfmt": "^0.48.0",
35+
"oxlint": "^1.63.0",
3636
"oxlint-tsgolint": "^0.22.1",
3737
"typescript": "^6.0.3"
3838
},
3939
"engines": {
4040
"node": "^22.13.0 || >=24",
4141
"pnpm": "10.x"
4242
},
43-
"packageManager": "pnpm@10.33.2",
43+
"packageManager": "pnpm@10.33.3",
4444
"pnpm": {
4545
"onlyBuiltDependencies": [
4646
"esbuild",

packages/react-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"@types/react-dom": "^19.2.3",
6363
"@vitejs/plugin-react": "^6.0.1",
6464
"@vitest/pretty-format": "^4.1.5",
65-
"axe-core": "^4.11.3",
65+
"axe-core": "^4.11.4",
6666
"babel-plugin-react-compiler": "^1.0.0",
67-
"jsdom": "^29.1.0",
67+
"jsdom": "^29.1.1",
6868
"react": "^19.2.5",
6969
"react-dom": "^19.2.5",
7070
"tsdown": "^0.21.10",

pnpm-lock.yaml

Lines changed: 691 additions & 488 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
},
1313
"dependencies": {
1414
"@mdx-js/react": "^3.1.1",
15-
"@react-router/node": "^7.14.2",
15+
"@react-router/node": "^7.15.0",
1616
"@resolid/react-ui": "workspace:^",
1717
"@resolid/utils": "^1.3.7",
1818
"@tailwindcss/typography": "^0.5.19",
1919
"@vercel/analytics": "^2.0.1",
20-
"isbot": "^5.1.39",
20+
"isbot": "^5.1.40",
2121
"minisearch": "^7.2.0",
2222
"react": "^19.2.5",
2323
"react-dom": "^19.2.5",
24-
"react-router": "^7.14.2",
24+
"react-router": "^7.15.0",
2525
"tailwindcss": "^4.2.4"
2626
},
2727
"devDependencies": {
2828
"@mdx-js/rollup": "^3.1.1",
29-
"@react-router/dev": "^7.14.2",
30-
"@resolid/config": "^5.3.12",
31-
"@resolid/dev": "^0.4.1",
29+
"@react-router/dev": "^7.15.0",
30+
"@resolid/config": "^5.3.14",
31+
"@resolid/dev": "^0.5.0",
3232
"@rolldown/plugin-babel": "^0.2.3",
3333
"@shikijs/rehype": "^4.0.2",
3434
"@tailwindcss/vite": "^4.2.4",
@@ -49,7 +49,7 @@
4949
"remove-markdown": "^0.6.3",
5050
"unist-util-visit": "^5.1.0",
5151
"vite": "^8.0.10",
52-
"yaml": "^2.8.3"
52+
"yaml": "^2.8.4"
5353
},
5454
"engines": {
5555
"node": "^22.13.0 || >=24"

website/src/components/history-link.tsx

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,19 @@
1-
import { Button, type ButtonProps, type PrimitiveProps } from "@resolid/react-ui";
21
import {
3-
Link,
4-
type LinkProps,
5-
NavLink,
6-
type NavLinkProps,
7-
type Path,
8-
useLocation,
9-
useNavigate,
10-
} from "react-router";
11-
12-
export function HistoryLink(props: LinkProps) {
13-
const { state, to, ...rest } = props;
14-
15-
return <Link to={to} state={{ ...state, previous: true }} {...rest} />;
16-
}
17-
18-
export function HistoryNavLink(props: NavLinkProps) {
19-
const { state, to, ...rest } = props;
2+
HistoryLink,
3+
HistoryNavLink,
4+
useHistoryBack,
5+
type UseHistoryBackOptions,
6+
} from "@resolid/dev/router";
7+
import { Button, type ButtonProps, type PrimitiveProps } from "@resolid/react-ui";
208

21-
return <NavLink to={to} state={{ ...state, previous: true }} {...rest} />;
22-
}
9+
export { HistoryLink, HistoryNavLink };
2310

24-
export type HistoryBackProps = ButtonProps & { backTo?: string | Partial<Path> };
11+
export type HistoryBackProps = ButtonProps & UseHistoryBackOptions;
2512

2613
export function HistoryBack(props: PrimitiveProps<"button", HistoryBackProps, "children">) {
2714
const { onClick, backTo = "/", ...rest } = props;
2815

29-
const navigate = useNavigate();
30-
const { state } = useLocation();
31-
32-
const historyBack = async () => {
33-
if (state?.previous) {
34-
await navigate(-1);
35-
} else {
36-
await navigate(backTo);
37-
}
38-
};
16+
const historyBack = useHistoryBack(backTo);
3917

4018
return (
4119
<Button

website/src/components/route-process-bar.tsx

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
1+
import { useRouteProgress } from "@resolid/dev/router";
12
import { tx } from "@resolid/react-ui";
2-
import { useEffect, useRef, useState } from "react";
3-
import { useNavigation } from "react-router";
43

54
export function RouteProcessBar() {
6-
const transition = useNavigation();
7-
const active = transition.state !== "idle";
8-
9-
const ref = useRef<HTMLDivElement>(null);
10-
const [animating, setAnimating] = useState(false);
11-
12-
useEffect(() => {
13-
if (!ref.current) {
14-
return;
15-
}
16-
17-
void Promise.allSettled(ref.current.getAnimations().map(({ finished }) => finished)).then(
18-
() => {
19-
if (!active) {
20-
setAnimating(false);
21-
}
22-
},
23-
);
24-
25-
const id = active ? setTimeout(() => setAnimating(true), 100) : null;
26-
27-
return () => {
28-
if (id) {
29-
clearTimeout(id);
30-
}
31-
};
32-
}, [active]);
5+
const { ref, active, animating, state } = useRouteProgress();
336

347
return (
358
<div
@@ -42,9 +15,9 @@ export function RouteProcessBar() {
4215
className={tx(
4316
"h-full transition-[width,background-image] duration-500",
4417
"bg-linear-to-r from-bg-primary-emphasis to-bg-primary-pressed",
45-
transition.state === "idle" && (animating ? "w-full" : "w-0 opacity-0 transition-none"),
46-
transition.state === "submitting" && "w-4/12",
47-
transition.state === "loading" && "w-10/12",
18+
state === "idle" && (animating ? "w-full" : "w-0 opacity-0 transition-none"),
19+
state === "submitting" && "w-4/12",
20+
state === "loading" && "w-10/12",
4821
)}
4922
/>
5023
</div>

website/src/routes/docs/_mdx/_layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ export const meta: Route.MetaFunction = mergeMeta(({ loaderData }) => [
3030
},
3131
]);
3232

33-
export const loader = async ({ request }: Route.LoaderArgs) => {
34-
const { pathname } = new URL(request.url);
35-
36-
const meta = await getMdxMeta(trimStart(pathname, "/"));
33+
export const loader = async ({ url }: Route.LoaderArgs) => {
34+
const meta = await getMdxMeta(trimStart(url.pathname, "/"));
3735

3836
if (meta == null) {
3937
httpNotFound();

0 commit comments

Comments
 (0)