Skip to content

Migration Guide

NOTE

Due to significant upcoming changes planned for the underlying adapters, creating a detailed migration guide at this time wouldn't be very helpful.

We understand this might be inconvenient, but rest assured we'll provide a comprehensive migration guide once the adapters updates are finalized.

Thank you for your patience!

Third Party Support

AdonisJS Inertia Starter kit

Inertia.js-Revamped seamless supports adonisjs.

  • Add luxon to package.json devDependencies, else adonisjs throwing an error.
  • Add PNPM overrides to package.json.
json
"pnpm": {
  "overrides": {
    "@inertiajs/core": "npm:@inertiajs-revamped/core@^0.0.5",
    "@inertiajs/preact": "npm:@inertiajs-revamped/preact@^0.0.7"
  }
}
  • Follow the Package Imports guide below, but instead of replacing the module name, you still need to import from '@inertiajs/preact'.
tsx
import { createInertiaApp, resolvePageComponent } from '@inertiajs/preact'
import { createProgress } from '@inertiajs/preact/progress'

Ziggy

Inertia.js-Revamped seamless supports Ziggy.

Package Imports

app.tsx -> main.tsx

typescript
import { createInertiaApp } from '@inertiajs/preact'
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'
import { createInertiaApp, resolvePageComponent } from '@inertiajs-revamped/preact'
import { createProgress } from '@inertiajs-revamped/preact/progress'

progress: { 
  color: '#4B5563', 
} 
progress: () =>
  createProgress({ 
    color: '#4B5563', 
  }) 

ssr.tsx <-> ssr.tsx

typescript
import { createInertiaApp } from '@inertiajs/preact'
import createServer from '@inertiajs/preact/server'
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'
import { createInertiaApp, resolvePageComponent } from '@inertiajs-revamped/preact'
import { createServer } from '@inertiajs-revamped/preact/server'
typescript
import { usePage } from '@inertiajs/preact'
import { usePage } from '@inertiajs-revamped/preact'
typescript
import { useForm } from '@inertiajs/prepreactact'
import { useForm } from '@inertiajs-revamped/preact'
typescript
import { useRemember } from '@inertiajs/preact'
import { useRemember } from '@inertiajs-revamped/preact'
typescript
import { Head } from '@inertiajs/preact'
import { Head } from '@inertiajs-revamped/preact'
typescript
import { Link } from '@inertiajs/preact'
import { Link } from '@inertiajs-revamped/preact'

Changelog - @inertiajs-revamped/preact

0.0.7 (2024-06-27)

Features

Builds

  • update dependency @types/node to ^20.14.9 (ec36814)
  • update dependency @types/node to ^20.14.8 (aff9dc4)
  • update dependency @types/node to ^20.14.6 (f4da004)
  • update dependency @types/node to ^20.14.2 (bdc0617)

0.0.6 (2024-06-03)

Builds

  • update dependency @types/node to ^20.14.0 (2340303)

0.0.5 (2024-05-19)

Features

  • exclude properties from partial responses, based on (inertia PR 1876) (aed43d0)

Builds

  • update dependency preact to v10.22.0 (85258f0)
  • update dependency @types/node to ^20.12.12 (e3c265f)

0.0.4 (2024-05-15)

Features

  • allow set processing to be set on react adaptors (fe8e2c7)

Code Refactoring

  • replace lodash.isequal with fast-equals (6717177)

0.0.3 (2024-05-11)

Code Refactoring

  • replace default with named exports (6445559)

Bug Fixes

  • add type annotation to explicitly specify the type of Link & App, omits default-wildcard imports from d.ts bundle (0017660)
  • fix Link.onClick event not fired (b0123b6)

Builds

  • update dependency @types/node to ^20.12.11 (96686b8)
  • update dependency preact to >=10.21.0 (f5fba01)

0.0.2 (2024-05-02)

Code Refactoring

  • replace default with named export in progress.ts (5c9fee5)
  • replace default with named export in server.ts (b5e552c)

Bug Fixes

Builds

  • update dependency @types/node to ^20.12.8 (2d1a120)
  • update dependency preact to ^10.21.0 (35e63ae)

0.0.1 (2024-04-26)

Code Refactoring

  • export createProgress from adapters, excludes progress from bundle by default (42145a0)
  • export default as createServer to avoid forcing allowSyntheticDefaultImports flag (47b59a8)