@donotdev/cli 0.0.30 → 0.0.31

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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "./dependencies-matrix.schema.json",
3
3
  "version": "0.0.6",
4
4
  "description": "Centralized dependency versions for DoNotDev framework. Single source of truth for all external dependencies. Third-party optional deps are auto-detected from peerDependenciesMeta via scanInstalledPackageOptionals() — no manual constants update needed.",
5
- "lastUpdated": "2026-03-06",
5
+ "lastUpdated": "2026-03-07",
6
6
  "migrationGuides": {
7
7
  "0.0→0.1": {
8
8
  "path": "docs/migration/v0.0-to-v0.1.md",
@@ -35,13 +35,13 @@
35
35
  "@donotdev/core": {
36
36
  "description": "Core framework package",
37
37
  "packages": {
38
- "@donotdev/core": "^0.0.38"
38
+ "@donotdev/core": "^0.0.39"
39
39
  }
40
40
  },
41
41
  "@donotdev/crud": {
42
42
  "description": "CRUD operations package",
43
43
  "packages": {
44
- "@donotdev/crud": "^0.0.26"
44
+ "@donotdev/crud": "^0.0.27"
45
45
  }
46
46
  },
47
47
  "@donotdev/firebase": {
@@ -71,7 +71,7 @@
71
71
  "@donotdev/ui": {
72
72
  "description": "UI and routing package",
73
73
  "packages": {
74
- "@donotdev/ui": "^0.0.25"
74
+ "@donotdev/ui": "^0.0.26"
75
75
  }
76
76
  },
77
77
  "@donotdev/expo": {
@@ -240,7 +240,7 @@
240
240
  "marked": "^17.0.3"
241
241
  }
242
242
  },
243
- "routing": {
243
+ "react-router-dom": {
244
244
  "packages": {
245
245
  "react-router-dom": "^7.13.1"
246
246
  }
@@ -424,7 +424,7 @@
424
424
  "@donotdev/cli": {
425
425
  "description": "Cli package",
426
426
  "packages": {
427
- "@donotdev/cli": "^0.0.30"
427
+ "@donotdev/cli": "^0.0.31"
428
428
  }
429
429
  },
430
430
  "@donotdev/mcp-server": {
@@ -510,8 +510,7 @@
510
510
  "react",
511
511
  "zustand",
512
512
  "validation",
513
- "lucide-react",
514
- "monitoring"
513
+ "lucide-react"
515
514
  ],
516
515
  "dependencies": [
517
516
  "i18n",
@@ -552,7 +551,7 @@
552
551
  "@donotdev/billing",
553
552
  "@donotdev/crud",
554
553
  "@donotdev/oauth",
555
- "routing",
554
+ "react-router-dom",
556
555
  "validation"
557
556
  ],
558
557
  "dependencies": [
@@ -573,7 +572,7 @@
573
572
  "@donotdev/oauth": {
574
573
  "optional": true
575
574
  },
576
- "routing": {
575
+ "react-router-dom": {
577
576
  "optional": true
578
577
  }
579
578
  }
@@ -670,9 +669,6 @@
670
669
  "dependencies": [
671
670
  "zustand"
672
671
  ],
673
- "peerDependencies": [
674
- "monitoring"
675
- ],
676
672
  "devDependencies": [
677
673
  "validation",
678
674
  "firebase",
@@ -767,7 +763,7 @@
767
763
  "zustand",
768
764
  "validation",
769
765
  "lucide-react",
770
- "routing",
766
+ "react-router-dom",
771
767
  "firebase",
772
768
  "stripe",
773
769
  "shiki"
@@ -828,7 +824,7 @@
828
824
  "zustand",
829
825
  "validation",
830
826
  "lucide-react",
831
- "routing",
827
+ "react-router-dom",
832
828
  "shiki",
833
829
  "tiptap"
834
830
  ],
@@ -918,7 +914,7 @@
918
914
  "zustand",
919
915
  "validation",
920
916
  "lucide-react",
921
- "routing",
917
+ "react-router-dom",
922
918
  "i18n",
923
919
  "react-query",
924
920
  "shiki",
@@ -1065,7 +1061,7 @@
1065
1061
  "zustand",
1066
1062
  "validation",
1067
1063
  "lucide-react",
1068
- "routing",
1064
+ "react-router-dom",
1069
1065
  "i18n",
1070
1066
  "react-query",
1071
1067
  "styling",
@@ -1095,7 +1091,7 @@
1095
1091
  "react",
1096
1092
  "zustand",
1097
1093
  "lucide-react",
1098
- "routing"
1094
+ "react-router-dom"
1099
1095
  ],
1100
1096
  "devDependencies": [
1101
1097
  "react-query",
@@ -6756,7 +6756,7 @@ import {
6756
6756
  sep,
6757
6757
  extname
6758
6758
  } from "node:path";
6759
- import { fileURLToPath } from "node:url";
6759
+ import "node:url";
6760
6760
  function safeExecuteAsync(fn, message) {
6761
6761
  return fn().catch((error2) => {
6762
6762
  throw new Error(
@@ -7683,19 +7683,24 @@ var init_PathResolver = __esm({
7683
7683
  return resolved;
7684
7684
  }
7685
7685
  /**
7686
- * Get path to empty.js module for optional dependency aliasing
7687
- * Used by Vite and Turbopack to alias missing optional deps
7688
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7689
- * @returns Package specifier or absolute path to empty.js
7686
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7687
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7688
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7689
+ * condition (.cjs), so we derive the ESM path from it.
7690
7690
  */
7691
- getEmptyModulePath(returnPackageSpecifier = false) {
7692
- if (returnPackageSpecifier) {
7693
- return "@donotdev/core/empty";
7694
- }
7691
+ getEmptyModulePath() {
7692
+ const cjsPath = this.getEmptyCjsModulePath();
7693
+ return cjsPath.replace(/\.cjs$/, ".js");
7694
+ }
7695
+ /**
7696
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7697
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7698
+ * exports, so any named import resolves.
7699
+ */
7700
+ getEmptyCjsModulePath() {
7695
7701
  const resolved = this.resolvePackage("@donotdev/core/empty");
7696
- if (resolved) return resolved;
7697
- const thisDir = dirname(fileURLToPath(import.meta.url));
7698
- return this.normalizePath(join(thisDir, "../empty.js"));
7702
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7703
+ return resolved;
7699
7704
  }
7700
7705
  // === PRIVATE METHODS ===
7701
7706
  /**