@adonisjs/inertia 4.0.0-next.20 → 4.0.0-next.21

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.
@@ -1,7 +1,8 @@
1
- import { n as ServerRenderer, r as Inertia } from "../inertia_manager-DsjSQHlg.js";
1
+ import { n as ServerRenderer, r as Inertia } from "../inertia_manager-Ra2dhBKa.js";
2
2
  import { t as InertiaHeaders } from "../headers-DafWEpBh.js";
3
3
  import "../debug-CBMTuPUm.js";
4
- import { t as defineConfig } from "../inertia-CrPBlGRS.js";
4
+ import { t as defineConfig } from "../define_config-O1Y9QfzM.js";
5
+ import "../index.js";
5
6
  import { HttpContextFactory } from "@adonisjs/core/factories/http";
6
7
  var InertiaFactory = class {
7
8
  #vite;
package/build/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { i as symbols_exports, n as ServerRenderer, r as Inertia, t as InertiaManager } from "./inertia_manager-DsjSQHlg.js";
1
+ import { i as symbols_exports, n as ServerRenderer, r as Inertia, t as InertiaManager } from "./inertia_manager-Ra2dhBKa.js";
2
2
  import { t as InertiaHeaders } from "./headers-DafWEpBh.js";
3
3
  import "./debug-CBMTuPUm.js";
4
- import { n as indexPages, t as defineConfig } from "./inertia-CrPBlGRS.js";
4
+ import { n as indexPages, t as defineConfig } from "./define_config-O1Y9QfzM.js";
5
5
  export { Inertia, InertiaHeaders, InertiaManager, ServerRenderer, defineConfig, indexPages, symbols_exports as symbols };
@@ -5,13 +5,13 @@ import { createHash } from "node:crypto";
5
5
  import { BaseSerializer } from "@adonisjs/core/transformers";
6
6
  import { pathToFileURL } from "node:url";
7
7
  var __defProp = Object.defineProperty;
8
- var __exportAll = (all, symbols) => {
8
+ var __exportAll = (all, no_symbols) => {
9
9
  let target = {};
10
10
  for (var name in all) __defProp(target, name, {
11
11
  get: all[name],
12
12
  enumerable: true
13
13
  });
14
- if (symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
15
15
  return target;
16
16
  };
17
17
  var symbols_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- import { t as InertiaManager } from "../inertia_manager-DsjSQHlg.js";
1
+ import { t as InertiaManager } from "../inertia_manager-Ra2dhBKa.js";
2
2
  import "../headers-DafWEpBh.js";
3
3
  import "../debug-CBMTuPUm.js";
4
4
  import { BriskRoute } from "@adonisjs/core/http";
@@ -4,7 +4,10 @@ function inertia(options) {
4
4
  config: (_, { command }) => {
5
5
  if (command === "build") process.env.NODE_ENV = "production";
6
6
  return {
7
- builder: {},
7
+ builder: { buildApp: async (builder) => {
8
+ await builder.build(builder.environments.client);
9
+ if (options?.ssr?.enabled) await builder.build(builder.environments.ssr);
10
+ } },
8
11
  build: { outDir: "build/public/assets" },
9
12
  environments: { ...options?.ssr?.enabled && { ssr: { build: {
10
13
  ssr: true,
@@ -1,4 +1,4 @@
1
- import { t as InertiaManager } from "../inertia_manager-DsjSQHlg.js";
1
+ import { t as InertiaManager } from "../inertia_manager-Ra2dhBKa.js";
2
2
  import { t as InertiaHeaders } from "../headers-DafWEpBh.js";
3
3
  import { t as debug_default } from "../debug-CBMTuPUm.js";
4
4
  const MUTATION_METHODS = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/inertia",
3
3
  "description": "Official Inertia.js adapter for AdonisJS",
4
- "version": "4.0.0-next.20",
4
+ "version": "4.0.0-next.21",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -51,36 +51,36 @@
51
51
  "@adonisjs/session": "^8.0.0-next.2",
52
52
  "@adonisjs/tsconfig": "^2.0.0-next.3",
53
53
  "@adonisjs/vite": "^5.1.0-next.4",
54
- "@inertiajs/react": "^2.3.10",
55
- "@inertiajs/vue3": "^2.3.10",
54
+ "@inertiajs/react": "^2.3.15",
55
+ "@inertiajs/vue3": "^2.3.15",
56
56
  "@japa/api-client": "^3.2.1",
57
57
  "@japa/assert": "4.2.0",
58
58
  "@japa/expect-type": "^2.0.4",
59
59
  "@japa/file-system": "^3.0.0",
60
60
  "@japa/plugin-adonisjs": "^5.1.0-next.1",
61
- "@japa/runner": "5.0.0",
61
+ "@japa/runner": "5.3.0",
62
62
  "@japa/snapshot": "^2.0.10",
63
- "@poppinss/ts-exec": "^1.4.1",
64
- "@release-it/conventional-changelog": "^10.0.4",
63
+ "@poppinss/ts-exec": "^1.4.4",
64
+ "@release-it/conventional-changelog": "^10.0.5",
65
65
  "@tuyau/core": "^1.0.0-beta.12",
66
- "@types/node": "^25.0.9",
67
- "@types/react": "^19.2.8",
66
+ "@types/node": "^25.3.0",
67
+ "@types/react": "^19.2.14",
68
68
  "@types/supertest": "^6.0.3",
69
69
  "c8": "^10.1.3",
70
70
  "copyfiles": "^2.4.1",
71
71
  "cross-env": "^10.1.0",
72
72
  "del-cli": "^7.0.0",
73
73
  "edge.js": "^6.4.0",
74
- "eslint": "^9.39.2",
74
+ "eslint": "^10.0.1",
75
75
  "get-port": "^7.1.0",
76
- "prettier": "^3.8.0",
77
- "react": "^19.2.3",
78
- "release-it": "^19.2.3",
76
+ "prettier": "^3.8.1",
77
+ "react": "^19.2.4",
78
+ "release-it": "^19.2.4",
79
79
  "supertest": "^7.2.2",
80
- "tsdown": "^0.18.4",
80
+ "tsdown": "^0.20.3",
81
81
  "typescript": "~5.9.3",
82
82
  "vite": "^7.3.1",
83
- "vue": "^3.5.26"
83
+ "vue": "^3.5.28"
84
84
  },
85
85
  "dependencies": {
86
86
  "@poppinss/utils": "^7.0.0-next.6",