From d59702967b9ae21879df905d691a50132966c4ff Mon Sep 17 00:00:00 2001 From: Adam Griffith <5164766+adamjgriffith@users.noreply.github.com> Date: Sat, 14 Dec 2024 21:21:42 +0000 Subject: [PATCH] Upgrade to Inertia V2 (#443) * Upgrade to Inertia V2 * Pin typescript to v5.5.4 --- src/Console/InstallsInertiaStacks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Console/InstallsInertiaStacks.php b/src/Console/InstallsInertiaStacks.php index 2a8649b7..f2b7abb5 100644 --- a/src/Console/InstallsInertiaStacks.php +++ b/src/Console/InstallsInertiaStacks.php @@ -15,14 +15,14 @@ trait InstallsInertiaStacks protected function installInertiaVueStack() { // Install Inertia... - if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { + if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { return 1; } // NPM Packages... $this->updateNodePackages(function ($packages) { return [ - '@inertiajs/vue3' => '^1.0.0', + '@inertiajs/vue3' => '^2.0.0', '@tailwindcss/forms' => '^0.5.3', '@vitejs/plugin-vue' => '^5.0.0', 'autoprefixer' => '^10.4.12', @@ -35,7 +35,7 @@ protected function installInertiaVueStack() if ($this->option('typescript')) { $this->updateNodePackages(function ($packages) { return [ - 'typescript' => '^5.6.3', + 'typescript' => '~5.5.3', 'vue-tsc' => '^2.0.24', ] + $packages; }); @@ -226,7 +226,7 @@ protected function installInertiaVueSsrStack() protected function installInertiaReactStack() { // Install Inertia... - if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { + if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { return 1; } @@ -234,7 +234,7 @@ protected function installInertiaReactStack() $this->updateNodePackages(function ($packages) { return [ '@headlessui/react' => '^2.0.0', - '@inertiajs/react' => '^1.0.0', + '@inertiajs/react' => '^2.0.0', '@tailwindcss/forms' => '^0.5.3', '@vitejs/plugin-react' => '^4.2.0', 'autoprefixer' => '^10.4.12',