Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: inertiajs/inertia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.0
Choose a base ref
...
head repository: inertiajs/inertia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 9, 2024

  1. Copy the full SHA
    1c552fc View commit details
  2. Create Deferred.vue

    joetannenbaum committed Jul 9, 2024
    Copy the full SHA
    edfc22c View commit details
  3. Create usePoll.ts

    joetannenbaum committed Jul 9, 2024
    Copy the full SHA
    0dd8bcd View commit details
  4. Copy the full SHA
    b8ef9dc View commit details
  5. Update request.test.ts

    joetannenbaum committed Jul 9, 2024
    Copy the full SHA
    64ab430 View commit details
  6. Copy the full SHA
    4f966fd View commit details
  7. Copy the full SHA
    6e81699 View commit details

Commits on Jul 10, 2024

  1. Copy the full SHA
    034b0be View commit details
  2. Copy the full SHA
    e84d2fe View commit details
  3. skip lib check

    joetannenbaum committed Jul 10, 2024
    Copy the full SHA
    8acd87e View commit details
  4. Copy the full SHA
    543560c View commit details
  5. Update tsconfig.json

    joetannenbaum committed Jul 10, 2024
    Copy the full SHA
    81f1635 View commit details
  6. Copy the full SHA
    b9454aa View commit details
  7. Copy the full SHA
    70080e2 View commit details

Commits on Jul 11, 2024

  1. Copy the full SHA
    76d5169 View commit details
  2. Update Async.vue

    joetannenbaum committed Jul 11, 2024
    Copy the full SHA
    6cdb1dc View commit details
  3. fix for infinite loop

    joetannenbaum committed Jul 11, 2024
    Copy the full SHA
    17ca3a9 View commit details
  4. Copy the full SHA
    c1f492c View commit details
  5. this -> scroll

    joetannenbaum committed Jul 11, 2024
    Copy the full SHA
    b92a229 View commit details
  6. Copy the full SHA
    3f9a332 View commit details
  7. Copy the full SHA
    d268021 View commit details
  8. Update link.ts

    joetannenbaum committed Jul 11, 2024
    Copy the full SHA
    146aac8 View commit details
  9. Update Link.ts

    joetannenbaum committed Jul 11, 2024
    Copy the full SHA
    46866ef View commit details

Commits on Jul 12, 2024

  1. omit meta from history

    joetannenbaum committed Jul 12, 2024
    Copy the full SHA
    143b344 View commit details
  2. Copy the full SHA
    3eb9ebd View commit details
  3. Copy the full SHA
    a817397 View commit details
  4. Copy the full SHA
    66f1ed9 View commit details

Commits on Jul 13, 2024

  1. Copy the full SHA
    dd4e432 View commit details
  2. Copy the full SHA
    95ca1e5 View commit details
  3. Copy the full SHA
    ebd21ae View commit details
  4. Copy the full SHA
    be15cf3 View commit details
  5. Update poll.ts

    joetannenbaum committed Jul 13, 2024
    Copy the full SHA
    07376a3 View commit details
  6. Copy the full SHA
    5eaa4bf View commit details
  7. Update Poll.vue

    joetannenbaum committed Jul 13, 2024
    Copy the full SHA
    5cbf302 View commit details

Commits on Jul 15, 2024

  1. Copy the full SHA
    1ca4e82 View commit details
  2. Update Poll.vue

    joetannenbaum committed Jul 15, 2024
    Copy the full SHA
    a0df33e View commit details
  3. grid layout helpers

    joetannenbaum committed Jul 15, 2024
    Copy the full SHA
    03c934f View commit details
  4. using new grid helpers

    joetannenbaum committed Jul 15, 2024
    Copy the full SHA
    2949915 View commit details
  5. Copy the full SHA
    4f52a8b View commit details
  6. Copy the full SHA
    ad226e6 View commit details
  7. Copy the full SHA
    8d51ebd View commit details
  8. Update server.js

    joetannenbaum committed Jul 15, 2024
    Copy the full SHA
    d0371f6 View commit details
  9. Copy the full SHA
    f85e21f View commit details
  10. Update plugin.cy.js

    joetannenbaum committed Jul 15, 2024
    Copy the full SHA
    dc62b57 View commit details
  11. Copy the full SHA
    b92af1c View commit details
  12. Update plugin.cy.js

    joetannenbaum committed Jul 15, 2024
    Copy the full SHA
    2e99f8a View commit details
  13. Copy the full SHA
    0f4fa4b View commit details
  14. Copy the full SHA
    31b841d View commit details
  15. Copy the full SHA
    2ebe81c View commit details

Commits on Jul 16, 2024

  1. Copy the full SHA
    8342fcd View commit details
