Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update version for release (pre) #7284

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
84 changes: 83 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,87 @@
"@remix-run/server-runtime": "1.19.3",
"@remix-run/testing": "1.19.3"
},
"changesets": []
"changesets": [
"add-error-to-meta",
"beige-pugs-drive",
"brown-seals-look",
"cool-penguins-film",
"cool-wombats-chew",
"create-remix-overwrite",
"create-remix",
"cuddly-rings-mate",
"curly-moons-cover",
"decouple-css-bundle-from-dev",
"deduplicate-prefetch-link-tags",
"destory-session-maxage",
"dirty-bags-wink",
"disabled-link-preload",
"empty-cameras-walk",
"enable-css-features-by-default",
"error-response-type",
"fair-falcons-wink",
"fix-commit-session-expires",
"fix-stub-route-object-type",
"fluffy-bananas-love",
"fluffy-fishes-lay",
"friendly-fireants-report",
"fuzzy-mugs-swim",
"giant-crews-care",
"global-fetch-instanceof",
"grumpy-trees-flow",
"handle-error-response",
"heavy-crabs-kick",
"improve-minified-css-compatibility",
"khaki-roses-matter",
"kind-grapes-clap",
"large-goats-double",
"light-rivers-tell",
"loud-pandas-do",
"lovely-drinks-bow",
"memory-session-id",
"moody-pants-laugh",
"neat-impalas-divide",
"olive-lemons-marry",
"orange-suits-nail",
"polyfill-package-imports-in-deps",
"popular-trains-do",
"purple-tables-switch",
"purple-zoos-refuse",
"quiet-lemons-fold",
"remix-testing-meta-links",
"remove-default-server-node-polyfills",
"remove-fetch-polyfill-references-in-adapters",
"remove-magic-import-eslint-warnings",
"remove-stream-recursion",
"remove-unstable-should-reload",
"remove-v1-meta",
"resource-route-boundary-only",
"rich-months-search",
"rotten-penguins-eat",
"selfish-months-behave",
"seven-queens-try",
"shiny-teachers-cheer",
"silver-readers-think",
"sour-parrots-dream",
"strong-rice-applaud",
"stupid-emus-repair",
"tame-moons-buy",
"tasty-apricots-doubt",
"use-fetch-duplex",
"useloaderdata-types-yarn-pnp",
"v2-default-to-esm",
"v2-remove-auto-globals-install",
"v2-remove-catch-boundary",
"v2-remove-fetcher-compat",
"v2-remove-magic-exports",
"v2-remove-normalize-form-method",
"v2-remove-unstable-warnings",
"v2-remove-use-transition",
"v2-route-convention",
"v2-serve-dynamic-import",
"v2-use-deepest-headers-function",
"wicked-points-unite",
"wild-garlics-draw",
"xdm-to-mdx"
]
}
19 changes: 19 additions & 0 deletions packages/create-remix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# `create-remix`

## 2.0.0-pre.0

### Major Changes

