@stackframe/init-stack 2.6.17 → 2.6.20

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @stackframe/init-stack
2
2
 
3
+ ## 2.6.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Next.js 15 fixes
8
+
9
+ ## 2.6.19
10
+
11
+ ### Patch Changes
12
+
13
+ - Bugfixes
14
+
15
+ ## 2.6.18
16
+
17
+ ### Patch Changes
18
+
19
+ - fixed user update bug
20
+
3
21
  ## 2.6.17
4
22
 
5
23
  ### Patch Changes
package/index.mjs CHANGED
@@ -75,18 +75,19 @@ async function main() {
75
75
  );
76
76
  }
77
77
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
78
- if (!packageJson.dependencies || !packageJson.dependencies["next"]) {
78
+ const nextVersionInPackageJson = packageJson?.dependencies["next"] ?? packageJson?.devDependencies["next"];
79
+ if (!nextVersionInPackageJson) {
79
80
  throw new UserError(
80
81
  `The project at ${projectPath} does not appear to be a Next.js project, or does not have 'next' installed as a dependency. Only Next.js projects are currently supported.`
81
82
  );
82
83
  }
83
- const nextPackageJsonVersion = packageJson.dependencies["next"];
84
84
  if (
85
- !nextPackageJsonVersion.includes("14") &&
86
- nextPackageJsonVersion !== "latest"
85
+ !nextVersionInPackageJson.includes("14") &&
86
+ !nextVersionInPackageJson.includes("15") &&
87
+ nextVersionInPackageJson !== "latest"
87
88
  ) {
88
89
  throw new UserError(
89
- `The project at ${projectPath} is using an unsupported version of Next.js (found ${packageJson.dependencies["next"]}).\n\nOnly Next.js 14 projects are currently supported. See Next's upgrade guide: https://nextjs.org/docs/app/building-your-application/upgrading/version-14`
90
+ `The project at ${projectPath} is using an unsupported version of Next.js (found ${nextVersionInPackageJson}).\n\nOnly Next.js 14 & 15 projects are currently supported. See Next's upgrade guide: https://nextjs.org/docs/app/building-your-application/upgrading/version-14`
90
91
  );
91
92
  }
92
93
 
@@ -230,7 +231,7 @@ async function main() {
230
231
  handlerPath,
231
232
  `import { StackHandler } from "@stackframe/stack";\nimport { stackServerApp } from "../../../stack";\n\nexport default function Handler(props${
232
233
  handlerFileExtension.includes("ts") ? ": any" : ""
233
- }) {\n${ind}return <StackHandler fullPage app={stackServerApp} {...props} />;\n}\n`
234
+ }) {\n${ind}return <StackHandler fullPage app={stackServerApp} routeProps={props} />;\n}\n`
234
235
  );
235
236
  await writeFileIfNotExists(
236
237
  stackAppPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/init-stack",
3
- "version": "2.6.17",
3
+ "version": "2.6.20",
4
4
  "description": "The setup wizard for Stack. https://stack-auth.com",
5
5
  "main": "index.mjs",
6
6
  "bin": "./index.mjs",