This PR addresses the challenges in the Inertia.js 1.x branch due to outdated dependencies. Previously, running npm update could break the build because of conflicts with stricter TypeScript checks. By updating dependencies, build scripts, and testing configurations, this PR enhances project stability and ensures future compatibility ahead of the v2 release.
Upgraded Node.js from to 20.15 in the tests GitHub workflow.
Updated core and adapter dependencies (Vue 2/3, React, Svelte) with the latest versions of esbuild, axios, typescript, vite, laravel-vite-plugin, etc.
Refactored build scripts across all packages to use esbuild v0.23's context API.
Integrated a custom rebuildLogger plugin to replace the deprecated watch option in esbuild.
Ensured builds run smoothly without breaking TypeScript checks, producing identical output files.
Updated postcss.config.js and tailwind.config.js files across all packages to use ES module syntax for consistency.
Migrated cypress.json to cypress.config.js and refactored Cypress test configuration for compatibility with the latest version.
Updated React, Vue 2/3, and Svelte 4/5 playgrounds to support the latest package versions and resolve dependency conflicts.
This PR addresses the challenges in the Inertia.js 1.x branch due to outdated dependencies. Previously, running
npm update
could break the build because of conflicts with stricter TypeScript checks. By updating dependencies, build scripts, and testing configurations, this PR enhances project stability and ensures future compatibility ahead of the v2 release.esbuild
,axios
,typescript
,vite
,laravel-vite-plugin
, etc.esbuild
v0.23's context API.rebuildLogger
plugin to replace the deprecatedwatch
option inesbuild
.postcss.config.js
andtailwind.config.js
files across all packages to use ES module syntax for consistency.cypress.json
tocypress.config.js
and refactored Cypress test configuration for compatibility with the latest version.Closes #1942.