@stackframe/init-stack 2.5.16 → 2.5.18

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,13 @@
1
1
  # @stackframe/init-stack
2
2
 
3
+ ## 2.5.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Multi-factor authentication
8
+
9
+ ## 2.5.17
10
+
3
11
  ## 2.5.16
4
12
 
5
13
  ## 2.5.15
package/index.mjs CHANGED
@@ -81,7 +81,8 @@ async function main() {
81
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.`
82
82
  );
83
83
  }
84
- if (!packageJson.dependencies["next"].includes("14")) {
84
+ const nextPackageJsonVersion = packageJson.dependencies["next"];
85
+ if (!nextPackageJsonVersion.includes("14") && nextPackageJsonVersion !== "latest") {
85
86
  throw new UserError(
86
87
  `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`
87
88
  );
@@ -195,7 +196,7 @@ async function main() {
195
196
  {
196
197
  type: "confirm",
197
198
  name: "ready",
198
- message: `Found a Next.js project at ${projectPath}. Ready to install Stack?`,
199
+ message: `Found a Next.js project at ${projectPath} ready to install Stack?`,
199
200
  default: true,
200
201
  },
201
202
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/init-stack",
3
- "version": "2.5.16",
3
+ "version": "2.5.18",
4
4
  "description": "The setup wizard for Stack. https://stack-auth.com",
5
5
  "main": "index.mjs",
6
6
  "bin": "./index.mjs",