Skip to content

Commit

Permalink
chore: Update version for release (pre) (#8345)
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 Dec 21, 2023
1 parent dee168f commit 3a8e7a8
Show file tree
Hide file tree
Showing 32 changed files with 204 additions and 33 deletions.
13 changes: 12 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@
"@remix-run/server-runtime": "2.4.0",
"@remix-run/testing": "2.4.0"
},
"changesets": []
"changesets": [
"angry-poets-accept",
"big-cooks-confess",
"breezy-grapes-roll",
"breezy-walls-scream",
"create-remix-fetch",
"poor-eels-bow",
"rude-keys-heal",
"server-loader-error",
"seven-bees-thank",
"sour-snakes-melt"
]
}
6 changes: 6 additions & 0 deletions packages/create-remix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# `create-remix`

## 2.4.1-pre.0

### Patch Changes

- Switch to using `@remix-run/web-fetch` instead of `node-fetch` inside the `create-remix` CLI ([#7345](https://github.com/remix-run/remix/pull/7345))

## 2.4.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.4.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.4.0",
"version": "2.4.1-pre.0",
"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.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/node@2.4.1-pre.0`

## 2.4.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.4.0",
"version": "2.4.1-pre.0",
"description": "Architect server request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,7 +15,7 @@
"typings": "dist/index.d.ts",
"dependencies": {
"@architect/functions": "^5.2.0",
"@remix-run/node": "2.4.0",
"@remix-run/node": "2.4.1-pre.0",
"@types/aws-lambda": "^8.10.82"
},
"devDependencies": {
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.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/cloudflare@2.4.1-pre.0`

## 2.4.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.4.0",
"version": "2.4.1-pre.0",
"description": "Cloudflare Pages request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,7 +15,7 @@
"typings": "dist/index.d.ts",
"module": "dist/esm/index.js",
"dependencies": {
"@remix-run/cloudflare": "2.4.0"
"@remix-run/cloudflare": "2.4.1-pre.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
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.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/cloudflare@2.4.1-pre.0`

## 2.4.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.4.0",
"version": "2.4.1-pre.0",
"description": "Cloudflare worker request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -16,7 +16,7 @@
"module": "dist/esm/index.js",
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.1.3",
"@remix-run/cloudflare": "2.4.0"
"@remix-run/cloudflare": "2.4.1-pre.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
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.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/server-runtime@2.4.1-pre.0`

## 2.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.4.0",
"version": "2.4.1-pre.0",
"description": "Cloudflare platform abstractions for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,7 +15,7 @@
"typings": "dist/index.d.ts",
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.1.3",
"@remix-run/server-runtime": "2.4.0"
"@remix-run/server-runtime": "2.4.1-pre.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/remix-css-bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @remix-run/css-bundle

## 2.4.1-pre.0

## 2.4.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.4.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.4.0",
"version": "2.4.1-pre.0",
"description": "CSS bundle href when using CSS bundling features in Remix",
"homepage": "https://remix.run",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-deno/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/deno`

## 2.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/server-runtime@2.4.1-pre.0`

## 2.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-deno/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/deno",
"version": "2.4.0",
"version": "2.4.1-pre.0",
"description": "Deno platform abstractions for Remix",
"homepage": "https://remix.run",
"main": "./index.ts",
Expand All @@ -15,7 +15,7 @@
"license": "MIT",
"sideEffects": false,
"dependencies": {
"@remix-run/server-runtime": "2.4.0",
"@remix-run/server-runtime": "2.4.1-pre.0",
"mime": "^3.0.0"
},
"peerDependencies": {
Expand Down
70 changes: 70 additions & 0 deletions packages/remix-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,75 @@
# `@remix-run/dev`

## 2.4.1-pre.0

### Patch Changes

- Vite: Error messages when `.server` files are referenced by client ([#8267](https://github.com/remix-run/remix/pull/8267))

- Previously, referencing a `.server` module from client code resulted in an error message like:
- `The requested module '/app/models/answer.server.ts' does not provide an export named 'isDateType'`
- This was confusing because `answer.server.ts` _does_ provide the `isDateType` export, but Remix was replacing `.server` modules with empty modules (`export {}`) for the client build
- Now, Remix explicitly fails at compile time when a `.server` module is referenced from client code and includes dedicated error messages depending on whether the import occurs in a route or a non-route module
- The error messages also include links to relevant documentation

- Remove `unstable_viteServerBuildModuleId` in favor of manually referencing virtual module name `"virtual:remix/server-build"`. ([#8264](https://github.com/remix-run/remix/pull/8264))

**This is a breaking change for projects using the unstable Vite plugin with a custom server.**

This change was made to avoid issues where `@remix-run/dev` could be inadvertently required in your server's production dependencies.

Instead, you should manually write the virtual module name `"virtual:remix/server-build"` when calling `ssrLoadModule` in development.

```diff
-import { unstable_viteServerBuildModuleId } from "@remix-run/dev";

// ...

app.all(
"*",
createRequestHandler({
build: vite
- ? () => vite.ssrLoadModule(unstable_viteServerBuildModuleId)
+ ? () => vite.ssrLoadModule("virtual:remix/server-build")
: await import("./build/server/index.js"),
})
);
```

- Add `vite:dev` and `vite:build` commands to the Remix CLI. ([#8211](https://github.com/remix-run/remix/pull/8211))

In order to handle upcoming Remix features where your plugin options can impact the number of Vite builds required, you should now run your Vite `dev` and `build` processes via the Remix CLI.

```diff
{
"scripts": {
- "dev": "vite dev",
- "build": "vite build && vite build --ssr"
+ "dev": "remix vite:dev",
+ "build": "remix vite:build"
}
}
```

- Vite: Preserve names for exports from `.client` modules ([#8200](https://github.com/remix-run/remix/pull/8200))

Unlike `.server` modules, the main idea is not to prevent code from leaking into the server build
since the client build is already public. Rather, the goal is to isolate the SSR render from client-only code.
Routes need to import code from `.client` modules without compilation failing and then rely on runtime checks
or otherwise ensure that execution only happens within a client-only context (e.g. event handlers, `useEffect`).

Replacing `.client` modules with empty modules would cause the build to fail as ESM named imports are statically analyzed.
So instead, we preserve the named export but replace each exported value with `undefined`.
That way, the import is valid at build time and standard runtime checks can be used to determine if the
code is running on the server or client.

- Disable watch mode in Vite child compiler during build ([#8342](https://github.com/remix-run/remix/pull/8342))
- Vite: Show warning when source maps are enabled in production build ([#8222](https://github.com/remix-run/remix/pull/8222))
- Updated dependencies:
- `@remix-run/serve@2.4.1-pre.0`
- `@remix-run/server-runtime@2.4.1-pre.0`
- `@remix-run/node@2.4.1-pre.0`

## 2.4.0

### Minor 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.0",
"version": "2.4.1-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.0",
"@remix-run/node": "2.4.1-pre.0",
"@remix-run/router": "1.14.0",
"@remix-run/server-runtime": "2.4.0",
"@remix-run/server-runtime": "2.4.1-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.0",
"@remix-run/serve": "2.4.1-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.0",
"@remix-run/serve": "^2.4.1-pre.0",
"typescript": "^5.1.0",
"vite": "^5.0.0"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/remix-eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# `@remix-run/eslint-config`

## 2.4.1-pre.0

## 2.4.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.4.0.
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/eslint-config",
"version": "2.4.0",
"version": "2.4.1-pre.0",
"description": "ESLint configuration for Remix projects",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
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.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/node@2.4.1-pre.0`

## 2.4.0

### 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.0",
"version": "2.4.1-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.0"
"@remix-run/node": "2.4.1-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.4.1-pre.0

### Patch Changes

- Updated dependencies:
- `@remix-run/server-runtime@2.4.1-pre.0`

## 2.4.0

### Minor 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.0",
"version": "2.4.1-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.0",
"@remix-run/server-runtime": "2.4.1-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
Loading

0 comments on commit 3a8e7a8

Please sign in to comment.