Skip to content

Commit

Permalink
Merge branch 'master' into refactor/when-visible-props
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAugustoRamalhoDuarte authored Dec 28, 2024
2 parents c1df10a + 19b6ab4 commit 01cf4b9
Show file tree
Hide file tree
Showing 44 changed files with 3,355 additions and 4,170 deletions.
12 changes: 10 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,15 @@ 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
Expand All @@ -66,5 +74,5 @@ 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-level `package-lock.json` file.
3. Update `CHANGELOG.md`.
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`.
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).
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
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: |
Expand All @@ -30,11 +30,6 @@ jobs:
- name: Build Inertia
run: |
rm package-lock.json
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
1 change: 0 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:

- name: Build Inertia
run: |
rm package-lock.json
npm install
cd packages/core
npm run build
Expand Down
45 changes: 23 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,39 @@ 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/v2.0.0-beta.2...HEAD)
## [Unreleased](https://github.com/inertiajs/inertia/compare/v2.0.0...HEAD)

- Nothing yet!
- Nothing

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

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

## [v2.0.0-beta.1](https://github.com/inertiajs/inertia/compare/v1.2.0...v2.0.0-beta.1)
- 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))

- First beta release for the upcoming Inertia.js v2.0. View documentation and upgrade guide at https://v2.inertiajs.com.
### Changed

## [v1.3.0-beta.2](https://github.com/inertiajs/inertia/compare/v1.3.0-beta.1...v1.3.0-beta.2)
- 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))

- Fix import in Svelte adapter ([#2002](https://github.com/inertiajs/inertia/pull/2002))
- 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))
### Fixed

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

## [v1.3.0-beta.1](https://github.com/inertiajs/inertia/compare/v1.2.0...v1.3.0-beta.1)
## [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))
- 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

Expand All @@ -64,6 +63,8 @@ For changes prior to v1.0.0, see the [legacy releases](https://legacy.inertiajs.
- 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)

Expand Down
Loading

0 comments on commit 01cf4b9

Please sign in to comment.