Skip to content

Commit 23ab42e

Browse files
authored
chore: release 1.2.0 (#94)
1 parent 5acf92b commit 23ab42e

45 files changed

Lines changed: 3090 additions & 3578 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module.exports = {
33
extends: [
44
require.resolve('@vercel/style-guide/eslint/browser'),
55
require.resolve('@vercel/style-guide/eslint/typescript'),
6-
require.resolve('@vercel/style-guide/eslint/jest'),
76
],
87
env: {
98
node: true,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
dist
33
.DS_Store
44
.vscode
5+
.vercel

apps/nextjs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
},
1111
"dependencies": {
1212
"@vercel/speed-insights": "workspace:*",
13-
"next": "15.0.1",
14-
"react": "19.0.0-rc-69d4b800-20241021",
15-
"react-dom": "19.0.0-rc-69d4b800-20241021"
13+
"next": "latest",
14+
"react": "latest",
15+
"react-dom": "latest"
1616
},
1717
"devDependencies": {
18-
"@playwright/test": "1.37.1"
18+
"@playwright/test": "1.49.0"
1919
}
2020
}

apps/nextjs/playwright.config.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

apps/remix/.eslintrc.cjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/remix/app/entry.client.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

apps/remix/app/entry.server.tsx

Lines changed: 0 additions & 137 deletions
This file was deleted.

apps/remix/app/root.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
import { cssBundleHref } from '@remix-run/css-bundle';
2-
import type { LinksFunction } from '@remix-run/node';
31
import {
42
Links,
5-
LiveReload,
63
Meta,
74
Outlet,
85
Scripts,
96
ScrollRestoration,
107
} from '@remix-run/react';
118
import { SpeedInsights } from '@vercel/speed-insights/remix';
129

13-
export const links: LinksFunction = () => [
14-
...(cssBundleHref ? [{ rel: 'stylesheet', href: cssBundleHref }] : []),
15-
];
16-
17-
export default function App() {
10+
export function Layout({ children }: { children: React.ReactNode }) {
1811
return (
1912
<html lang="en">
2013
<head>
@@ -24,12 +17,15 @@ export default function App() {
2417
<Links />
2518
</head>
2619
<body>
27-
<Outlet />
20+
{children}
2821
<ScrollRestoration />
2922
<Scripts />
30-
<LiveReload />
3123
<SpeedInsights />
3224
</body>
3325
</html>
3426
);
3527
}
28+
29+
export default function App() {
30+
return <Outlet />;
31+
}

apps/remix/app/routes/_index.tsx

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,12 @@
1-
import type { MetaFunction } from '@remix-run/node';
1+
import { Link } from '@remix-run/react';
22

3-
export const meta: MetaFunction = () => {
4-
return [
5-
{ title: 'New Remix App' },
6-
{ name: 'description', content: 'Welcome to Remix!' },
7-
];
8-
};
9-
10-
export default function Index() {
3+
export default function Home() {
114
return (
12-
<div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.8' }}>
13-
<h1>Welcome to Remix</h1>
14-
<ul>
15-
<li>
16-
<a
17-
target="_blank"
18-
href="https://remix.run/tutorials/blog"
19-
rel="noreferrer"
20-
>
21-
15m Quickstart Blog Tutorial
22-
</a>
23-
</li>
24-
<li>
25-
<a
26-
target="_blank"
27-
href="https://remix.run/tutorials/jokes"
28-
rel="noreferrer"
29-
>
30-
Deep Dive Jokes App Tutorial
31-
</a>
32-
</li>
33-
<li>
34-
<a target="_blank" href="https://remix.run/docs" rel="noreferrer">
35-
Remix Docs
36-
</a>
37-
</li>
38-
</ul>
39-
</div>
5+
<main>
6+
<h1>Speed Insights Demo</h1>
7+
<Link to="/blog/henri">About Henri</Link>
8+
<br />
9+
<Link to="/blog/bruno">About Bruno</Link>
10+
</main>
4011
);
4112
}
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import { Link } from '@remix-run/react';
1+
import { json, type LoaderFunctionArgs } from '@remix-run/node';
2+
import { Link, useLoaderData } from '@remix-run/react';
3+
4+
export const loader = async ({ params }: LoaderFunctionArgs) => {
5+
return json({ slug: params.slug });
6+
};
27

38
export default function BlogPage() {
9+
const { slug } = useLoaderData<typeof loader>();
410
return (
511
<div>
612
<h1>Blog</h1>
7-
<p>Blog content goes here</p>
8-
<Link to="/blog/first">First post</Link>
9-
<Link to="/blog/second">First second</Link>
13+
<p>We don&apos;t talk about {slug}</p>
14+
<br />
15+
<Link to="/">Back</Link>
1016
</div>
1117
);
1218
}

0 commit comments

Comments
 (0)