@dudousxd/nestjs-inertia-vite 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,61 @@
1
+ # Changelog — @dudousxd/nestjs-inertia-vite
2
+
3
+ ## 1.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c5878e3`](https://github.com/DavideCarvalho/nestjs-inertia/commit/c5878e3f8827d9e89710df0154ea76996b6db62a) - First public release — Inertia.js v3 adapter for NestJS.
8
+
9
+ - Core: InertiaModule.forRoot/forRootAsync/forFeature, @Inertia decorator, Inertia.optional/defer/merge/always markers, CSRF with tokenContext, SSR support, Express + Fastify adapters
10
+ - Vite: setupInertiaVite + nestInertia plugin, @inertia/@vite/@inertiaHead shell directives
11
+ - Codegen: nestjs-inertia init (full scaffold + auto-patch), auto-watch in dev, static AST discovery, class-validator DTO support, Route/Path type helpers, @As hierarchical naming
12
+ - Client: defineContract + @ApplyContract, typed Link for React/Vue/Svelte with context providers, createFetcher, SSR hydration, rich error messages
13
+ - Testing: expectInertia matchers, assertInertia, InertiaTestingModule, fakes
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`c5878e3`](https://github.com/DavideCarvalho/nestjs-inertia/commit/c5878e3f8827d9e89710df0154ea76996b6db62a)]:
18
+ - @dudousxd/nestjs-inertia@1.0.0
19
+
20
+ ## 0.9.0-alpha.0 — 2026-05-22
21
+
22
+ ### Added
23
+
24
+ - **`skipFrameworkPlugin` option** — when `true`, `nestInertia()` returns only the config plugin without auto-loading the framework Vite plugin; useful for ESM-only plugins like `@sveltejs/vite-plugin-svelte` that must be imported directly in the Vite config.
25
+
26
+ ### Changed
27
+
28
+ - Version bump to `0.9.0-alpha.0` (Inertia v3 monorepo coordination)
29
+
30
+ ## 0.8.0-alpha.0 — 2026-05-22
31
+
32
+ ### Changed
33
+
34
+ - **`nestInertia()` respects user `root`/`entry` overrides** — the Vite plugin now honours explicit `root` and `entry` options passed by the user rather than always resolving from the package default; removes a common footgun when placing `vite.config.ts` outside the project root
35
+ - Version bump to `0.8.0-alpha.0`
36
+
37
+ ## 0.7.0-alpha.0 — 2026-05-22
38
+
39
+ ### Changed
40
+
41
+ - Bundled with example app, CI workflows, Changesets, MIT LICENSE, and slim docs.
42
+
43
+ ## [0.6.0-alpha.0] - 2026-05-22
44
+
45
+ ### Changed
46
+
47
+ - Version bump to `0.6.0-alpha.0` (monorepo coordination with Plan D client release; no source changes)
48
+
49
+ ## [0.5.0-alpha.0] - 2026-05-22
50
+
51
+ ### Changed
52
+
53
+ - Version bump to `0.5.0-alpha.0` (monorepo coordination with codegen release; no source changes)
54
+
55
+ ## [0.1.0-alpha.0] - 2026-05-22
56
+
57
+ ### Added
58
+
59
+ - `setupInertiaVite(app, opts)` — main.ts helper for dev middleware and prod static serving
60
+ - `nestInertia(opts)` Vite plugin with framework flags (react / vue / svelte exactly one)
61
+ - Subpath export `@dudousxd/nestjs-inertia-vite/plugin`
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Davide Carvalho
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @dudousxd/nestjs-inertia-vite
2
+
3
+ > Vite integration for `@dudousxd/nestjs-inertia` — dev middleware mode, prod static serving, plugin.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @dudousxd/nestjs-inertia-vite
9
+ pnpm add vite @vitejs/plugin-react # or @vitejs/plugin-vue, @sveltejs/vite-plugin-svelte
10
+ ```
11
+
12
+ ## main.ts setup
13
+
14
+ ```ts
15
+ import { setupInertiaVite } from '@dudousxd/nestjs-inertia-vite';
16
+
17
+ const app = await NestFactory.create(AppModule);
18
+ await setupInertiaVite(app, {
19
+ mode: process.env.NODE_ENV,
20
+ root: 'inertia',
21
+ publicDir: 'inertia/public',
22
+ outDir: 'dist/inertia',
23
+ });
24
+ ```
25
+
26
+ ## vite.config.ts
27
+
28
+ ```ts
29
+ import { defineConfig } from 'vite';
30
+ import nestInertia from '@dudousxd/nestjs-inertia-vite/plugin';
31
+
32
+ export default defineConfig({
33
+ plugins: [
34
+ nestInertia({
35
+ ssr: true,
36
+ react: true, // OR vue: true, OR svelte: true (exactly one)
37
+ clientEntry: 'app/client.tsx',
38
+ ssrEntry: 'ssr/entry.tsx',
39
+ }),
40
+ ],
41
+ });
42
+ ```
43
+
44
+ ## License
45
+
46
+ MIT