create-better-fullstack 1.3.15 → 1.3.17

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/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { s as createBtsCli } from "./src-zCIIp5Gn.mjs";
2
+ import { s as createBtsCli } from "./src-BYQLJiGD.mjs";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { a as builder, c as createVirtual, d as history, f as router, i as add, l as docs, n as TEMPLATE_COUNT, o as create, p as sponsors, r as VirtualFileSystem, s as createBtsCli, t as EMBEDDED_TEMPLATES, u as generateVirtualProject } from "./src-zCIIp5Gn.mjs";
2
+ import { a as builder, c as createVirtual, d as history, f as router, i as add, l as docs, n as TEMPLATE_COUNT, o as create, p as sponsors, r as VirtualFileSystem, s as createBtsCli, t as EMBEDDED_TEMPLATES, u as generateVirtualProject } from "./src-BYQLJiGD.mjs";
3
3
 
4
4
  export { EMBEDDED_TEMPLATES, TEMPLATE_COUNT, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generateVirtualProject, history, router, sponsors };
@@ -542,6 +542,7 @@ async function historyHandler(input) {
542
542
  */
543
543
  function formatUpdate(info) {
544
544
  const colorFn = {
545
+ downgrade: pc.red,
545
546
  major: pc.red,
546
547
  minor: pc.yellow,
547
548
  patch: pc.green,
@@ -597,6 +598,7 @@ async function interactiveUpdate(updates) {
597
598
  console.log(formatUpdate(update));
598
599
  if (update.ecosystem) console.log(pc.dim(` Ecosystem: ${update.ecosystem}`));
599
600
  if (update.updateType === "major") console.log(pc.yellow(" Warning: Breaking changes possible. Check changelog."));
601
+ else if (update.updateType === "downgrade") console.log(pc.red(" Warning: npm latest is lower than current pinned version. Review carefully."));
600
602
  const action = await select({
601
603
  message: "What would you like to do?",
602
604
  options: [
@@ -652,6 +654,7 @@ async function updateDepsHandler(options) {
652
654
  console.log(generateCliReport(result));
653
655
  if (check || result.outdated.length === 0) return;
654
656
  let toApply = [];
657
+ const downgradeCount = result.outdated.filter((u) => u.updateType === "downgrade").length;
655
658
  if (patch) {
656
659
  toApply = result.outdated.filter((u) => u.updateType === "patch" || u.updateType === "minor");
657
660
  if (toApply.length === 0) {
@@ -659,6 +662,7 @@ async function updateDepsHandler(options) {
659
662
  return;
660
663
  }
661
664
  log.info(`Found ${toApply.length} patch/minor updates to apply automatically.`);
665
+ if (downgradeCount > 0) log.warn(`${downgradeCount} downgrade${downgradeCount === 1 ? "" : "s"} detected and excluded from --patch mode.`);
662
666
  const shouldProceed = await confirm({ message: `Apply ${toApply.length} safe updates?` });
663
667
  if (isCancel(shouldProceed) || !shouldProceed) {
664
668
  log.info("Cancelled.");
@@ -672,7 +676,7 @@ async function updateDepsHandler(options) {
672
676
  return;
673
677
  }
674
678
  } else {
675
- const shouldProceed = await confirm({ message: `Apply all ${result.outdated.length} updates?` });
679
+ const shouldProceed = await confirm({ message: downgradeCount > 0 ? `Apply all ${result.outdated.length} updates (including ${downgradeCount} downgrade${downgradeCount === 1 ? "" : "s"})?` : `Apply all ${result.outdated.length} updates?` });
676
680
  if (isCancel(shouldProceed) || !shouldProceed) {
677
681
  log.info("Cancelled. Use --check to only view updates without prompting.");
678
682
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-fullstack",
3
- "version": "1.3.15",
3
+ "version": "1.3.17",
4
4
  "description": "A CLI-first toolkit for building Full Stack applications. Skip the configuration. Ship the code.",
5
5
  "keywords": [
6
6
  "better-auth",
@@ -76,8 +76,8 @@
76
76
  "prepublishOnly": "npm run build"
77
77
  },
78
78
  "dependencies": {
79
- "@better-fullstack/template-generator": "^1.3.15",
80
- "@better-fullstack/types": "^1.3.15",
79
+ "@better-fullstack/template-generator": "^1.3.17",
80
+ "@better-fullstack/types": "^1.3.17",
81
81
  "@clack/core": "^0.5.0",
82
82
  "@clack/prompts": "^1.0.0-alpha.8",
83
83
  "@orpc/server": "^1.13.0",