Skip to content

Commit 082e32a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into nested-paths-in-form
2 parents 32ef9c7 + 37f9180 commit 082e32a

File tree

7 files changed

+147
-20
lines changed

7 files changed

+147
-20
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ For changes prior to v1.0.0, see the [legacy releases](https://legacy.inertiajs.
99

1010
## [Unreleased](https://github.com/inertiajs/inertia/compare/v2.0.3...HEAD)
1111

12-
- Nothing yet
12+
- Nothing yet!
13+
14+
## [v2.0.4](https://github.com/inertiajs/inertia/compare/v2.0.3...v2.0.4)
15+
16+
- Fix anchor links on initial visits ([#2258](https://github.com/inertiajs/inertia/pull/2258))
1317

1418
## [v2.0.3](https://github.com/inertiajs/inertia/compare/v2.0.2...v2.0.3)
1519

package-lock.json

+129-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inertiajs/core",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"license": "MIT",
55
"description": "A framework for creating server-driven single page apps.",
66
"contributors": [

packages/core/src/initialVisit.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export class InitialVisit {
9393
}
9494

9595
currentPage.set(currentPage.get(), { preserveScroll: true, preserveState: true }).then(() => {
96-
Scroll.restore(history.getScrollRegions())
96+
if (navigationType.isReload()) {
97+
Scroll.restore(history.getScrollRegions())
98+
}
9799
fireNavigateEvent(currentPage.get())
98100
})
99101
}

packages/react/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inertiajs/react",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"license": "MIT",
55
"description": "The React adapter for Inertia.js",
66
"contributors": [
@@ -59,7 +59,7 @@
5959
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
6060
},
6161
"dependencies": {
62-
"@inertiajs/core": "2.0.3",
63-
"lodash": "^4.5.0"
62+
"@inertiajs/core": "2.0.4",
63+
"lodash.isequal": "^4.5.0"
6464
}
6565
}

packages/svelte/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inertiajs/svelte",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"license": "MIT",
55
"description": "The Svelte adapter for Inertia.js",
66
"contributors": [
@@ -43,7 +43,7 @@
4343
"svelte": "^4.0.0 || ^5.0.0 || ^5.0.0-next.244"
4444
},
4545
"dependencies": {
46-
"@inertiajs/core": "2.0.3",
46+
"@inertiajs/core": "2.0.4",
4747
"html-escape": "^2.0.0",
4848
"lodash": "^4.5.0"
4949
},

packages/vue3/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inertiajs/vue3",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"license": "MIT",
55
"description": "The Vue 3 adapter for Inertia.js",
66
"contributors": [
@@ -58,7 +58,8 @@
5858
"vue": "^3.0.0"
5959
},
6060
"dependencies": {
61-
"@inertiajs/core": "2.0.3",
62-
"lodash": "^4.5.0"
61+
"@inertiajs/core": "2.0.4",
62+
"lodash.clonedeep": "^4.5.0",
63+
"lodash.isequal": "^4.5.0"
6364
}
6465
}

0 commit comments

Comments
 (0)