- The `create-remix` CLI has been rewritten to feature a cleaner interface, Git repo initialization and optional `remix.init` script execution. The interactive template prompt and official Remix stack/template shorthands have also been removed so that community/third-party templates are now on a more equal footing. ([#6887](https://github.com/remix-run/remix/pull/6887))

The code for `create-remix` has been moved out of the Remix CLI since it's not intended for use within an existing Remix application. This means that the `remix create` command is no longer available.

- Stop passing `isTypeScript` to `remix.init` script ([#7099](https://github.com/remix-run/remix/pull/7099))
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))

### Minor Changes

- Remove empty directory checking in favor of `overwrite` prompt/flag. ([#7062](https://github.com/remix-run/remix/pull/7062))

`create-remix` now allows you to write into an existing non-empty directory. It will perform a file-level comparison and if the template will overwrite any existing files in the destination directory, it will prompt you if it's OK to overwrite those files. If you answer no (the default) then it will exit without copying any files. You may skip this prompt with the `--overwrite` CLI flag.

- Support bun package manager ([#7074](https://github.com/remix-run/remix/pull/7074))

## 1.19.3

### Patch Changes
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": "1.19.3",
"version": "2.0.0-pre.0",
"description": "Create a new Remix app",
"homepage": "https://remix.run",
"bugs": {
Expand Down
32 changes: 32 additions & 0 deletions packages/remix-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# `@remix-run/architect`

## 2.0.0-pre.0

### Major Changes

- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))
- For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server. If you are using `remix-serve`, nothing is required. If you are using your own app server, you will need to install the globals yourself. ([#7009](https://github.com/remix-run/remix/pull/7009))

```js filename=server.js
import { installGlobals } from "@remix-run/node";

installGlobals();
```

source-map-support is now a responsibility of the app server. If you are using `remix-serve`, nothing is required. If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself.

```sh
npm i source-map-support
```

```js filename=server.js
import sourceMapSupport from "source-map-support";
sourceMapSupport.install();
```

### Patch Changes

- - Switch to `headers.entries()` instead of non-spec-compliant `headers.raw()` in `sendRemixResponse` ([#7150](https://github.com/remix-run/remix/pull/7150))
- Update to `@remix-run/web-fetch@4.3.7`
- remove references to fetch polyfills in node and arc adapters ([#7230](https://github.com/remix-run/remix/pull/7230))
- Updated dependencies:
- `@remix-run/node@2.0.0-pre.0`

## 1.19.3

### 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": "1.19.3",
"version": "2.0.0-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": "1.19.3",
"@remix-run/node": "2.0.0-pre.0",
"@types/aws-lambda": "^8.10.82"
},
"devDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions packages/remix-cloudflare-pages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# `@remix-run/cloudflare-pages`

## 2.0.0-pre.0

### Major Changes

- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))
- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925))

### Patch Changes

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

## 1.19.3

### 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": "1.19.3",
"version": "2.0.0-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": "1.19.3"
"@remix-run/cloudflare": "2.0.0-pre.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/remix-cloudflare-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# `@remix-run/cloudflare-workers`

## 2.0.0-pre.0

### Major Changes

- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))
- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925))

### Patch Changes

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

## 1.19.3

### 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": "1.19.3",
"version": "2.0.0-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": "1.19.3"
"@remix-run/cloudflare": "2.0.0-pre.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
Expand Down
67 changes: 67 additions & 0 deletions packages/remix-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,72 @@
# `@remix-run/cloudflare`

## 2.0.0-pre.0

### Major Changes

- Remove `createCloudflareKVSessionStorage` ([#6898](https://github.com/remix-run/remix/pull/6898))
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))
- We have made a few important changes to the route `meta` API as reflected in the v1 implementation when using the `future.v2_meta` config option. ([#6958](https://github.com/remix-run/remix/pull/6958))

- The `meta` function should no longer return an object, but an array of objects that map to the HTML tag's respective attributes. This provides more flexibility and control over how certain tags are rendered, and the order in which they appear.
- In most cases, `meta` descriptor objects render a `<meta>` tag. There are a few notable exceptions:
- `{ title: "My app" }` will render `<title>My app</title>`.
- `{ 'script:ld+json': { /* ... */ } }` will render `<script type="application/ld+json">/* ... */</script>`, where the value is serialized to JSON and rendered inside the `<script>` tag.
- `{ tagName: 'link', ...attributes }` will render `<link {...attributes} />`
- This is useful for things like setting canonical URLs. For loading assets, we encourage you to use the `links` export instead.
- It's important to note that `tagName` may only accept `meta` or `link`, so other arbitrary elements will be ignored.
- `<Meta />` will no longer render the `meta` output from the entire route hierarchy. Only the output from the leaf (current) route will be rendered unless that route does not export a `meta` function, in which case the output from the nearest ancestor route with `meta` will be rendered.
- This change comes from user feedback that auto-merging meta made effective SEO difficult to implement. Our goal is to give you as much control as you need over meta tags for each individual route.
- Our suggested approach is to **only export a `meta` function from leaf route modules**. However, if you do want to render a tag from another matched route, `meta` now accepts a `matches` argument for you to merge or override parent route meta as you'd like.
```tsx
export function meta({ matches }) {
return [
// render all ancestor route meta except for title tags
...matches
.flatMap((match) => match.meta)
.filter((match) => !("title" in match)),
{ title: "Override the title!" },
];
}
```
- The `parentsData` argument has been removed. If you need to access data from a parent route, you can use `matches` instead.
```tsx
// before
export function meta({ parentsData }) {
return [{ title: parentsData["routes/some-route"].title }];
}
// after
export function meta({ matches }) {
return [
{
title: matches.find((match) => match.id === "routes/some-route").data
.title,
},
];
}
```

- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925))
- Removed support for "magic exports" from the `remix` package. This package can be removed from your `package.json` and you should update all imports to use the source `@remix-run/*` packages: ([#6895](https://github.com/remix-run/remix/pull/6895))

```diff
- import type { ActionArgs } from "remix";
- import { json, useLoaderData } from "remix";
+ import type { ActionArgs } from "@remix-run/node";
+ import { json } from "@remix-run/node";
+ import { useLoaderData } from "@remix-run/react";
```

### Minor Changes

- Re-export new `redirectDocument` method from React Router ([#7040](https://github.com/remix-run/remix/pull/7040), [#6842](https://github.com/remix-run/remix/pull/6842)) ([#7040](https://github.com/remix-run/remix/pull/7040))

### Patch Changes

- Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` ([#7244](https://github.com/remix-run/remix/pull/7244))
- Updated dependencies:
- `@remix-run/server-runtime@2.0.0-pre.0`

## 1.19.3

### Patch 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": "1.19.3",
"version": "2.0.0-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": "1.19.3"
"@remix-run/server-runtime": "2.0.0-pre.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230518.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/remix-css-bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @remix-run/css-bundle

## 2.0.0-pre.0

### Major Changes

- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))

### Patch Changes

- Decouple the `@remix-run/dev` package from the contents of the `@remix-run/css-bundle` package. ([#6982](https://github.com/remix-run/remix/pull/6982))

The contents of the `@remix-run/css-bundle` package are now entirely managed by the Remix compiler. Even though it's still recommended that your Remix dependencies all share the same version, this change ensures that there are no runtime errors when upgrading `@remix-run/dev` without upgrading `@remix-run/css-bundle`.

## 1.19.3

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.19.3) for an overview of all changes in v1.19.3.
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": "1.19.3",
"version": "2.0.0-pre.0",
"description": "CSS bundle href when using CSS bundling features in Remix",
"homepage": "https://remix.run",
"bugs": {
Expand Down