@shivaedev/create-app 0.6.7 → 0.6.9

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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.9 - 2026-10-18
4
+
5
+ ### Fixed
6
+
7
+ - Generated apps log terminated idle Better Auth database connections at debug and continue serving queries on a fresh connection.
8
+ - Keep nested README.md, AGENTS.md, CLAUDE.md and published-versions.json files in generated apps while excluding the starter's root maintenance files.
9
+
10
+ ## 0.6.8 - 2026-10-17
11
+
12
+ ### Fixed
13
+
14
+ - Generated app READMEs describe the variables each process needs and web's ownership of Railway pre-deploy migrations.
15
+ - Creating an app without a configured Git identity no longer stalls for seconds while Git guesses an email from the host name. The initial commit uses the Create App identity unless Git's `user.name` and `user.email` settings or the `GIT_AUTHOR_*` variables provide one; `EMAIL` and host-name guesses no longer count.
16
+ - Keep saved notes and the empty-list message visible without an initial loading message while the generated app refreshes its notes list.
17
+ - A generated app pins the current published framework versions, including `platform` 0.14.2, `effect-prisma` 0.9.2, `effect-test-sql` 0.5.2, `local-postgres` 0.3.0 and `quality` 0.23.0.
18
+
3
19
  ## 0.6.7 - 2026-10-17
4
20
 
5
21
  ### Fixed
@@ -1,3 +1,4 @@
1
+ import { Buffer } from "node:buffer";
1
2
  export declare function databaseName(name: string): string;
2
- export declare function appFile(path: string, content: string, name: string): string;
3
+ export declare function appFile(path: string, content: Buffer, name: string): Buffer<ArrayBufferLike>;
3
4
  //# sourceMappingURL=appFiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appFiles.d.ts","sourceRoot":"","sources":["../src/appFiles.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAKxC;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAWlE"}
1
+ {"version":3,"file":"appFiles.d.ts","sourceRoot":"","sources":["../src/appFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAKxC;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,2BAgBlE"}
package/dist/appFiles.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { Buffer } from "node:buffer";
1
2
  import { Schema } from "effect";
2
3
  const decodeManifest = Schema.decodeUnknownSync(Schema.fromJsonString(Schema.Record(Schema.String, Schema.Unknown)));
3
4
  export function databaseName(name) {
@@ -8,13 +9,16 @@ export function databaseName(name) {
8
9
  }
9
10
  export function appFile(path, content, name) {
10
11
  if (path === "package.json") {
11
- return `${JSON.stringify({ ...decodeManifest(content), name }, null, "\t")}\n`;
12
+ return Buffer.from(`${JSON.stringify({ ...decodeManifest(content.toString()), name }, null, "\t")}\n`);
12
13
  }
13
14
  if (path === ".env.example") {
14
- return content.replaceAll("starter_dev", `${databaseName(name)}_dev`).replaceAll("starter_test", `${databaseName(name)}_test`);
15
+ return Buffer.from(content
16
+ .toString()
17
+ .replaceAll("starter_dev", `${databaseName(name)}_dev`)
18
+ .replaceAll("starter_test", `${databaseName(name)}_test`));
15
19
  }
16
20
  if (["AGENTS.md", "README.md"].includes(path)) {
17
- return content.replaceAll("{{appName}}", name);
21
+ return Buffer.from(content.toString().replaceAll("{{appName}}", name));
18
22
  }
19
23
  return content;
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"appFiles.js","sourceRoot":"","sources":["../src/appFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,M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