Skip to content

Commit

Permalink
Upgrade Remix and turn on all the flags
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Aug 16, 2024
1 parent b7559c4 commit 3cbd79f
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 72 deletions.
1 change: 1 addition & 0 deletions app/routes/_extras.blog.$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
let siteUrl = requestUrl.protocol + "//" + requestUrl.host;

let post = await getBlogPost(slug);

return json(
{ siteUrl, post },
{ headers: { "Cache-Control": CACHE_CONTROL.DEFAULT } },
Expand Down
9 changes: 0 additions & 9 deletions app/routes/conf.2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ const navItems: Array<HeaderLinkProps> = [
export default function ConfTwentyTwentyTwo() {
return (
<div className="__layout flex h-full flex-1 flex-col bg-blue-800 text-white">
{/* <TopBanner>
<span className="font-bold text-pink-brand">
Announcing: Remix Conf 2023.
</span>{" "}
<Link to="../2023" className="text-white underline">
Earlybird tickets and sponsorships available now
<span aria-hidden> →</span>
</Link>
</TopBanner> */}
<Header />
<main className="flex flex-1 flex-col" tabIndex={-1}>
<Outlet />
Expand Down
2 changes: 2 additions & 0 deletions app/ui/subscribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import cx from "clsx";
import type { action } from "~/routes/[_]actions.newsletter";
import type { SerializeFrom } from "@remix-run/node";

// TODO: look into if v3_fetcherPersist simplifies this component

function Subscribe({
descriptionId,
formClassName = "flex gap-4 flex-col",
Expand Down
123 changes: 67 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"dependencies": {
"@docsearch/css": "^3.5.2",
"@docsearch/react": "^3.5.2",
"@remix-run/express": "2.10.0",
"@remix-run/node": "2.10.0",
"@remix-run/react": "2.10.0",
"@remix-run/express": "2.11.2",
"@remix-run/node": "2.11.2",
"@remix-run/react": "2.11.2",
"cheerio": "^1.0.0-rc.12",
"clsx": "^2.1.0",
"compression": "^1.7.4",
Expand Down Expand Up @@ -59,7 +59,7 @@
"remark-html": "^16.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"remix": "2.10.0",
"remix": "2.11.2",
"satori": "^0.10.14",
"semver": "^7.5.4",
"shiki": "^0.14.7",
Expand All @@ -76,8 +76,8 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@remix-run/dev": "2.10.0",
"@remix-run/eslint-config": "2.10.0",
"@remix-run/dev": "2.11.2",
"@remix-run/eslint-config": "2.11.2",
"@testing-library/jest-dom": "^6.2.0",
"@types/follow-redirects": "^1.14.4",
"@types/gunzip-maybe": "^1.4.2",
Expand Down
5 changes: 4 additions & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ export default defineConfig({
arraybuffer(),
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
unstable_singleFetch: true,
unstable_fogOfWar: true,
unstable_lazyRouteDiscovery: true,
},
}),
],
Expand Down

0 comments on commit 3cbd79f

Please sign in to comment.