@dudousxd/nestjs-inertia-vite 1.2.0 → 1.4.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 +20 -0
- package/dist/index.cjs +25 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/dist/plugin/plugin.cjs +24 -2
- package/dist/plugin/plugin.cjs.map +1 -1
- package/dist/plugin/plugin.js +24 -2
- package/dist/plugin/plugin.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog — @dudousxd/nestjs-inertia-vite
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: type-safe @Inertia, Props E2E, infiniteQueryOptions, URL params, doctor CLI, codegen HMR
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @dudousxd/nestjs-inertia@2.0.0
|
|
13
|
+
|
|
14
|
+
## 2.0.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- feat(codegen): ReturnType<import(...)> for response types, queryKey helper, TanStack helpers, type ref imports, path alias resolution, debug mode
|
|
19
|
+
|
|
20
|
+
- Updated dependencies []:
|
|
21
|
+
- @dudousxd/nestjs-inertia@2.0.0
|
|
22
|
+
|
|
3
23
|
## 3.0.0
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -23630,21 +23630,43 @@ function nestInertia(options = {}) {
|
|
|
23630
23630
|
return result;
|
|
23631
23631
|
}, "config")
|
|
23632
23632
|
};
|
|
23633
|
+
const codegenHmr = {
|
|
23634
|
+
name: "nestjs-inertia:codegen-hmr",
|
|
23635
|
+
configureServer(server) {
|
|
23636
|
+
const codegenDir = (0, import_node_path2.resolve)(process.cwd(), ".nestjs-inertia");
|
|
23637
|
+
const { watcher } = server;
|
|
23638
|
+
watcher.add(codegenDir);
|
|
23639
|
+
watcher.on("change", (file) => {
|
|
23640
|
+
if (!file.startsWith(codegenDir)) return;
|
|
23641
|
+
const mods = server.moduleGraph.getModulesByFile(file);
|
|
23642
|
+
if (mods) {
|
|
23643
|
+
for (const mod of mods) {
|
|
23644
|
+
server.moduleGraph.invalidateModule(mod);
|
|
23645
|
+
}
|
|
23646
|
+
}
|
|
23647
|
+
server.ws.send({
|
|
23648
|
+
type: "full-reload"
|
|
23649
|
+
});
|
|
23650
|
+
});
|
|
23651
|
+
}
|
|
23652
|
+
};
|
|
23633
23653
|
if (options.skipFrameworkPlugin) {
|
|
23634
23654
|
return [
|
|
23635
|
-
configurer
|
|
23655
|
+
configurer,
|
|
23656
|
+
codegenHmr
|
|
23636
23657
|
];
|
|
23637
23658
|
}
|
|
23638
23659
|
const frameworkPlugin = options.react ? loadFrameworkPlugin("react") : options.vue ? loadFrameworkPlugin("vue") : loadFrameworkPlugin("svelte");
|
|
23639
23660
|
return [
|
|
23640
23661
|
configurer,
|
|
23641
|
-
frameworkPlugin
|
|
23662
|
+
frameworkPlugin,
|
|
23663
|
+
codegenHmr
|
|
23642
23664
|
];
|
|
23643
23665
|
}
|
|
23644
23666
|
__name(nestInertia, "nestInertia");
|
|
23645
23667
|
|
|
23646
23668
|
// src/index.ts
|
|
23647
|
-
var VERSION = "1.
|
|
23669
|
+
var VERSION = "1.4.0";
|
|
23648
23670
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23649
23671
|
0 && (module.exports = {
|
|
23650
23672
|
InvalidViteConfigException,
|