@stackframe/init-stack 1.0.4 → 1.0.6

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,37 @@
1
+ # @stackframe/init-stack
2
+
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Bugfixes
8
+
9
+ ## 1.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Bugfixes
14
+
15
+ ## 1.0.4
16
+
17
+ ### Patch Changes
18
+
19
+ - Remove crypto-browserify dependency
20
+
21
+ ## 1.0.3
22
+
23
+ ### Patch Changes
24
+
25
+ - Partial pre-rendering
26
+
27
+ ## 1.0.2
28
+
29
+ ### Patch Changes
30
+
31
+ - E2E tests and various fixes
32
+
33
+ ## 1.0.1
34
+
35
+ ### Patch Changes
36
+
37
+ - Setup wizard
package/index.mjs CHANGED
@@ -96,7 +96,7 @@ async function main() {
96
96
  console.log("Writing files...");
97
97
  await writeFileIfNotExists(envLocalPath, "NEXT_PUBLIC_STACK_PROJECT_ID=\nNEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=\nSTACK_SECRET_SERVER_KEY=\n");
98
98
  await writeFileIfNotExists(loadingPath, `export default function Loading() {\n${ind}// Stack uses React Suspense, which will render this page while user data is being fetched.\n${ind}// See: https://nextjs.org/docs/app/api-reference/file-conventions/loading\n${ind}return <></>;\n}\n`);
99
- await writeFileIfNotExists(handlerPath, `import { StackHandler } from "@stackframe/stack";\nimport { stackServerApp } from "../../../stack";\nexport default function Handler(props${handlerFileExtension.includes("ts") ? ": any" : ""}) {\n${ind}return <StackHandler app={stackServerApp} {...props} />;\n}\n`);
99
+ await writeFileIfNotExists(handlerPath, `import { StackHandler } from "@stackframe/stack";\nimport { stackServerApp } from "../../../stack";\n\nexport default function Handler(props${handlerFileExtension.includes("ts") ? ": any" : ""}) {\n${ind}return <StackHandler app={stackServerApp} {...props} />;\n}\n`);
100
100
  await writeFileIfNotExists(stackAppPath, `import "server-only";\n\nimport { StackServerApp } from "@stackframe/stack";\n\nexport const stackServerApp = new StackServerApp({\n${ind}tokenStore: "nextjs-cookie",\n});\n`);
101
101
  await writeFile(layoutPath, updatedLayoutContent);
102
102
  console.log("Files written successfully!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/init-stack",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "The setup wizard for Stack. https://stack-auth.com",
5
5
  "main": "index.mjs",
6
6
  "bin": "./index.mjs",
@@ -8,7 +8,10 @@
8
8
  "init-stack": "node index.mjs"
9
9
  },
10
10
  "files": [
11
- "index.mjs"
11
+ "README.md",
12
+ "index.mjs",
13
+ "CHANGELOG.md",
14
+ "LICENSE"
12
15
  ],
13
16
  "homepage": "https://stack-auth.com",
14
17
  "keywords": [],