Skip to content

Commit

Permalink
update changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Dec 16, 2022
1 parent 980160d commit a74e518
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 437 deletions.
2 changes: 1 addition & 1 deletion .changeset/clean-clocks-float.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@remix-run/deno": patch
---

Fix types for the request handler context
Fixed type issues for the request handler context
2 changes: 1 addition & 1 deletion .changeset/early-camels-guess.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@remix-run/react": patch
---

Update `@remix-run/react` to use `Router` from `react-router-dom@6.4.4`
Update `@remix-run/react` to use `Router` from `react-router-dom@6.5.0`
4 changes: 1 addition & 3 deletions .changeset/fresh-shrimps-join.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
"@remix-run/dev": patch
---

Support Typescript 4.9 features (like `satisfies`) in Remix `app/` code.

esbuild 0.15.13 added support for parsing TS 4.9 `satisfies`, so upgrading to esbuild 0.16.3 adds that ability to the Remix compiler.
The Remix compiler now supports new Typescript 4.9 syntax (like the `satisfies` keyword)
4 changes: 1 addition & 3 deletions .changeset/light-sheep-give.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export const action = async (

In this case, Typescript would not show an error even though `42` is clearly not a `string`.

This happens because `json` returns a `TypedResponse<string>`,
but because `TypedReponse<string>` was previously just `Response & { json: () => Promise<string> }`
and `Response` already defines `{ json: () => Promise<any> }`, type erasure caused `Promise<any>` to be used for `42`.
This happens because `json` returns a `TypedResponse<string>`, but because `TypedReponse<string>` was previously just `Response & { json: () => Promise<string> }` and `Response` already defines `{ json: () => Promise<any> }`, type erasure caused `Promise<any>` to be used for `42`.

To fix this, we explicitly omit the `Response` object's `json` property before intersecting with `{ json: () => Promise<T> }`.
5 changes: 0 additions & 5 deletions .changeset/metal-impalas-brake.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@
---

Optimize `parentRouteId` lookup in `defineConventionalRoutes`.

Local runs of production Remix builds:

- Realistic project w/ 700 routes: 10-15s -> <1s (>10x faster)
- Example project w/ 1,111 routes: 27s -> 0.104s (259x faster)
6 changes: 0 additions & 6 deletions .changeset/mighty-grapes-laugh.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/silly-shrimps-broke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/server-runtime": patch
---

Fixed an issue where a loader's `Request` object reflected `method: "POST"` on document submissions
21 changes: 0 additions & 21 deletions .changeset/strong-turtles-smash.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/thin-oranges-boil.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@
---

Fixed a problem with `<LiveReload>` and Firefox infinitely reloading the page.

The problem is:

1. Firefox is calling `ws.onclose` immediately upon connecting (?!)
2. Then we’re trying to reconnect, and upon reconnection, we reload the page.
3. Firefox then calls `ws.onclose` again after reconnecting and the loop starts over

This fix is to check `event.code === 1006` before actually trying to reconnect and the reload the page. 1006 means the connection was closed abnormally (https://www.rfc-editor.org/rfc/rfc6455#section-7.4.1). In our case, that means the server was shut down in local dev and then the socket can reconnect again when the server is back up.
15 changes: 0 additions & 15 deletions packages/create-remix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `create-remix`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/architect`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-cloudflare-pages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/cloudflare-pages`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-cloudflare-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/cloudflare-workers`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/cloudflare`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
16 changes: 0 additions & 16 deletions packages/remix-deno/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
# `@remix-run/deno`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Fix types for request handler context ([#4715](https://github.com/remix-run/remix/pull/4715))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
58 changes: 0 additions & 58 deletions packages/remix-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,63 +1,5 @@
# `@remix-run/dev`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Minor Changes

- allow defining multiple routes for the same route module file ([#3970](https://github.com/remix-run/remix/pull/3970))

### Patch Changes

- Support Typescript 4.9 features (like `satisfies`) in Remix `app/` code ([#4754](https://github.com/remix-run/remix/pull/4754))

esbuild 0.15.13 added support for parsing TS 4.9 `satisfies`, so upgrading to esbuild 0.16.3 adds that ability to the Remix compiler

- Optimize `parentRouteId` lookup in `defineConventionalRoutes` ([#4800](https://github.com/remix-run/remix/pull/4800))

Local runs of production Remix builds:

- Realistic project w/ 700 routes: 10-15s -> <1s (>10x faster)
- Example project w/ 1,111 routes: 27s -> 0.104s (259x faster)

- Convention for Remix optional segments ([#4706](https://github.com/remix-run/remix/pull/4706))

Note that this only set ups the convention conversion for React Router.
Optional segments won't be available in Remix until Remix is built on top of React Router v6.5

Converts segments surrounded by parenthesis into optional segments for React Router.
For example `/($lang)/about` will be converted to `/:lang?/about` in React Router.

This means `/($lang)/about` would match:

```
/en/about
/fr/about
/about
```

Another example: `/(one)/($two)/(three).($four)` route would match all of the following:

```
/
/one
/one/param1
/one/param1/three
/one/param1/three/param2
```

- fixes a bug in ts -> js conversion on windows by using a relative unix style path as fast-glob uses unix style paths ([#4718](https://github.com/remix-run/remix/pull/4718))
- Updated dependencies:
- `@remix-run/[email protected]`
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
8 changes: 0 additions & 8 deletions packages/remix-eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# `@remix-run/eslint-config`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))

## 1.9.0-pre.0

## 1.8.2

No significant changes to this package were made in this release. [See the releases page on GitHub](https://github.com/remix-run/remix/releases/tag/remix%401.8.2) for an overview of all changes in v1.8.2.
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/express`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-netlify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/netlify`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
15 changes: 0 additions & 15 deletions packages/remix-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# `@remix-run/node`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))
- Updated dependencies:
- `@remix-run/[email protected]`

## 1.9.0-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/[email protected]`

## 1.8.2

### Patch Changes
Expand Down
26 changes: 0 additions & 26 deletions packages/remix-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
# `@remix-run/react`

## 1.9.0-pre.1

### Patch Changes

- Update react-router ([`31bb30741`](https://github.com/remix-run/remix/commit/31bb307419f733d9cfd2c16e74890a075eac7682))

## 1.9.0-pre.0

### Patch Changes

- Update `@remix-run/react` to use `Router` from `[email protected]` ([#4731](https://github.com/remix-run/remix/pull/4731))
- Allow pass-through props to be passed to the script rendered by `ScrollRestoration` ([#2879](https://github.com/remix-run/remix/pull/2879))
- Bump RR deps ([#4868](https://github.com/remix-run/remix/pull/4868))
- adds a new testing package to allow easier testing of components using Remix specific apis like useFetcher, useActionData, etc. ([#4539](https://github.com/remix-run/remix/pull/4539))
- Fixed a problem with live reload and firefox infinitely reloading the page ([#4725](https://github.com/remix-run/remix/pull/4725))

The problem is:

1. Firefox is calling `ws.onclose` immediately upon connecting (?!)
2. Then we’re trying to reconnect, and upon reconnection, we reload the page.
3. Firefox then calls `ws.onclose` again after reconnecting and the loop starts over

This fix is to check `event.code === 1006` before actually trying to reconnect and the reload the page. 1006 means the connection was closed abnormally (https://www.rfc-editor.org/rfc/rfc6455#section-7.4.1). In our case, that means the server was shut down in local dev and then the socket can reconnect again when the server is back up.

It’s unclear to me why Firefox is calling `onclose` immediately upon connecting to the web socket, but it does.

## 1.8.2

No significant changes to this package were made in this release. [See the releases page on GitHub](https://github.com/remix-run/remix/releases/tag/remix%401.8.2) for an overview of all changes in v1.8.2.
Expand Down
Loading

0 comments on commit a74e518

Please sign in to comment.