Skip to content

Commit 3b51ee9

Browse files
authored
Merge branch 'master' into fix/form-defaults
2 parents 3fb1b43 + fc8e1d4 commit 3b51ee9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+4788
-7636
lines changed

.github/CONTRIBUTING.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@ To test the SSR mode, first run the build, and then start the SSR server:
5656

5757
```sh
5858
npm run build
59-
npm run ssr:serve
59+
php artisan inertia:start-ssr
60+
```
61+
62+
## Testing
63+
64+
Inertia.js uses [Playwright](https://playwright.dev/) for testing. To run the tests, use the following command:
65+
66+
```sh
67+
cd tests && npx playwright test
6068
```
6169

6270
## Publishing
@@ -66,5 +74,5 @@ This section is really for the benefit of the core maintainers.
6674
1. Increment the version numbers in the `package.json` file for each package, making sure to also update the adapter dependencies on `@inertiajs/core`.
6775
2. Run `npm install` to update the top-level `package-lock.json` file.
6876
3. Update `CHANGELOG.md`.
69-
4. Run `npm publish` for each package. This will automatically run the necessary build step. When publishing beta releases, make sure to run `npm publish --tag=beta`.
77+
4. Run `npm publish` for each package. This will automatically run the necessary build step. When publishing beta releases, make sure to run `npm publish --tag=beta` or `npm publish --tag=next` if it's `next`.
7078
5. Add release notes to [GitHub](https://github.com/inertiajs/inertia/releases).

.github/FUNDING.yml

-1
This file was deleted.

.github/workflows/build.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version: 20.15
2121

2222
- name: Cache node modules
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
2525
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('package-lock.json') }}
2626
path: |
@@ -30,11 +30,6 @@ jobs:
3030
3131
- name: Build Inertia
3232
run: |
33-
rm package-lock.json
3433
npm install
3534
cd packages/core && npm run build
3635
cd ../${{ matrix.adapter }} && npm run build
37-
38-
# - name: Build Playground
39-
# run: |
40-
# cd playgrounds/${{ matrix.adapter }} && npm run build

.github/workflows/playwright.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919

2020
- name: Build Inertia
2121
run: |
22-
rm package-lock.json
2322
npm install
2423
cd packages/core
2524
npm run build

CHANGELOG.md

