@getstrata/starter 2.2.11 → 2.2.13

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @getstrata/starter
2
2
 
3
- The `create-strata` generator for [Strata](https://github.com/EyK-26/strata). Requires Bun (tested on 1.4.x).
3
+ The `create-strata` generator for [Strata](https://github.com/EyK-26/strata). Requires Bun >=1.4.3 (tested on 1.4.3).
4
4
 
5
5
  Prefer the short form, which resolves the [`create-strata`](https://www.npmjs.com/package/create-strata) package:
6
6
 
package/dist/cli.js CHANGED
@@ -17,10 +17,11 @@ import {
17
17
  } from "fs";
18
18
  import { join } from "path";
19
19
  var PLACEHOLDER = /\{\{PROJECT_NAME\}\}/g;
20
+ var LOCAL_ARTIFACTS = new Set(["node_modules", "dist", "coverage", ".git", ".DS_Store"]);
20
21
  function copyTree(source, target, projectName, skipNames = new Set) {
21
22
  mkdirSync(target, { recursive: true });
22
23
  for (const entry of readdirSync(source)) {
23
- if (skipNames.has(entry) || entry === ".DS_Store") {
24
+ if (skipNames.has(entry) || LOCAL_ARTIFACTS.has(entry)) {
24
25
  continue;
25
26
  }
26
27
  const from = join(source, entry);
@@ -42,6 +43,8 @@ function copyOverlayTree(sourceRoot, targetRoot) {
42
43
  return;
43
44
  }
44
45
  for (const entry of readdirSync(sourceRoot, { withFileTypes: true })) {
46
+ if (LOCAL_ARTIFACTS.has(entry.name))
47
+ continue;
45
48
  const sourcePath = join(sourceRoot, entry.name);
46
49
  const targetPath = join(targetRoot, entry.name);
47
50
  if (entry.isDirectory()) {
@@ -2997,6 +3000,8 @@ function renderEnvExample(projectName, layers) {
2997
3000
  } else {
2998
3001
  lines.push("# KMS_ENCRYPTION_KEY=");
2999
3002
  }
3003
+ lines.push("# Optional reader-first encryption rotation; replaces KMS_ENCRYPTION_KEY, never set both.");
3004
+ lines.push("# KMS_ENCRYPTION_KEYRING= (see framework ENCRYPTION-ROTATION.md; no automatic migration)");
3000
3005
  lines.push(`FEATURE_EMAIL_VERIFICATION=${envFlag(layers.extras.emailVerification)}`);
3001
3006
  if (layers.extras.metrics) {
3002
3007
  lines.push("METRICS_TOKEN=dev-metrics-token-change-me");
@@ -3125,16 +3130,16 @@ function renderDockerfile(layers) {
3125
3130
  const frontend = needsFrontendBuild(layers.frontend);
3126
3131
  const lines = [
3127
3132
  '# Production image. Build once, run with env from your platform; see README "Deploy".',
3128
- "FROM oven/bun:1.4 AS deps",
3133
+ "FROM oven/bun:1.4.3 AS deps",
3129
3134
  "WORKDIR /app",
3130
3135
  "COPY package.json bun.lock ./",
3131
3136
  "RUN bun install --frozen-lockfile --production",
3132
3137
  ""
3133
3138
  ];
3134
3139
  if (frontend) {
3135
- lines.push("FROM oven/bun:1.4 AS frontend", "WORKDIR /app/frontend", "COPY frontend/package.json frontend/bun.lock ./", "RUN bun install --frozen-lockfile", "COPY frontend/ ./", "RUN bun run build", "");
3140
+ lines.push("FROM oven/bun:1.4.3 AS frontend", "WORKDIR /app/frontend", "COPY frontend/package.json frontend/bun.lock ./", "RUN bun install --frozen-lockfile", "COPY frontend/ ./", "RUN bun run build", "");
3136
3141
  }
3137
- lines.push("FROM oven/bun:1.4-slim AS runtime", "WORKDIR /app", "ENV APP_ENV=production", "ENV AUTH_DEV_HEADERS=false", "ENV PORT=3000", "COPY --from=deps /app/node_modules ./node_modules", "COPY . .");
3142
+ lines.push("FROM oven/bun:1.4.3-slim AS runtime", "WORKDIR /app", "ENV APP_ENV=production", "ENV AUTH_DEV_HEADERS=false", "ENV PORT=3000", "COPY --from=deps /app/node_modules ./node_modules", "COPY . .");
3138
3143
  if (frontend) {
3139
3144
  lines.push("COPY --from=frontend /app/frontend/dist ./frontend/dist");
3140
3145
  }
@@ -3174,9 +3179,9 @@ function renderPackageJson(projectName, options = {}) {
3174
3179
  "@getstrata/cli": "workspace:*",
3175
3180
  "@getstrata/core": "workspace:*"
3176
3181
  } : {
3177
- "@getstrata/bootstrap": "^2.2.11",
3178
- "@getstrata/cli": "^2.2.11",
3179
- "@getstrata/core": "^2.2.11"
3182
+ "@getstrata/bootstrap": "^2.2.13",
3183
+ "@getstrata/cli": "^2.2.13",
3184
+ "@getstrata/core": "^2.2.13"
3180
3185
  };
3181
3186
  coreDeps.eta = "^4.6.0";
3182
3187
  if (options.layers?.database === "mysql") {
@@ -3202,9 +3207,11 @@ function renderPackageJson(projectName, options = {}) {
3202
3207
  private: true,
3203
3208
  type: "module",
3204
3209
  scripts,
3210
+ engines: { bun: ">=1.4.3" },
3211
+ overrides: { "bun-types": ">=1.4.3" },
3205
3212
  dependencies: coreDeps,
3206
3213
  devDependencies: {
3207
- "@types/bun": "^1.4.0",
3214
+ "@types/bun": ">=1.4.2",
3208
3215
  typescript: "^7.0.2"
3209
3216
  }
3210
3217
  }, null, 2)}
@@ -3517,6 +3524,8 @@ The app uses the database named in \`DATABASE_URL\` and creates it on first migr
3517
3524
  ${renderOpenApiReadme()}
3518
3525
  ## Deploy
3519
3526
 
3527
+ Bun >=1.4.3 is required. \`.bun-version\` and Docker stages pin the tested 1.4.3 runtime; upgrade pins deliberately and rerun checks before deployment. The official @types/bun shim currently lags the runtime release, so package.json overrides bun-types to >=1.4.3. Refresh and commit root/frontend lockfiles when upgrading. Updating framework packages does not rewrite an existing app Dockerfile, runtime pin or manifest.
3528
+
3520
3529
  \`Dockerfile\` builds a production image from the committed \`bun.lock\` (run \`bun install\` once and commit the lockfile).${needsFrontendBuild(layers.frontend) ? " The React frontend is built inside the image." : ""}
3521
3530
 
3522
3531
  \`\`\`bash
@@ -5630,6 +5639,8 @@ function applyFrontendOverlays(overlayRoot, targetDir, layers) {
5630
5639
  function writeGeneratedFiles(options) {
5631
5640
  const { targetDir, projectName, layers } = options;
5632
5641
  const src = join2(targetDir, "src");
5642
+ writeText(join2(targetDir, ".bun-version"), `1.4.3
5643
+ `);
5633
5644
  writeText(join2(targetDir, ".env.example"), renderEnvExample(projectName, layers));
5634
5645
  writeText(join2(targetDir, ".gitignore"), renderGitignore());
5635
5646
  writeText(join2(targetDir, "package.json"), renderPackageJson(projectName, { ...options, layers }));
@@ -10,15 +10,18 @@
10
10
  "react-router-dom": "^7.8.0",
11
11
  },
12
12
  "devDependencies": {
13
- "@types/bun": "^1.4.0",
13
+ "@types/bun": ">=1.4.2",
14
14
  "@types/react": "^19.1.10",
15
15
  "@types/react-dom": "^19.1.7",
16
- "typescript": "^5.9.2",
16
+ "typescript": "^7.0.2",
17
17
  },
18
18
  },
19
19
  },
20
+ "overrides": {
21
+ "bun-types": ">=1.4.3",
22
+ },
20
23
  "packages": {
21
- "@types/bun": ["@types/bun@1.4.0", "", { "dependencies": { "bun-types": "1.4.0" } }, "sha512-K+lZULY23vRgK/CfTjFIV+tyifaNdSMlPh9j+6mQ/cLfpOznLyAuzgV/JQysyECpkBQLVMSyvjlr2fBUSA9wFQ=="],
24
+ "@types/bun": ["@types/bun@1.4.2", "", { "dependencies": { "bun-types": "1.4.2" } }, "sha512-GimotNn7+ZV0uVArItBbriZsR1oNf0+WTzPkdcFrzShI7k2norL0uzEaJT8T33dWr7O/c9ZDuAFQrctKCi72oQ=="],
22
25
 
23
26
  "@types/node": ["@types/node@26.2.0", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg=="],
24
27
 
@@ -26,7 +29,47 @@
26
29
 
27
30
  "@types/react-dom": ["@types/react-dom@19.2.4", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw=="],
28
31
 
29
- "bun-types": ["bun-types@1.4.0", "", { "dependencies": { "@types/node": "*" } }, "sha512-iIKw23BspnQQYd3prITOBxeUsxBHnwzX6YJfGMuNOZzeNcMmVqzIIVGRm1l69ogaPQmb4wB6BN8mA5bE9YuC5Q=="],
32
+ "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="],
33
+
34
+ "@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="],
35
+
36
+ "@typescript/typescript-darwin-x64": ["@typescript/typescript-darwin-x64@7.0.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA=="],
37
+
38
+ "@typescript/typescript-freebsd-arm64": ["@typescript/typescript-freebsd-arm64@7.0.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ=="],
39
+
40
+ "@typescript/typescript-freebsd-x64": ["@typescript/typescript-freebsd-x64@7.0.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw=="],
41
+
42
+ "@typescript/typescript-linux-arm": ["@typescript/typescript-linux-arm@7.0.2", "", { "os": "linux", "cpu": "arm" }, "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ=="],
43
+
44
+ "@typescript/typescript-linux-arm64": ["@typescript/typescript-linux-arm64@7.0.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ=="],
45
+
46
+ "@typescript/typescript-linux-loong64": ["@typescript/typescript-linux-loong64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ=="],
47
+
48
+ "@typescript/typescript-linux-mips64el": ["@typescript/typescript-linux-mips64el@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA=="],
49
+
50
+ "@typescript/typescript-linux-ppc64": ["@typescript/typescript-linux-ppc64@7.0.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA=="],
51
+
52
+ "@typescript/typescript-linux-riscv64": ["@typescript/typescript-linux-riscv64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ=="],
53
+
54
+ "@typescript/typescript-linux-s390x": ["@typescript/typescript-linux-s390x@7.0.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw=="],
55
+
56
+ "@typescript/typescript-linux-x64": ["@typescript/typescript-linux-x64@7.0.2", "", { "os": "linux", "cpu": "x64" }, "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A=="],
57
+
58
+ "@typescript/typescript-netbsd-arm64": ["@typescript/typescript-netbsd-arm64@7.0.2", "", { "os": "none", "cpu": "arm64" }, "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA=="],
59
+
60
+ "@typescript/typescript-netbsd-x64": ["@typescript/typescript-netbsd-x64@7.0.2", "", { "os": "none", "cpu": "x64" }, "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA=="],
61
+
62
+ "@typescript/typescript-openbsd-arm64": ["@typescript/typescript-openbsd-arm64@7.0.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ=="],
63
+
64
+ "@typescript/typescript-openbsd-x64": ["@typescript/typescript-openbsd-x64@7.0.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg=="],
65
+
66
+ "@typescript/typescript-sunos-x64": ["@typescript/typescript-sunos-x64@7.0.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g=="],
67
+
68
+ "@typescript/typescript-win32-arm64": ["@typescript/typescript-win32-arm64@7.0.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ=="],
69
+
70
+ "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="],
71
+
72
+ "bun-types": ["bun-types@1.4.3", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-tinRJNGOmUN+tEAsn2y2e942n9JHRHR42iUYzDH75NmhJqVBokGSQkkfSFdNWwsANIdrK6ACH9t01M452YyTwg=="],
30
73
 
31
74
  "cookie": ["cookie@1.1.1", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="],
32
75
 
@@ -44,7 +87,7 @@
44
87
 
45
88
  "set-cookie-parser": ["set-cookie-parser@2.7.2", "", {}, "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw=="],
46
89
 
47
- "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
90
+ "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="],
48
91
 
49
92
  "undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="],
50
93
  }
@@ -13,9 +13,15 @@
13
13
  "react-router-dom": "^7.8.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/bun": "^1.4.0",
16
+ "@types/bun": ">=1.4.2",
17
17
  "@types/react": "^19.1.10",
18
18
  "@types/react-dom": "^19.1.7",
19
19
  "typescript": "^7.0.2"
20
+ },
21
+ "engines": {
22
+ "bun": ">=1.4.3"
23
+ },
24
+ "overrides": {
25
+ "bun-types": ">=1.4.3"
20
26
  }
21
27
  }
@@ -12,13 +12,19 @@
12
12
  "check": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@getstrata/bootstrap": "^2.2.11",
16
- "@getstrata/cli": "^2.2.11",
17
- "@getstrata/core": "^2.2.11",
15
+ "@getstrata/bootstrap": "^2.2.13",
16
+ "@getstrata/cli": "^2.2.13",
17
+ "@getstrata/core": "^2.2.13",
18
18
  "eta": "^4.6.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/bun": "^1.4.0",
21
+ "@types/bun": ">=1.4.2",
22
22
  "typescript": "^7.0.2"
23
+ },
24
+ "engines": {
25
+ "bun": ">=1.4.3"
26
+ },
27
+ "overrides": {
28
+ "bun-types": ">=1.4.3"
23
29
  }
24
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/starter",
3
- "version": "2.2.11",
3
+ "version": "2.2.13",
4
4
  "description": "Interactive create-strata wizard. Choose each layer; one database engine.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,6 +24,6 @@
24
24
  "access": "public"
25
25
  },
26
26
  "engines": {
27
- "bun": ">=1.4.0"
27
+ "bun": ">=1.4.3"
28
28
  }
29
29
  }