Showing 684 changed files with 33,897 additions and 17,549 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# exclude playgrounds/ since otherwise the project gets classified as mainly php based.
# https://github.com/github-linguist/linguist/blob/master/docs/overrides.md#summary
playgrounds/** linguist-vendored

* text=auto
14 changes: 11 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -56,15 +56,23 @@ To test the SSR mode, first run the build, and then start the SSR server:

```sh
npm run build
npm run ssr:serve
php artisan inertia:start-ssr
```

## Testing

Inertia.js uses [Playwright](https://playwright.dev/) for testing. To run the tests, use the following command:

```sh
cd tests && npx playwright test
```

## Publishing

This section is really for the benefit of the core maintainers.

1. Increment the version numbers in the `package.json` file for each package, making sure to also update the adapter dependencies on `@inertiajs/core`.
2. Run `npm install` to update the top-laravel `package-lock.json` file.
2. Run `npm install` to update the top-level `package-lock.json` file.
3. Update `CHANGELOG.md`.
4. Run `npm publish` for each package. This will automatically run the necessary build step.
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`.
5. Add release notes to [GitHub](https://github.com/inertiajs/inertia/releases).
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -8,19 +8,19 @@ jobs:

strategy:
matrix:
adapter: ['react', 'vue2', 'vue3', 'svelte']
adapter: ['react', 'vue3', 'svelte']

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16.15
node-version: 20.15

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('package-lock.json') }}
path: |
@@ -33,7 +33,3 @@ jobs:
npm install
cd packages/core && npm run build
cd ../${{ matrix.adapter }} && npm run build
- name: Build Playground
run: |
cd playgrounds/${{ matrix.adapter }} && npm run build
56 changes: 56 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Playwright Tests
on: [push, pull_request]
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
timeout-minutes: 15
runs-on: ubuntu-20.04
strategy:
matrix:
adapter: ['vue3', 'react', 'svelte']
env:
PACKAGE: ${{ matrix.adapter }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 21.7.3

- name: Build Inertia
run: |
npm install
cd packages/core
npm run build
- name: Build Adapter
run: |
cd packages/${{ matrix.adapter }}
npm run build
- name: Install Test Dependencies
run: |
cd packages/${{ matrix.adapter }}/test-app
npm install
- name: Local-link @inertiajs/core
run: cd packages/core && npm link

- name: Local-link @inertiajs/${{ matrix.adapter }}
run: cd packages/${{ matrix.adapter }} && npm link

- name: Install Playwright Browsers
run: cd packages/${{ matrix.adapter }} && npx playwright install --with-deps

- name: Install Playwright Test Dependencies
run: cd tests/app && npm install

- name: Run Playwright Tests
run: cd tests && npx playwright test

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: packages/${{ matrix.adapter }}/playwright-report/
retention-days: 30
53 changes: 0 additions & 53 deletions .github/workflows/tests.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
.DS_Store
/test-results
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
.github/
**/.svelte-kit
**/bootstrap/ssr
**/composer.json
**/composer.lock
**/dist
**/public/build
**/vendor
97 changes: 93 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,12 +7,101 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

## [Unreleased](https://github.com/inertiajs/inertia/compare/v1.2.0...HEAD)
## [Unreleased](https://github.com/inertiajs/inertia/compare/v2.0.5...HEAD)

- Nothing yet

## [v2.0.5](https://github.com/inertiajs/inertia/compare/v2.0.4...v2.0.5)

