Skip to content

Commit

Permalink
Merge branch 'dev' into brophdawg11/stylesheet-re-prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jul 5, 2023
2 parents eca4854 + 4233a3e commit a989aba
Show file tree
Hide file tree
Showing 136 changed files with 1,161 additions and 518 deletions.
5 changes: 0 additions & 5 deletions .changeset/cache-regular-stylesheets.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chilly-shoes-scream.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/clever-ways-love.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/css-bundle-skip-node-polyfills.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/css-bundle-skip-packages.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/css-side-effect-imports-hmr-cache.md

This file was deleted.

9 changes: 9 additions & 0 deletions .changeset/dry-items-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@remix-run/dev": minor
"@remix-run/react": minor
"@remix-run/server-runtime": minor
---

improved networking options for v2_dev

deprecate the `--scheme` and `--host` options and replace them with the `REMIX_DEV_ORIGIN` environment variable
5 changes: 0 additions & 5 deletions .changeset/dual-forward-bug.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/famous-games-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

ignore missing react-dom/client for react 17
5 changes: 0 additions & 5 deletions .changeset/five-zoos-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-react-types.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/hydrate-error-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@remix-run/react": patch
"@remix-run/server-runtime": patch
---

Support proper hydration of `Error` subclasses such as `ReferenceError`/`TypeError` in development mode
5 changes: 0 additions & 5 deletions .changeset/json-text-encoding.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/kind-coins-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

ignore errors when killing already dead processes
7 changes: 0 additions & 7 deletions .changeset/neat-poets-scream.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/nine-islands-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

fix sourcemaps for v2_dev
5 changes: 0 additions & 5 deletions .changeset/orange-beds-explode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/postcss-cache-css-modules.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/postcss-cache-side-effect-imports.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/prefetch-viewport.md

This file was deleted.

13 changes: 13 additions & 0 deletions .changeset/red-bananas-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@remix-run/dev": minor
---

Output esbuild metafiles for bundle analysis

Written to server build directory (`build/` by default):

- `metafile.css.json`
- `metafile.js.json` (browser JS)
- `metafile.server.json` (server JS)

Metafiles can be uploaded to https://esbuild.github.io/analyze/ for analysis.
5 changes: 0 additions & 5 deletions .changeset/rude-meals-move.md

This file was deleted.

11 changes: 11 additions & 0 deletions .changeset/tasty-bats-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@remix-run/dev": patch
---

Do not clear screen when dev server starts

On some terminal emulators, "clearing" only scrolls the next line to the
top. on others, it erases the scrollback.

Instead, let users call `clear` themselves (`clear && remix dev`) if
they want to clear.
5 changes: 0 additions & 5 deletions .changeset/thin-rings-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/two-cobras-float.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/type-userouteloaderdata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/react": patch
---

Add generic type for `useRouteLoaderData()`
5 changes: 0 additions & 5 deletions .changeset/types-cookie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/typescript-eslint-recommended.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/update-polyfills-plugin.md

This file was deleted.

3 changes: 3 additions & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@
- plastic041
- plondon
- pmbanugo
- pratikdevdas
- princerajroy
- prvnbist
- ptitFicus
Expand All @@ -429,6 +430,7 @@
- reggie3
- reichhartd
- remix-run-bot
- richardhunghhw
- riencoertjens
- rkulinski
- rlfarman
Expand Down Expand Up @@ -552,3 +554,4 @@
- amir-ziaei
- mrkhosravian
- tanerijun
- ally1002
4 changes: 2 additions & 2 deletions docs/file-conventions/entry.server.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export function handleError(

### Streaming Rendering Errors

When you are streaming your HTML responses via [`renderToPipeableStream`][rendertopipeablestream] or [`renderToReadableStream`][rendertoreadablestream], your own `handleError` implementation will only handle errors encountered uring the initial shell render. If you encounter a rendering error during subsequent streamed rendering you will need handle these errors manually since the Remix server has already sent the Response by that point.
When you are streaming your HTML responses via [`renderToPipeableStream`][rendertopipeablestream] or [`renderToReadableStream`][rendertoreadablestream], your own `handleError` implementation will only handle errors encountered during the initial shell render. If you encounter a rendering error during subsequent streamed rendering you will need handle these errors manually since the Remix server has already sent the Response by that point.

- For `renderToPipeableStream`, you can handle these errors in the `onError` callback function. You will need to toggle a boolean when the in `onShellReady` so you know if the error was a shell rendering error (and can be ignored) or an async rendering error (and must be handled).
- For an exmaple, please see the default [`entry.server.tsx`][node-streaming-entry-server] for Node.
- For an example, please see the default [`entry.server.tsx`][node-streaming-entry-server] for Node.
- For `renderToReadableStream`, you can handle these errors in the `onError` callback function
- For an example, please see the default [`entry.server.tsx`][cloudflare-streaming-entry-server] for Cloudflare

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ You may notice an `?index` query parameter showing up on your URLs from time to
├── root.tsx
└── routes
├── sales.invoices._index.tsx <-- /sales/invoices?index
── sales.invoices.invoices.tsx <-- /sales/invoices
── sales.invoices.tsx <-- /sales/invoices
```

This is handled automatically for you when you submit from a `<Form>` contained within either the layout route or the index route. But if you are submitting forms to different routes, or using `fetcher.submit`/`fetcher.load` you may need to be aware of this URL pattern, so you can target the correct route.
Expand Down
Loading

0 comments on commit a989aba

Please sign in to comment.