Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed Jan 3, 2024
1 parent 131bcca commit e496df0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .changeset/isbot-version-four.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

Fix issue with `isbot` v4 released on 1/1/2024

* `remix dev` wil now add `"isbot": "^4"` to `package.json` instead of using `latest`
* Update built-in `entry.server` files to work with both `isbot@3` and `isbot@4` for backwards-compatibility with Remix apps that have pinned `isbot` to v3
* Templates are updated to use `isbot@4` moving forward via `create-remix`
- `remix dev` wil now add `"isbot": "^4"` to `package.json` instead of using `latest`
- Update built-in `entry.server` files to work with both `isbot@3` and `isbot@4` for backwards-compatibility with Remix apps that have pinned `isbot` to v3
- Templates are updated to use `isbot@4` moving forward via `create-remix`
4 changes: 2 additions & 2 deletions templates/deno/app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function handleRequest(
// This is ignored so we can keep it in the template for visibility. Feel
// free to delete this parameter in your app if you're not using it!
// eslint-disable-next-line @typescript-eslint/no-unused-vars
loadContext: AppLoadContext
loadContext: AppLoadContext,
) {
const body = await renderToReadableStream(
<RemixServer context={remixContext} url={request.url} />,
Expand All @@ -28,7 +28,7 @@ export default async function handleRequest(
console.error(error);
responseStatusCode = 500;
},
}
},
);

if (isbot(request.headers.get("user-agent") || "")) {
Expand Down

0 comments on commit e496df0

Please sign in to comment.