+49-22
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,65 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
For changes prior to v1.0.0, see the [legacy releases](https://legacy.inertiajs.com/releases).
99

10-
## [Unreleased](https://github.com/inertiajs/inertia/compare/v2.0.0-beta.2...HEAD)
10+
## [Unreleased](https://github.com/inertiajs/inertia/compare/v2.0.3...HEAD)
1111

12-
- Nothing yet!
12+
- Nothing yet
1313

14-
## [v2.0.0-beta.2](https://github.com/inertiajs/inertia/compare/v2.0.0-beta.1...v2.0.0-beta.2)
14+
## [v2.0.3](https://github.com/inertiajs/inertia/compare/v2.0.2...v2.0.3)
1515

16-
- [2.x] Fix issue where initial page data is coming from history state ([#2023](https://github.com/inertiajs/inertia/pull/2023))
17-
- [2.x] Fix onClick in React adapter ([#2019](https://github.com/inertiajs/inertia/pull/2019))
18-
- [2.x] Export usePrefetch for react ([#2016](https://github.com/inertiajs/inertia/pull/2016))
19-
- [2.x] Rename WhenVisible "elementTag" prop to "as" ([#2009](https://github.com/inertiajs/inertia/pull/2009))
20-
- [2.x] $page url should not include the host ([#2032](https://github.com/inertiajs/inertia/pull/2032))
21-
- [2.x] Suppress Svelte accessibility warnings from Playwright logs ([#2033](https://github.com/inertiajs/inertia/pull/2033))
22-
- [2.x] Change TypeScript module resolution in the Svelte adapter ([#2035](https://github.com/inertiajs/inertia/pull/2035))
23-
- [2.x] Fix multi byte strings in history encryption ([#2030](https://github.com/inertiajs/inertia/pull/2030))
24-
- [2.x] Load deferred props on every page swap ([#2024](https://github.com/inertiajs/inertia/pull/2024))
25-
- [2.x] Refactor createInertiaApp in Svelte adapter ([#2036](https://github.com/inertiajs/inertia/pull/2036))
26-
- [2.x] Fix `<Deferred />` in Svelte adapter ([#2037](https://github.com/inertiajs/inertia/pull/2037))
27-
- [2.x] Fix `usePrefetch` in SSR mode in Svelte adapter ([#2034](https://github.com/inertiajs/inertia/pull/2034))
16+
- Fix: Reload on mount ([#2200](https://github.com/inertiajs/inertia/pull/2200))
2817

29-
## [v2.0.0-beta.1](https://github.com/inertiajs/inertia/compare/v1.2.0...v2.0.0-beta.1)
18+
## [v2.0.2](https://github.com/inertiajs/inertia/compare/v2.0.1...v2.0.2)
3019

31-
- First beta release for the upcoming Inertia.js v2.0. View documentation and upgrade guide at https://v2.inertiajs.com.
20+
- Fix SSR with scroll restoration ([#2190](https://github.com/inertiajs/inertia/pull/2190))
21+
- Fix for scroll + back bug ([#2191](https://github.com/inertiajs/inertia/pull/2191))
22+
- Backport 1.x fixes from [v1.3.0](https://github.com/inertiajs/inertia/releases/tag/v1.3.0) release ([#2193](https://github.com/inertiajs/inertia/pull/2193))
3223

33-
## [v1.3.0-beta.2](https://github.com/inertiajs/inertia/compare/v1.3.0-beta.1...v1.3.0-beta.2)
24+
## [v2.0.1](https://github.com/inertiajs/inertia/compare/v2.0.0...v2.0.1)
3425

35-
- Fix import in Svelte adapter ([#2002](https://github.com/inertiajs/inertia/pull/2002))
36-
- Improve types in Svelte adapter ([69292e](https://github.com/inertiajs/inertia/commit/69292ef3592ccca5e0f05f7ce131a53f6c1ba22b), [#2003](https://github.com/inertiajs/inertia/pull/2003), [#2005](https://github.com/inertiajs/inertia/pull/2005))
26+
- Fix playground dependencies ([#2070](https://github.com/inertiajs/inertia/pull/2070))
27+
- Removed Vitest tests + dependencies ([#2175](https://github.com/inertiajs/inertia/pull/2175))
28+
- Augment `vue` instead of `@vue/runtime-core` ([#2099](https://github.com/inertiajs/inertia/pull/2099))
29+
- Fix prefetch missing `cacheFor` default value ([#2136](https://github.com/inertiajs/inertia/pull/2136))
30+
- Fix `useForm` re-renders by memoizing functions in React [#2146](https://github.com/inertiajs/inertia/pull/2146)
31+
- WhenVisible useEffect function is not recreated when params change. ([#2153](https://github.com/inertiajs/inertia/pull/2153))
32+
- Ensure callback execution ([#2163](https://github.com/inertiajs/inertia/pull/2163))
33+
- More resilient logic for stripping the origin from page URLs ([#2164](https://github.com/inertiajs/inertia/pull/2164))
34+
- Add helper scripts for running tests ([#2173](https://github.com/inertiajs/inertia/pull/2173))
35+
- Export `InertiaFormProps` in React ([#2161](https://github.com/inertiajs/inertia/pull/2161))
36+
- Use default empty object in `useForm` Vue and Svelte ([#2052](https://github.com/inertiajs/inertia/pull/2052))
37+
- Remove `data` option from `useForm` options type ([#2060](https://github.com/inertiajs/inertia/pull/2060))
38+
- Take over scroll restoration from browser ([#2051](https://github.com/inertiajs/inertia/pull/2051))
39+
40+
## [v2.0.0](https://github.com/inertiajs/inertia/compare/v1.2.0...v2.0.0)
41+
42+
### Added
43+
44+
- Add polling
45+
- Add link prefetching
46+
- Add deferred props
47+
- Add lazy loading of data when scrolling
48+
- Add history encryption API
49+
- Add React 19 support ([#2131](https://github.com/inertiajs/inertia/pull/2131))
50+
- Add client side visits ([#2130](https://github.com/inertiajs/inertia/pull/2130))
51+
52+
### Changed
53+
54+
- Removal of NProgress dependency ([#2045](https://github.com/inertiajs/inertia/pull/2045))
55+
- Change TypeScript module resolution in the Svelte adapter ([#2035](https://github.com/inertiajs/inertia/pull/2035))
56+
- Refactor `createInertiaApp` in Svelte adapter ([#2036](https://github.com/inertiajs/inertia/pull/2036))
57+
58+
### Fixed
59+
60+
- Fix: make Link href prop reactive ([#2089](https://github.com/inertiajs/inertia/pull/2089))
3761

38-
## [v1.3.0-beta.1](https://github.com/inertiajs/inertia/compare/v1.2.0...v1.3.0-beta.1)
62+
## [v1.3.0](https://github.com/inertiajs/inertia/compare/v1.2.0...v1.3.0)
3963

4064
### Added
4165

66+
- Add React 19 support ([#2121](https://github.com/inertiajs/inertia/pull/2121))
4267
- Add Svelte 5 support ([#1970](https://github.com/inertiajs/inertia/pull/1970))
43-
- Add TypeScript support to Svelte adapter ([#1866](https://github.com/inertiajs/inertia/pull/1866))
68+
- Add TypeScript support to Svelte adapter ([#1866](https://github.com/inertiajs/inertia/pull/1866), [69292e](https://github.com/inertiajs/inertia/commit/69292ef3592ccca5e0f05f7ce131a53f6c1ba22b), [#2003](https://github.com/inertiajs/inertia/pull/2003), [#2005](https://github.com/inertiajs/inertia/pull/2005))
4469

4570
### Changed
4671

@@ -64,6 +89,8 @@ For changes prior to v1.0.0, see the [legacy releases](https://legacy.inertiajs.
6489
- Fix props reactivity in Svelte adapter ([#1969](https://github.com/inertiajs/inertia/pull/1969))
6590
- Fix `<Render />` component to respect `preserveState` option in Svelte adapter ([#1943](https://github.com/inertiajs/inertia/pull/1943))
6691
- Fix 'received an unexpected slot "default"' warning in Svelte adapter ([#1941](https://github.com/inertiajs/inertia/pull/1941))
92+
- Fix command + click behavior on links in React adapter ([#2132](https://github.com/inertiajs/inertia/pull/2132))
93+
- Fix import in Svelte adapter ([#2002](https://github.com/inertiajs/inertia/pull/2002))
6794

6895
## [v1.2.0](https://github.com/inertiajs/inertia/compare/v1.1.0...v1.2.0)
6996

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps
66

77
If you're interested in contributing to Inertia.js, please read our [contributing guide](https://github.com/inertiajs/inertia/blob/master/.github/CONTRIBUTING.md).
88

9-
## Sponsors
9+
## Partners
1010

11-
A huge thanks to all [our sponsors](https://inertiajs.com/sponsors) who help push Inertia.js development forward! In particular, we'd like to say a special thank you to our partners:
11+
A huge thanks to [Laravel Forge](https://forge.laravel.com/) for sponsoring the project.
1212

1313
<p>
1414
<a href="https://forge.laravel.com">
1515
<img src="./.github/sponsors/forge.svg" width="150" alt="Laravel Forge">
1616
</a>
1717
</p>
18-
19-
If you'd like to become a sponsor, please [see here](https://github.com/sponsors/reinink) for more information. 💜

0 commit comments

Comments
 (0)