Skip to content

Commit

Permalink
chore: Update version for release (#10636)
Browse files Browse the repository at this point in the history
* chore: Update version for release

* Update changelogs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Brophy <matt@brophy.org>
  • Loading branch information
3 people authored Jun 23, 2023
1 parent 0ec67e6 commit 09b6cbe
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 242 deletions.
6 changes: 0 additions & 6 deletions .changeset/blocker-key-strict-mode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/brave-mails-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/formdata-submitter.md

This file was deleted.

25 changes: 0 additions & 25 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-islands-cough.md

This file was deleted.

42 changes: 0 additions & 42 deletions .changeset/raw-payload-submission-router.md

This file was deleted.

53 changes: 0 additions & 53 deletions .changeset/raw-payload-submission.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/skip-fetcher-revalidate.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/smart-pots-repair.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strip-basename-getkey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strip-blocker-basename.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/sync-window-location.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/tsc-skiplibcheck-react17.md

This file was deleted.

16 changes: 4 additions & 12 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
# `react-router-dom-v5-compat`

## 6.14.0-pre.1
## 6.14.0

### Patch Changes

- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Updated dependencies:
- `react-router-dom@6.14.0-pre.1`
- `react-router@6.14.0-pre.1`

## 6.14.0-pre.0

### Patch Changes

- upgrade typescript to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Updated dependencies:
- `react-router@6.14.0-pre.0`
- `react-router-dom@6.14.0-pre.0`
- `react-router@6.14.0`
- `react-router-dom@6.14.0`

## 6.13.0

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-dom-v5-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom-v5-compat",
"version": "6.14.0-pre.1",
"version": "6.14.0",
"description": "Migration path to React Router v6 from v4/5",
"keywords": [
"react",
Expand All @@ -24,7 +24,7 @@
"types": "./dist/index.d.ts",
"dependencies": {
"history": "^5.3.0",
"react-router": "6.14.0-pre.1"
"react-router": "6.14.0"
},
"peerDependencies": {
"react": ">=16.8",
Expand Down
33 changes: 15 additions & 18 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
# `react-router-dom`

## 6.14.0-pre.1

### Patch Changes

- (Remove) Fix FormData submitter feature detection check ([#10627](https://github.com/remix-run/react-router/pull/10627))
- Updated dependencies:
- `react-router@6.14.0-pre.1`

## 6.14.0-pre.0
## 6.14.0

### Minor Changes

- Add support for `application/json` and `text/plain` encodings for `useSubmit`/`fetcher.submit`. To reflect these additional types, `useNavigation`/`useFetcher` now also contain `navigation.json`/`navigation.text` and `fetcher.json`/`fetcher.text` which include the json/text submission if applicable. ([#10413](https://github.com/remix-run/react-router/pull/10413))
- Add support for `application/json` and `text/plain` encodings for `useSubmit`/`fetcher.submit`. To reflect these additional types, `useNavigation`/`useFetcher` now also contain `navigation.json`/`navigation.text` and `fetcher.json`/`fetcher.text` which include the json/text submission if applicable ([#10413](https://github.com/remix-run/react-router/pull/10413))

```jsx
// The default behavior will still serialize as FormData
function Component() {
let navigation = useNavigation();
let submit = useSubmit();
submit({ key: "value" });
submit({ key: "value" }, { method: "post" });
// navigation.formEncType => "application/x-www-form-urlencoded"
// navigation.formData => FormData instance
}
Expand All @@ -33,8 +25,9 @@
```js
// Opt-into JSON encoding with `encType: "application/json"`
function Component() {
let navigation = useNavigation();
let submit = useSubmit();
submit({ key: "value" }, { encType: "application/json" });
submit({ key: "value" }, { method: "post", encType: "application/json" });
// navigation.formEncType => "application/json"
// navigation.json => { key: "value" }
}
Expand All @@ -48,8 +41,9 @@
```js
// Opt-into text encoding with `encType: "text/plain"`
function Component() {
let navigation = useNavigation();
let submit = useSubmit();
submit("Text submission", { encType: "text/plain" });
submit("Text submission", { method: "post", encType: "text/plain" });
// navigation.formEncType => "text/plain"
// navigation.text => "Text submission"
}
Expand All @@ -62,13 +56,16 @@

### Patch Changes

- When submitting a form from a `submitter` element, prefer the built-in `new FormData(form, submitter)` instead of the previous manual approach in modern browsers (those that support the new `submitter` parameter). For browsers that don't support it, we continue to just append the submit button's entry to the end, and we also add rudimentary support for `type="image"` buttons. If developers want full spec-compliant support for legacy browsers, they can use the `formdata-submitter-polyfill`. ([#9865](https://github.com/remix-run/react-router/pull/9865))
- upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering. However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.) ([#10448](https://github.com/remix-run/react-router/pull/10448))
- When submitting a form from a `submitter` element, prefer the built-in `new FormData(form, submitter)` instead of the previous manual approach in modern browsers (those that support the new `submitter` parameter) ([#9865](https://github.com/remix-run/react-router/pull/9865), [#10627](https://github.com/remix-run/react-router/pull/10627))
- For browsers that don't support it, we continue to just append the submit button's entry to the end, and we also add rudimentary support for `type="image"` buttons
- If developers want full spec-compliant support for legacy browsers, they can use the `formdata-submitter-polyfill`
- Call `window.history.pushState/replaceState` before updating React Router state (instead of after) so that `window.location` matches `useLocation` during synchronous React 17 rendering ([#10448](https://github.com/remix-run/react-router/pull/10448))
- ⚠️ However, generally apps should not be relying on `window.location` and should always reference `useLocation` when possible, as `window.location` will not be in sync 100% of the time (due to `popstate` events, concurrent mode, etc.)
- Fix `tsc --skipLibCheck:false` issues on React 17 ([#10622](https://github.com/remix-run/react-router/pull/10622))
- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Updated dependencies:
- `react-router@6.14.0-pre.0`
- `@remix-run/router@1.7.0-pre.0`
- `react-router@6.14.0`
- `@remix-run/router@1.7.0`

## 6.13.0

Expand Down
6 changes: 3 additions & 3 deletions packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom",
"version": "6.14.0-pre.1",
"version": "6.14.0",
"description": "Declarative routing for React web applications",
"keywords": [
"react",
Expand All @@ -23,8 +23,8 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"@remix-run/router": "1.7.0-pre.0",
"react-router": "6.14.0-pre.1"
"@remix-run/router": "1.7.0",
"react-router": "6.14.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
13 changes: 3 additions & 10 deletions packages/react-router-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
# `react-router-native`

## 6.14.0-pre.1
## 6.14.0

### Patch Changes

- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Updated dependencies:
- `react-router@6.14.0-pre.1`

## 6.14.0-pre.0

### Patch Changes

- upgrade typescript to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Updated dependencies:
- `react-router@6.14.0-pre.0`
- `react-router@6.14.0`

## 6.13.0

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-native",
"version": "6.14.0-pre.1",
"version": "6.14.0",
"description": "Declarative routing for React Native applications",
"keywords": [
"react",
Expand All @@ -22,7 +22,7 @@
"types": "./dist/index.d.ts",
"dependencies": {
"@ungap/url-search-params": "^0.1.4",
"react-router": "6.14.0-pre.1"
"react-router": "6.14.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
8 changes: 3 additions & 5 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# `react-router`

## 6.14.0-pre.1

## 6.14.0-pre.0
## 6.14.0

### Patch Changes

- Strip `basename` from locations provided to `unstable_useBlocker` functions to match `useLocation` ([#10573](https://github.com/remix-run/react-router/pull/10573))
- Fix `generatePath` when passed a numeric `0` value parameter ([#10612](https://github.com/remix-run/react-router/pull/10612))
- Fix `unstable_useBlocker` key issues in `StrictMode` ([#10573](https://github.com/remix-run/react-router/pull/10573))
- Fix `tsc --skipLibCheck:false` issues on React 17 ([#10622](https://github.com/remix-run/react-router/pull/10622))
- upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Upgrade `typescript` to 5.1 ([#10581](https://github.com/remix-run/react-router/pull/10581))
- Updated dependencies:
- `@remix-run/router@1.7.0-pre.0`
- `@remix-run/router@1.7.0`

## 6.13.0

Expand Down
Loading

0 comments on commit 09b6cbe

Please sign in to comment.