Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .changeset/navigate-scroll-option.md

This file was deleted.

2 changes: 1 addition & 1 deletion integrations/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"miniflare": "^2.4.0"
},
"peerDependencies": {
"@quilted/quilt": "workspace:^0.10.1",
"@quilted/quilt": "workspace:^0.10.2",
"@quilted/rollup": "workspace:^0.6.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion integrations/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/common-tags": "^1.8.4"
},
"peerDependencies": {
"@quilted/quilt": "workspace:^0.10.1",
"@quilted/quilt": "workspace:^0.10.2",
"@quilted/rollup": "workspace:^0.6.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion integrations/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@quilted/useful-types": "workspace:^2.0.0"
},
"peerDependencies": {
"@quilted/quilt": "workspace:^0.10.1",
"@quilted/quilt": "workspace:^0.10.2",
"@tanstack/react-query": "^5.0.0",
"preact": "^10.29.2"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/preact-localize/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @quilted/react-localize

## 0.4.7

### Patch Changes

- Updated dependencies [[`6e61707`](https://github.com/lemonmade/quilt/commit/6e6170714edc8ea4d9a6a6b304e4ce4e7a5a7d3c)]:
- @quilted/preact-router@0.6.0

## 0.4.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/preact-localize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@quilted/preact-localize",
"description": "Utilities for localizing React applications",
"type": "module",
"version": "0.4.6",
"version": "0.4.7",
"license": "MIT",
"engines": {
"node": ">=14.0.0"
Expand Down Expand Up @@ -33,7 +33,7 @@
"@quilted/localize": "workspace:^0.2.3",
"@quilted/preact-browser": "workspace:^0.2.9",
"@quilted/preact-context": "workspace:^0.1.6",
"@quilted/preact-router": "workspace:^0.5.0",
"@quilted/preact-router": "workspace:^0.6.0",
"@quilted/signals": "workspace:^0.2.5"
},
"peerDependencies": {
Expand Down
23 changes: 23 additions & 0 deletions packages/preact-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @quilted/preact-router

## 0.6.0

### Minor Changes

- [#975](https://github.com/lemonmade/quilt/pull/975) [`6e61707`](https://github.com/lemonmade/quilt/commit/6e6170714edc8ea4d9a6a6b304e4ce4e7a5a7d3c) Thanks [@lemonmade](https://github.com/lemonmade)! - Added a `scroll` option to `Navigation.navigate()` and `<Link>`, and made the URL change — not the history operation — decide the default scroll behavior.

For push and replace navigations alike, the default is now:

- Changing the **pathname or hash** resets the scroll position to the top of the page (or scrolls to the URL's hash target). Previously, replace navigations never reset.
- Changing **only the search params** keeps the current scroll position — search-only navigations usually encode UI state (filters, tabs, a selected calendar day) rather than a new location. Previously, push navigations always reset.

Pass `scroll` to override the default in either direction:

```ts
navigation.navigate(url, {scroll: false});
```

```tsx
<Link to={url} scroll={false}>
Select day
</Link>
```

## 0.5.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/preact-router/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@quilted/preact-router",
"type": "module",
"version": "0.5.1",
"version": "0.6.0",
"repository": {
"type": "git",
"url": "https://github.com/lemonmade/quilt.git",
Expand Down
8 changes: 8 additions & 0 deletions packages/quilt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @quilted/quilt

## 0.10.2

### Patch Changes

- Updated dependencies [[`6e61707`](https://github.com/lemonmade/quilt/commit/6e6170714edc8ea4d9a6a6b304e4ce4e7a5a7d3c)]:
- @quilted/preact-router@0.6.0
- @quilted/preact-localize@0.4.7

## 0.10.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/quilt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@quilted/quilt",
"type": "module",
"version": "0.10.1",
"version": "0.10.2",
"repository": {
"type": "git",
"url": "https://github.com/lemonmade/quilt.git",
Expand Down Expand Up @@ -250,9 +250,9 @@
"@quilted/preact-browser": "workspace:^0.2.9",
"@quilted/preact-context": "workspace:^0.1.6",
"@quilted/preact-graphql": "workspace:^0.2.0",
"@quilted/preact-localize": "workspace:^0.4.6",
"@quilted/preact-localize": "workspace:^0.4.7",
"@quilted/preact-performance": "workspace:^0.1.4",
"@quilted/preact-router": "workspace:^0.5.0",
"@quilted/preact-router": "workspace:^0.6.0",
"@quilted/preact-signals": "workspace:^0.1.6",
"@quilted/preact-testing": "workspace:^0.1.10",
"@quilted/preact-workers": "workspace:^0.2.3",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading