Skip to content

Commit

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

* update changelogs

* bump bundle size

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Brophy <[email protected]>
  • Loading branch information
3 people committed Aug 18, 2022
1 parent 57c0b47 commit 3ffc272
Show file tree
Hide file tree
Showing 13 changed files with 125 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .changeset/big-bags-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

feat: add `relative=path` option for url-relative routing (#9160)

Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested for UI reasons:
Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure for UI reasons:

```jsx
// Contact and EditContact do not share UI layout
Expand All @@ -18,7 +18,7 @@ function EditContact() {
}
```

Without this, the user would need to reconstruct the contacts/:id url using useParams and either hardcoding the /contacts prefix or parsing it from useLocation.
Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.

This applies to all path-related hooks and components:

Expand Down
8 changes: 7 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"@remix-run/router": "0.2.0-pre.0"
},
"changesets": [
"afraid-games-laugh",
"afraid-parents-laugh",
"beige-buckets-lick",
"big-bags-report",
"brave-shirts-sneeze",
"chilled-beers-sell",
"cuddly-dingos-tickle",
Expand All @@ -36,11 +39,14 @@
"strong-bees-pay",
"stupid-dryers-shout",
"sweet-books-switch",
"sweet-eggs-hug",
"thick-lions-taste",
"thirty-monkeys-cheer",
"tough-zoos-cry",
"tricky-falcons-peel",
"unlucky-cows-rhyme",
"weak-seas-kiss"
"weak-seas-kiss",
"wise-scissors-hug",
"yellow-cherries-tell"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"none": "10 kB"
},
"packages/react-router-dom/dist/umd/react-router-dom.production.min.js": {
"none": "15.5 kB"
"none": "16 kB"
}
}
}
8 changes: 8 additions & 0 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# react-router-dom-v5-compat

## 6.4.0-pre.13

### Patch Changes

- Updated dependencies
- [email protected]
- [email protected]

## 6.4.0-pre.12

### Patch Changes
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.4.0-pre.12",
"version": "6.4.0-pre.13",
"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.4.0-pre.12"
"react-router": "6.4.0-pre.13"
},
"peerDependencies": {
"react": ">=16.8",
Expand Down
31 changes: 31 additions & 0 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# react-router-dom

## 6.4.0-pre.13

### Patch Changes

- fix: pass `useMatches` objects to `ScrollRestoration` `getKey` (#9157)
- feat: add `relative=path` option for url-relative routing (#9160)

Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure for UI reasons:

```jsx
// Contact and EditContact do not share UI layout
<Route path="contacts/:id" element={<Contact />} />
<Route path="contacts:id/edit" element={<EditContact />} />

function EditContact() {
return <Link to=".." relative="path">Cancel</Link>
}
```

Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.

This applies to all path-related hooks and components:

- `react-router`: `useHref`, `useResolvedPath`, `useNavigate`, `Navigate`
- `react-router-dom`: `useLinkClickHandler`, `useFormAction`, `useSubmit`, `Link`, `Form`
- `react-router-native`: `useLinkPressHandler`, `Link`

- fix: `useFormAction` should not include pathless splat portion (#9144)
- Updated dependencies
- react-router@6.4.0-pre.13

## 6.4.0-pre.12

### Patch Changes
Expand Down
4 changes: 2 additions & 2 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.4.0-pre.12",
"version": "6.4.0-pre.13",
"description": "Declarative routing for React web applications",
"keywords": [
"react",
Expand All @@ -23,7 +23,7 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"react-router": "6.4.0-pre.12"
"react-router": "6.4.0-pre.13"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
29 changes: 29 additions & 0 deletions packages/react-router-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# react-router-native

## 6.4.0-pre.13

### Patch Changes

- feat: add `relative=path` option for url-relative routing (#9160)

Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure for UI reasons:

```jsx
// Contact and EditContact do not share UI layout
<Route path="contacts/:id" element={<Contact />} />
<Route path="contacts:id/edit" element={<EditContact />} />

function EditContact() {
return <Link to=".." relative="path">Cancel</Link>
}
```

Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.

This applies to all path-related hooks and components:

- `react-router`: `useHref`, `useResolvedPath`, `useNavigate`, `Navigate`
- `react-router-dom`: `useLinkClickHandler`, `useFormAction`, `useSubmit`, `Link`, `Form`
- `react-router-native`: `useLinkPressHandler`, `Link`

- Updated dependencies
- react-router@6.4.0-pre.13

## 6.4.0-pre.12

### Patch Changes
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.4.0-pre.12",
"version": "6.4.0-pre.13",
"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.4.0-pre.12"
"react-router": "6.4.0-pre.13"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
29 changes: 29 additions & 0 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# react-router

## 6.4.0-pre.13

### Patch Changes

- feat: add `relative=path` option for url-relative routing (#9160)

Adds a `relative=path` option to navigation aspects to allow users to opt-into paths behaving relative to the current URL instead of the current route hierarchy. This is useful if you're sharing route patterns in a non-nested structure UI reasons:

```jsx
// Contact and EditContact do not share UI layout
<Route path="contacts/:id" element={<Contact />} />
<Route path="contacts:id/edit" element={<EditContact />} />

function EditContact() {
return <Link to=".." relative="path">Cancel</Link>
}
```

Without this, the user would need to reconstruct the `contacts/:id` url using `useParams` and either hardcoding the `/contacts` prefix or parsing it from `useLocation`.

This applies to all path-related hooks and components:

- `react-router`: `useHref`, `useResolvedPath`, `useNavigate`, `Navigate`
- `react-router-dom`: `useLinkClickHandler`, `useFormAction`, `useSubmit`, `Link`, `Form`
- `react-router-native`: `useLinkPressHandler`, `Link`

- Updated dependencies
- @remix-run/router@0.2.0-pre.8

## 6.4.0-pre.12

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "6.4.0-pre.12",
"version": "6.4.0-pre.13",
"description": "Declarative routing for React",
"keywords": [
"react",
Expand All @@ -23,7 +23,7 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"@remix-run/router": "0.2.0-pre.7"
"@remix-run/router": "0.2.0-pre.8"
},
"devDependencies": {
"react": "^18.2.0"
Expand Down
9 changes: 9 additions & 0 deletions packages/router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @remix-run/router

## 0.2.0-pre.8

### Patch Changes

- fix: avoid uneccesary re-renders on `defer` resolution (#9155)
- fix: pass `useMatches` objects to `ScrollRestoration` `getKey` (#9157)
- fix: fetcher submission revalidating fetchers using wrong key (#9166)
- fix: use a push navigation on submission errors (#9162)

## 0.2.0-pre.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/router",
"version": "0.2.0-pre.7",
"version": "0.2.0-pre.8",
"description": "Nested/Data-driven/Framework-agnostic Routing",
"keywords": [
"remix",
Expand Down

0 comments on commit 3ffc272

Please sign in to comment.