Skip to content

Commit

Permalink
chore: Update version for release (pre) (#8463)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jan 9, 2024
1 parent ed035e3 commit 7cefc2d
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 16 deletions.
80 changes: 80 additions & 0 deletions packages/remix-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,85 @@
# `@remix-run/dev`

## 2.5.0-pre.0

### Minor Changes

- Add `unstable_serverBundles` option to Vite plugin to support splitting server code into multiple request handlers. ([#8332](https://github.com/remix-run/remix/pull/8332))

This is an advanced feature designed for hosting provider integrations. When compiling your app into multiple server bundles, there will need to be a custom routing layer in front of your app directing requests to the correct bundle. This feature is currently unstable and only designed to gather early feedback.

**Example usage:**

```ts
import { unstable_vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [
remix({
unstable_serverBundles: ({ branch }) => {
const isAuthenticatedRoute = branch.some(
(route) => route.id === "routes/_authenticated"
);

return isAuthenticatedRoute ? "authenticated" : "unauthenticated";
},
}),
],
});
```

- Add unstable support for "SPA Mode" ([#8457](https://github.com/remix-run/remix/pull/8457))

You can opt into SPA Mode by setting `unstable_ssr: false` in your Remix Vite plugin config:

```js
// vite.config.ts
import { unstable_vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [remix({ unstable_ssr: false })],
});
```

Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR:

```sh
remix vite:dev
```

Building in SPA Mode will generate an `index.html` file in your client assets directory:

```sh
remix vite:build
```

To run your SPA, you serve your client assets directory via an HTTP server:

```sh
npx http-server build/client
```

For more information, please refer to the [SPA Mode docs][https://reactrouter.com/en/main/guides/spa-mode].

### Patch Changes

- Vite: Fix HMR issues when altering exports for non-rendered routes ([#8157](https://github.com/remix-run/remix/pull/8157))
- Vite: Default `NODE_ENV` to `"production"` when running `remix vite:build` command ([#8405](https://github.com/remix-run/remix/pull/8405))
- Remove Vite plugin config option `serverBuildPath` in favor of separate `serverBuildDirectory` and `serverBuildFile` options ([#8332](https://github.com/remix-run/remix/pull/8332))
- Vite: Loosen strict route exports restriction, reinstating support for non-Remix route exports ([#8420](https://github.com/remix-run/remix/pull/8420))
- Fix issue with `isbot` v4 released on 1/1/2024 ([#8415](https://github.com/remix-run/remix/pull/8415))

- `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`

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

## 2.4.1

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/remix-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/dev",
"version": "2.4.1",
"version": "2.5.0-pre.0",
"description": "Dev tools and CLI for Remix",
"homepage": "https://remix.run",
"bugs": {
Expand Down Expand Up @@ -28,9 +28,9 @@
"@babel/types": "^7.22.5",
"@mdx-js/mdx": "^2.3.0",
"@npmcli/package-json": "^4.0.1",
"@remix-run/node": "2.4.1",
"@remix-run/node": "2.5.0-pre.0",
"@remix-run/router": "1.14.2-pre.0",
"@remix-run/server-runtime": "2.4.1",
"@remix-run/server-runtime": "2.5.0-pre.0",
"@types/mdx": "^2.0.5",
"@vanilla-extract/integration": "^6.2.0",
"arg": "^5.0.1",
Expand Down Expand Up @@ -73,7 +73,7 @@
"ws": "^7.4.5"
},
"devDependencies": {
"@remix-run/serve": "2.4.1",
"@remix-run/serve": "2.5.0-pre.0",
"@types/cacache": "^17.0.0",
"@types/cross-spawn": "^6.0.2",
"@types/gunzip-maybe": "^1.4.0",
Expand All @@ -94,7 +94,7 @@
"vite": "^5.0.0"
},
"peerDependencies": {
"@remix-run/serve": "^2.4.1",
"@remix-run/serve": "^2.5.0-pre.0",
"typescript": "^5.1.0",
"vite": "^5.0.0"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/express`

## 2.5.0-pre.0

### Patch Changes

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

## 2.4.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/express",
"version": "2.4.1",
"version": "2.5.0-pre.0",
"description": "Express server request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -14,7 +14,7 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"dependencies": {
"@remix-run/node": "2.4.1"
"@remix-run/node": "2.5.0-pre.0"
},
"devDependencies": {
"@types/express": "^4.17.9",
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/node`

## 2.5.0-pre.0

### Patch Changes

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

## 2.4.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/node",
"version": "2.4.1",
"version": "2.5.0-pre.0",
"description": "Node.js platform abstractions for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -17,7 +17,7 @@
"./install.js"
],
"dependencies": {
"@remix-run/server-runtime": "2.4.1",
"@remix-run/server-runtime": "2.5.0-pre.0",
"@remix-run/web-fetch": "^4.4.2",
"@remix-run/web-file": "^3.1.0",
"@remix-run/web-stream": "^1.1.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/remix-serve/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `@remix-run/serve`

## 2.5.0-pre.0

### Patch Changes

- Don't try to load sourcemaps if they don't exist on disk ([#8446](https://github.com/remix-run/remix/pull/8446))
- Updated dependencies:
- `@remix-run/[email protected]`
- `@remix-run/[email protected]`

## 2.4.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-serve/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/serve",
"version": "2.4.1",
"version": "2.5.0-pre.0",
"description": "Production application server for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,8 +15,8 @@
"remix-serve": "dist/cli.js"
},
"dependencies": {
"@remix-run/express": "2.4.1",
"@remix-run/node": "2.4.1",
"@remix-run/express": "2.5.0-pre.0",
"@remix-run/node": "2.5.0-pre.0",
"chokidar": "^3.5.3",
"compression": "^1.7.4",
"express": "^4.17.1",
Expand Down
39 changes: 39 additions & 0 deletions packages/remix-server-runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# `@remix-run/server-runtime`

## 2.5.0-pre.0

### Minor Changes

- Updated `cookie` dependency to [`0.6.0`](https://github.com/jshttp/cookie/blob/master/HISTORY.md#060--2023-11-06) to inherit support for the [`Partitioned`](https://developer.mozilla.org/en-US/docs/Web/Privacy/Partitioned_cookies) attribute ([#8375](https://github.com/remix-run/remix/pull/8375))
- Add unstable support for "SPA Mode" ([#8457](https://github.com/remix-run/remix/pull/8457))

You can opt into SPA Mode by setting `unstable_ssr: false` in your Remix Vite plugin config:

```js
// vite.config.ts
import { unstable_vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [remix({ unstable_ssr: false })],
});
```

Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR:

```sh
remix vite:dev
```

Building in SPA Mode will generate an `index.html` file in your client assets directory:

```sh
remix vite:build
```

To run your SPA, you serve your client assets directory via an HTTP server:

```sh
npx http-server build/client
```

For more information, please refer to the [SPA Mode docs][https://reactrouter.com/en/main/guides/spa-mode].

## 2.4.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-server-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/server-runtime",
"version": "2.4.1",
"version": "2.5.0-pre.0",
"description": "Server runtime for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand Down
44 changes: 44 additions & 0 deletions packages/remix-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# `@remix-run/testing`

## 2.5.0-pre.0

### Minor Changes

- Add unstable support for "SPA Mode" ([#8457](https://github.com/remix-run/remix/pull/8457))

You can opt into SPA Mode by setting `unstable_ssr: false` in your Remix Vite plugin config:

```js
// vite.config.ts
import { unstable_vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [remix({ unstable_ssr: false })],
});
```

Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR:

```sh
remix vite:dev
```

Building in SPA Mode will generate an `index.html` file in your client assets directory:

```sh
remix vite:build
```

To run your SPA, you serve your client assets directory via an HTTP server:

```sh
npx http-server build/client
```

For more information, please refer to the [SPA Mode docs][https://reactrouter.com/en/main/guides/spa-mode].

### Patch Changes

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

## 2.4.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/testing",
"version": "2.4.1",
"version": "2.5.0-pre.0",
"description": "Testing utilities for Remix apps",
"homepage": "https://remix.run",
"bugs": {
Expand All @@ -16,8 +16,8 @@
"typings": "./dist/index.d.ts",
"module": "./dist/esm/index.js",
"dependencies": {
"@remix-run/node": "2.4.1",
"@remix-run/react": "2.4.1",
"@remix-run/node": "2.5.0-pre.0",
"@remix-run/react": "2.5.0-pre.0",
"@remix-run/router": "1.14.2-pre.0",
"react-router-dom": "6.21.2-pre.0"
},
Expand Down

0 comments on commit 7cefc2d

Please sign in to comment.