- Fix history state errors by nicholaspufal ([#2265](https://github.com/inertiajs/inertia/pull/2265))
- Bump axios from 1.7.9 to 1.8.2 ([#2269](https://github.com/inertiajs/inertia/pull/2269))
- Bump esbuild from 0.16.17 to 0.25.0 #2231 ([#2231](https://github.com/inertiajs/inertia/pull/2231))
- Bump vite from 5.4.11 to 5.4.12 ([#2201](https://github.com/inertiajs/inertia/pull/2201))

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

- Fix anchor links on initial visits ([#2258](https://github.com/inertiajs/inertia/pull/2258))

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

- Fix: Reload on mount ([#2200](https://github.com/inertiajs/inertia/pull/2200))

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

- Fix SSR with scroll restoration ([#2190](https://github.com/inertiajs/inertia/pull/2190))
- Fix for scroll + back bug ([#2191](https://github.com/inertiajs/inertia/pull/2191))
- 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))

## [v2.0.1](https://github.com/inertiajs/inertia/compare/v2.0.0...v2.0.1)

- Fix playground dependencies ([#2070](https://github.com/inertiajs/inertia/pull/2070))
- Removed Vitest tests + dependencies ([#2175](https://github.com/inertiajs/inertia/pull/2175))
- Augment `vue` instead of `@vue/runtime-core` ([#2099](https://github.com/inertiajs/inertia/pull/2099))
- Fix prefetch missing `cacheFor` default value ([#2136](https://github.com/inertiajs/inertia/pull/2136))
- Fix `useForm` re-renders by memoizing functions in React [#2146](https://github.com/inertiajs/inertia/pull/2146)
- WhenVisible useEffect function is not recreated when params change. ([#2153](https://github.com/inertiajs/inertia/pull/2153))
- Ensure callback execution ([#2163](https://github.com/inertiajs/inertia/pull/2163))
- More resilient logic for stripping the origin from page URLs ([#2164](https://github.com/inertiajs/inertia/pull/2164))
- Add helper scripts for running tests ([#2173](https://github.com/inertiajs/inertia/pull/2173))
- Export `InertiaFormProps` in React ([#2161](https://github.com/inertiajs/inertia/pull/2161))
- Use default empty object in `useForm` Vue and Svelte ([#2052](https://github.com/inertiajs/inertia/pull/2052))
- Remove `data` option from `useForm` options type ([#2060](https://github.com/inertiajs/inertia/pull/2060))
- Take over scroll restoration from browser ([#2051](https://github.com/inertiajs/inertia/pull/2051))

## [v2.0.0](https://github.com/inertiajs/inertia/compare/v1.2.0...v2.0.0)

### Added

- Add polling
- Add link prefetching
- Add deferred props
- Add lazy loading of data when scrolling
- Add history encryption API
- Add React 19 support ([#2131](https://github.com/inertiajs/inertia/pull/2131))
- Add client side visits ([#2130](https://github.com/inertiajs/inertia/pull/2130))

### Changed

- Removal of NProgress dependency ([#2045](https://github.com/inertiajs/inertia/pull/2045))
- Change TypeScript module resolution in the Svelte adapter ([#2035](https://github.com/inertiajs/inertia/pull/2035))
- Refactor `createInertiaApp` in Svelte adapter ([#2036](https://github.com/inertiajs/inertia/pull/2036))

### Fixed

- Fix: make Link href prop reactive ([#2089](https://github.com/inertiajs/inertia/pull/2089))

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

### Added

- Add React 19 support ([#2121](https://github.com/inertiajs/inertia/pull/2121))
- Add Svelte 5 support ([#1970](https://github.com/inertiajs/inertia/pull/1970))
- 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))

### Changed

- Add Svelte TypeScript support ([#1866](https://github.com/inertiajs/inertia/pull/1866))
- Fix form helper `transform` return type in React adapter ([#1896](https://github.com/inertiajs/inertia/pull/1896))
- Use updater function in `setData` in `useForm` hook in React adapter ([#1859](https://github.com/inertiajs/inertia/pull/1859))
- Skip intercepting non-left button clicks on links ([#1908](https://github.com/inertiajs/inertia/pull/1908), [#1910](https://github.com/inertiajs/inertia/pull/1910))
- Changed `preserveScroll` to be `true` on initial page visit ([#1360](https://github.com/inertiajs/inertia/pull/1360))
- Return early when using `router.on()` during SSR ([#1715](https://github.com/inertiajs/inertia/pull/1715))
- Use updater function in `setData` in `useForm` hook in React adapter ([#1859](https://github.com/inertiajs/inertia/pull/1859))

### Fixed

- Fix history navigation issue on Chrome iOS ([#1984](https://github.com/inertiajs/inertia/pull/1984), [#1992](https://github.com/inertiajs/inertia/pull/1992))
- Fix `setNavigationType` for Safari 10 ([#1957](https://github.com/inertiajs/inertia/pull/1957))
- Export `InertiaFormProps` in all adapters ([#1596](https://github.com/inertiajs/inertia/pull/1596), [#1734](https://github.com/inertiajs/inertia/pull/1734))
- Fix `isDirty` after `form.defaults()` call in Vue 3 ([#1985](https://github.com/inertiajs/inertia/pull/1985))
- Fix scroll reset on page navigation ([#1980](https://github.com/inertiajs/inertia/pull/1980))
- Fix scroll position restoration for `[scroll-region]` elements ([#1782](https://github.com/inertiajs/inertia/pull/1782), [#1980](https://github.com/inertiajs/inertia/pull/1980))
- Fix `useForm` re-renders by memoizing functions in React adapter ([#1607](https://github.com/inertiajs/inertia/pull/1607))
- Fix doubling hash when using `<React.StrictMode>` ([#1728](https://github.com/inertiajs/inertia/pull/1728))
- Fix type augmentation in Vue 3 adapter ([#1958](https://github.com/inertiajs/inertia/pull/1958))
- Fix form helper `transform` return type in React adapter ([#1896](https://github.com/inertiajs/inertia/pull/1896))
- Fix props reactivity in Svelte adapter ([#1969](https://github.com/inertiajs/inertia/pull/1969))
- Fix `<Render />` component to respect `preserveState` option in Svelte adapter ([#1943](https://github.com/inertiajs/inertia/pull/1943))
- Fix 'received an unexpected slot "default"' warning in Svelte adapter ([#1941](https://github.com/inertiajs/inertia/pull/1941))
- Fix command + click behavior on links in React adapter ([#2132](https://github.com/inertiajs/inertia/pull/2132))
- Fix import in Svelte adapter ([#2002](https://github.com/inertiajs/inertia/pull/2002))

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

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,14 +6,12 @@ Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps

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

## Sponsors
## Partners

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:
A huge thanks to [Laravel Forge](https://forge.laravel.com/) for sponsoring the project.

<p>
<a href="https://forge.laravel.com">
<img src="./.github/sponsors/forge.svg" width="150" alt="Laravel Forge">
</a>
</p>

If you'd like to become a sponsor, please [see here](https://github.com/sponsors/reinink) for more information. 💜
Loading