Skip to content

Commit

Permalink
Merge branch 'release-next'
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 11, 2024
2 parents f6b8555 + 09b070d commit c2075f2
Show file tree
Hide file tree
Showing 39 changed files with 172 additions and 78 deletions.
71 changes: 42 additions & 29 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,119 +13,121 @@ We manage release notes in this file instead of the paginated Github Releases Pa
<summary>Table of Contents</summary>

- [Remix Releases](#remix-releases)
- [v2.13.1](#v2131)
- [Patch Changes](#patch-changes)
- [v2.13.0](#v2130)
- [What's Changed](#whats-changed)
- [Stabilized APIs](#stabilized-apis)
- [Minor Changes](#minor-changes)
- [Patch Changes](#patch-changes)
- [Patch Changes](#patch-changes-1)
- [Updated Dependencies](#updated-dependencies)
- [Changes by Package](#changes-by-package)
- [v2.12.1](#v2121)
- [Patch Changes](#patch-changes-1)
- [Patch Changes](#patch-changes-2)
- [Changes by Package](#changes-by-package-1)
- [v2.12.0](#v2120)
- [What's Changed](#whats-changed-1)
- [Future Flag for Automatic Dependency Optimization (unstable)](#future-flag-for-automatic-dependency-optimization-unstable)
- [Improved Single Fetch Type Safety (unstable)](#improved-single-fetch-type-safety-unstable)
- [Updates to Single Fetch Revalidation Behavior (unstable)](#updates-to-single-fetch-revalidation-behavior-unstable)
- [Minor Changes](#minor-changes-1)
- [Patch Changes](#patch-changes-2)
- [Patch Changes](#patch-changes-3)
- [Updated Dependencies](#updated-dependencies-1)
- [Changes by Package](#changes-by-package-2)
- [v2.11.2](#v2112)
- [Patch Changes](#patch-changes-3)
- [Patch Changes](#patch-changes-4)
- [Updated Dependencies](#updated-dependencies-2)
- [Changes by Package](#changes-by-package-3)
- [v2.11.1](#v2111)
- [Patch Changes](#patch-changes-4)
- [Patch Changes](#patch-changes-5)
- [Changes by Package](#changes-by-package-4)
- [v2.11.0](#v2110)
- [What's Changed](#whats-changed-2)
- [Renamed `unstable_fogOfWar` future flag to `unstable_lazyRouteDiscovery` (unstable)](#renamed-unstable_fogofwar-future-flag-to-unstable_lazyroutediscovery-unstable)
- [Removed `response` stub in Single Fetch (unstable)](#removed-response-stub-in-single-fetch-unstable)
- [Minor Changes](#minor-changes-2)
- [Patch Changes](#patch-changes-5)
- [Patch Changes](#patch-changes-6)
- [Updated Dependencies](#updated-dependencies-3)
- [Changes by Package](#changes-by-package-5)
- [v2.10.3](#v2103)
- [Patch Changes](#patch-changes-6)
- [Patch Changes](#patch-changes-7)
- [Updated Dependencies](#updated-dependencies-4)
- [Changes by Package](#changes-by-package-6)
- [v2.10.2](#v2102)
- [Patch Changes](#patch-changes-7)
- [Patch Changes](#patch-changes-8)
- [Changes by Package](#changes-by-package-7)
- [v2.10.1](#v2101)
- [Patch Changes](#patch-changes-8)
- [Patch Changes](#patch-changes-9)
- [Updated Dependencies](#updated-dependencies-5)
- [Changes by Package](#changes-by-package-8)
- [v2.10.0](#v2100)
- [What's Changed](#whats-changed-3)
- [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war)
- [Minor Changes](#minor-changes-3)
- [Patch Changes](#patch-changes-9)
- [Patch Changes](#patch-changes-10)
- [Updated Dependencies](#updated-dependencies-6)
- [Changes by Package](#changes-by-package-9)
- [v2.9.2](#v292)
- [What's Changed](#whats-changed-4)
- [Updated Type-Safety for Single Fetch](#updated-type-safety-for-single-fetch)
- [Patch Changes](#patch-changes-10)
- [Patch Changes](#patch-changes-11)
- [Updated Dependencies](#updated-dependencies-7)
- [Changes by Package](#changes-by-package-10)
- [v2.9.1](#v291)
- [Patch Changes](#patch-changes-11)
- [Patch Changes](#patch-changes-12)
- [Changes by Package](#changes-by-package-11)
- [v2.9.0](#v290)
- [What's Changed](#whats-changed-5)
- [Single Fetch (unstable)](#single-fetch-unstable)
- [Undici](#undici)
- [Minor Changes](#minor-changes-4)
- [Patch Changes](#patch-changes-12)
- [Patch Changes](#patch-changes-13)
- [Updated Dependencies](#updated-dependencies-8)
- [Changes by Package](#changes-by-package-12)
- [v2.8.1](#v281)
- [Patch Changes](#patch-changes-13)
- [Patch Changes](#patch-changes-14)
- [Updated Dependencies](#updated-dependencies-9)
- [Changes by Package](#changes-by-package-13)
- [v2.8.0](#v280)
- [Minor Changes](#minor-changes-5)
- [Patch Changes](#patch-changes-14)
- [Patch Changes](#patch-changes-15)
- [Updated Dependencies](#updated-dependencies-10)
- [Changes by Package](#changes-by-package-14)
- [2.7.2](#272)
- [Patch Changes](#patch-changes-15)
- [2.7.1](#271)
- [Patch Changes](#patch-changes-16)
- [2.7.1](#271)
- [Patch Changes](#patch-changes-17)
- [v2.7.0](#v270)
- [What's Changed](#whats-changed-6)
- [Stabilized Vite Plugin](#stabilized-vite-plugin)
- [New `Layout` Export](#new-layout-export)
- [Basename support](#basename-support)
- [Cloudflare Proxy as a Vite Plugin](#cloudflare-proxy-as-a-vite-plugin)
- [Minor Changes](#minor-changes-6)
- [Patch Changes](#patch-changes-17)
- [Patch Changes](#patch-changes-18)
- [Updated Dependencies](#updated-dependencies-11)
- [Changes by Package](#changes-by-package-15)
- [v2.6.0](#v260)
- [What's Changed](#whats-changed-7)
- [Unstable Vite Plugin updates](#unstable-vite-plugin-updates)
- [Minor Changes](#minor-changes-7)
- [Patch Changes](#patch-changes-18)
- [Patch Changes](#patch-changes-19)
- [Updated Dependencies](#updated-dependencies-12)
- [Changes by Package](#changes-by-package-16)
- [v2.5.1](#v251)
- [Patch Changes](#patch-changes-19)
- [Patch Changes](#patch-changes-20)
- [Updated Dependencies](#updated-dependencies-13)
- [Changes by Package](#changes-by-package-17)
- [v2.5.0](#v250)
- [What's Changed](#whats-changed-8)
- [SPA Mode (unstable)](#spa-mode-unstable)
- [Server Bundles (unstable)](#server-bundles-unstable)
- [Minor Changes](#minor-changes-8)
- [Patch Changes](#patch-changes-20)
- [Patch Changes](#patch-changes-21)
- [Updated Dependencies](#updated-dependencies-14)
- [Changes by Package](#changes-by-package-18)
- [v2.4.1](#v241)
- [Patch Changes](#patch-changes-21)
- [Patch Changes](#patch-changes-22)
- [Updated Dependencies](#updated-dependencies-15)
- [Changes by Package](#changes-by-package-19)
- [v2.4.0](#v240)
Expand All @@ -134,19 +136,19 @@ We manage release notes in this file instead of the paginated Github Releases Pa
- [`future.v3_relativeSplatPath`](#futurev3_relativesplatpath)
- [Vite Updates (Unstable)](#vite-updates-unstable)
- [Minor Changes](#minor-changes-9)
- [Patch Changes](#patch-changes-22)
- [Patch Changes](#patch-changes-23)
- [Updated Dependencies](#updated-dependencies-16)
- [Changes by Package](#changes-by-package-20)
- [v2.3.1](#v231)
- [Patch Changes](#patch-changes-23)
- [Patch Changes](#patch-changes-24)
- [Updated Dependencies](#updated-dependencies-17)
- [Changes by Package](#changes-by-package-21)
- [v2.3.0](#v230)
- [What's Changed](#whats-changed-10)
- [Stabilized `useBlocker`](#stabilized-useblocker)
- [`unstable_flushSync` API](#unstable_flushsync-api)
- [Minor Changes](#minor-changes-10)
- [Patch Changes](#patch-changes-24)
- [Patch Changes](#patch-changes-25)
- [Updated Dependencies](#updated-dependencies-18)
- [Changes by Package](#changes-by-package-22)
- [v2.2.0](#v220)
Expand All @@ -155,19 +157,19 @@ We manage release notes in this file instead of the paginated Github Releases Pa
- [New Fetcher APIs](#new-fetcher-apis)
- [Persistence Future Flag](#persistence-future-flag)
- [Minor Changes](#minor-changes-11)
- [Patch Changes](#patch-changes-25)
- [Patch Changes](#patch-changes-26)
- [Updated Dependencies](#updated-dependencies-19)
- [Changes by Package](#changes-by-package-23)
- [v2.1.0](#v210)
- [What's Changed](#whats-changed-12)
- [View Transitions](#view-transitions)
- [Stable `createRemixStub`](#stable-createremixstub)
- [Minor Changes](#minor-changes-12)
- [Patch Changes](#patch-changes-26)
- [Patch Changes](#patch-changes-27)
- [Updated Dependencies](#updated-dependencies-20)
- [Changes by Package](#changes-by-package-24)
- [v2.0.1](#v201)
- [Patch Changes](#patch-changes-27)
- [Patch Changes](#patch-changes-28)
- [Changes by Package 🔗](#changes-by-package-)
- [v2.0.0](#v200)
- [Breaking Changes](#breaking-changes)
Expand Down Expand Up @@ -228,6 +230,16 @@ Date: YYYY-MM-DD
-->

## v2.13.1

Date: 2024-10-11

### Patch Changes

- `@remix-run/dev` - Revert `future.v3_optimizeDeps` back to `future.unstable_optimizeDeps` as it was not intended to stabilize in Remix v2 ([#10099](https://github.com/remix-run/remix/pull/10099))

**Full Changelog**: [`v2.13.0...v2.13.1`](https://github.com/remix-run/remix/compare/[email protected]@2.13.1)

## v2.13.0

Date: 2024-10-11
Expand All @@ -241,7 +253,8 @@ This release stabilizes a handful of "unstable" APIs in preparation for the [pen
- `unstable_data``data` (for use with Single Fetch)
- `unstable_flushSync``flushSync` (`useSubmit`, `fetcher.load`, `fetcher.submit`)
- `unstable_viewTransition``viewTransition` (`<Link>`, `<Form>`, `useNavigate`, `useSubmit`)
- `future.unstable_optimizeDeps``future.v3_optimizeDeps` ([Docs](https://remix.run/docs/en/main/guides/dependency-optimization))
- ~~`future.unstable_optimizeDeps``future.v3_optimizeDeps` ([Docs](https://remix.run/docs/en/main/guides/dependency-optimization))~~
- ⚠️ This flag was not intended to stabilize in Remix v2 and was reverted back to `future.unstable_optimizeDeps` in `2.13.1`
- `future.unstable_lazyRouteDiscovery``future.v3_lazyRouteDiscovery` ([Docs](https://remix.run/docs/guides/lazy-route-discovery))
- `future.unstable_singleFetch``future.v3_singleFetch` ([Docs](https://remix.run/docs/guides/single-fetch))

Expand Down
3 changes: 1 addition & 2 deletions docs/guides/dependency-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ title: Dependency optimization

# Dependency optimization

Remix introduced automatic dependency optimization in development behind the `future.v3_optimizeDeps` [Future Flag][future-flags].
This allows you to opt-into this behavior which will become the default in the next major version of Remix - a.k.a. React Router v7 ([1][rr-v7], [2][rr-v7-2]).
Remix introduced automatic dependency optimization in development behind the `future.unstable_optimizeDeps` [Future Flag][future-flags]. This allows you to opt-into this behavior which will eventually become the default in some future version of Remix - a.k.a. React Router ([1][rr-v7], [2][rr-v7-2]). This flag is intended to remain "unstable" into React Router v7 as there is some additional bundling-related work coming that will ease adoption of the flag. We plan to stabilize the flag once that work is completed in v7.

In development, Vite aims to [prebundle dependencies][prebundle-dependencies] so that it can efficiently serve up those dependencies on-demand.
To do this, Vite needs to know where to start crawling your app's module graph to look for dependencies.
Expand Down
20 changes: 2 additions & 18 deletions docs/start/future-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,25 +472,9 @@ You shouldn't need to make any changes to your application code for this feature

You may find some usage for the new [`<Link discover>`][discover-prop] API if you wish to disable eager route discovery on certain links.

## v3_optimizeDeps
## unstable_optimizeDeps

**Background**

This flag allows you to opt-into automatic [dependency optimization][dependency-optimization] during development when using Vite.

👉 **Enable the Flag**

```ts filename=vite.config.ts
remix({
future: {
v3_optimizeDeps: true,
},
});
```

**Update your Code**

You shouldn't need to make any changes to your application code for this feature to work.
Opt into automatic [dependency optimization][dependency-optimization] during development. This flag will remain in an "unstable" state until React Router v7 so you do not need to adopt this in your Remix v2 app prior to upgrading to React Router v7.

[development-strategy]: ../guides/api-development-strategy
[fetcherpersist-rfc]: https://github.com/remix-run/remix/discussions/7698
Expand Down
6 changes: 3 additions & 3 deletions integration/helpers/vite-cloudflare-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/cloudflare": "2.13.0",
"@remix-run/cloudflare-pages": "2.13.0",
"@remix-run/react": "2.13.0",
"@remix-run/cloudflare": "2.13.1",
"@remix-run/cloudflare-pages": "2.13.1",
"@remix-run/react": "2.13.1",
"isbot": "^4.1.0",
"miniflare": "^3.20231030.4",
"react": "^18.2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/create-remix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# `create-remix`

## 2.13.1

No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.13.1.

## 2.13.0

No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.13.0.
Expand Down
2 changes: 1 addition & 1 deletion packages/create-remix/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-remix",
"version": "2.13.0",
"version": "2.13.1",
"description": "Create a new Remix app",
"homepage": "https://remix.run",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/architect`

## 2.13.1

### Patch Changes

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

## 2.13.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-architect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/architect",
"version": "2.13.0",
"version": "2.13.1",
"description": "Architect server request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-cloudflare-pages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/cloudflare-pages`

## 2.13.1

### Patch Changes

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

## 2.13.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-cloudflare-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/cloudflare-pages",
"version": "2.13.0",
"version": "2.13.1",
"description": "Cloudflare Pages request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-cloudflare-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/cloudflare-workers`

## 2.13.1

### Patch Changes

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

## 2.13.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/cloudflare-workers",
"version": "2.13.0",
"version": "2.13.1",
"description": "Cloudflare worker request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/cloudflare`

## 2.13.1

### Patch Changes

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

## 2.13.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/cloudflare",
"version": "2.13.0",
"version": "2.13.1",
"description": "Cloudflare platform abstractions for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand Down
4 changes: 4 additions & 0 deletions packages/remix-css-bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @remix-run/css-bundle

## 2.13.1

No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.13.1.

## 2.13.0

No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.13.0.
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-css-bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/css-bundle",
"version": "2.13.0",
"version": "2.13.1",
"description": "CSS bundle href when using CSS bundling features in Remix",
"homepage": "https://remix.run",
"bugs": {
Expand Down
Loading

0 comments on commit c2075f2

Please sign in to comment.