@donotdev/cli 0.1.42 → 0.1.45

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./dependencies-matrix.schema.json",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
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-05-01",
5
+ "lastUpdated": "2026-07-08",
6
6
  "migrationGuides": {
7
7
  "0.0→0.1": {
8
8
  "path": "docs/migration/v0.0-to-v0.1.md",
@@ -17,97 +17,103 @@
17
17
  "@donotdev/ai": {
18
18
  "description": "AI package - provider-agnostic LLM plumbing",
19
19
  "packages": {
20
- "@donotdev/ai": "^0.1.42"
20
+ "@donotdev/ai": "^0.1.44"
21
21
  }
22
22
  },
23
23
  "@donotdev/graphql": {
24
24
  "description": "GraphQL data provider - opt-in, not scaffolded by default",
25
25
  "packages": {
26
- "@donotdev/graphql": "^0.1.42"
26
+ "@donotdev/graphql": "^0.1.44"
27
27
  }
28
28
  },
29
29
  "@donotdev/restcrud": {
30
30
  "description": "REST CRUD data provider - opt-in, not scaffolded by default",
31
31
  "packages": {
32
- "@donotdev/restcrud": "^0.1.42"
32
+ "@donotdev/restcrud": "^0.1.44"
33
33
  }
34
34
  },
35
35
  "@donotdev/testing": {
36
36
  "description": "Testing utilities - opt-in, not scaffolded by default",
37
37
  "packages": {
38
- "@donotdev/testing": "^0.1.42"
38
+ "@donotdev/testing": "^0.1.44"
39
39
  }
40
40
  },
41
41
  "@donotdev/auth": {
42
42
  "description": "Authentication package",
43
43
  "packages": {
44
- "@donotdev/auth": "^0.1.42"
44
+ "@donotdev/auth": "^0.1.44"
45
45
  }
46
46
  },
47
47
  "@donotdev/billing": {
48
48
  "description": "Billing package",
49
49
  "packages": {
50
- "@donotdev/billing": "^0.1.42"
50
+ "@donotdev/billing": "^0.1.44"
51
51
  }
52
52
  },
53
53
  "@donotdev/components": {
54
54
  "description": "UI components package",
55
55
  "packages": {
56
- "@donotdev/components": "^0.1.42"
56
+ "@donotdev/components": "^0.1.44"
57
57
  }
58
58
  },
59
59
  "@donotdev/core": {
60
60
  "description": "Core framework package",
61
61
  "packages": {
62
- "@donotdev/core": "^0.1.42"
62
+ "@donotdev/core": "^0.1.45"
63
63
  }
64
64
  },
65
65
  "@donotdev/crud": {
66
66
  "description": "CRUD operations package",
67
67
  "packages": {
68
- "@donotdev/crud": "^0.1.42"
68
+ "@donotdev/crud": "^0.1.44"
69
+ }
70
+ },
71
+ "@donotdev/demo": {
72
+ "description": "Zero-backend demo provider package",
73
+ "packages": {
74
+ "@donotdev/demo": "^0.1.44"
69
75
  }
70
76
  },
71
77
  "@donotdev/firebase": {
72
78
  "description": "Firebase provider package",
73
79
  "packages": {
74
- "@donotdev/firebase": "^0.1.42"
80
+ "@donotdev/firebase": "^0.1.44"
75
81
  }
76
82
  },
77
83
  "@donotdev/functions": {
78
84
  "description": "Firebase Functions package",
79
85
  "packages": {
80
- "@donotdev/functions": "^0.1.42"
86
+ "@donotdev/functions": "^0.1.44"
81
87
  }
82
88
  },
83
89
  "@donotdev/oauth": {
84
90
  "description": "OAuth package",
85
91
  "packages": {
86
- "@donotdev/oauth": "^0.1.42"
92
+ "@donotdev/oauth": "^0.1.44"
87
93
  }
88
94
  },
89
95
  "@donotdev/templates": {
90
96
  "description": "Page templates package",
91
97
  "packages": {
92
- "@donotdev/templates": "^0.1.42"
98
+ "@donotdev/templates": "^0.1.44"
93
99
  }
94
100
  },
95
101
  "@donotdev/ui": {
96
102
  "description": "UI and routing package",
97
103
  "packages": {
98
- "@donotdev/ui": "^0.1.42"
104
+ "@donotdev/ui": "^0.1.45"
99
105
  }
100
106
  },
101
107
  "@donotdev/expo": {
102
108
  "description": "Expo/React Native components package",
103
109
  "packages": {
104
- "@donotdev/expo": "^0.1.42"
110
+ "@donotdev/expo": "^0.1.44"
105
111
  }
106
112
  },
107
113
  "@donotdev/supabase": {
108
114
  "description": "Supabase provider package",
109
115
  "packages": {
110
- "@donotdev/supabase": "^0.1.42"
116
+ "@donotdev/supabase": "^0.1.44"
111
117
  }
112
118
  },
113
119
  "supabase-js": {
@@ -455,13 +461,13 @@
455
461
  "@donotdev/cli": {
456
462
  "description": "Cli package",
457
463
  "packages": {
458
- "@donotdev/cli": "^0.1.42"
464
+ "@donotdev/cli": "^0.1.45"
459
465
  }
460
466
  },
461
467
  "@donotdev/mcp-server": {
462
468
  "description": "MCP server for component type lookups",
463
469
  "packages": {
464
- "@donotdev/mcp-server": "^0.1.42"
470
+ "@donotdev/mcp-server": "^0.1.44"
465
471
  }
466
472
  },
467
473
  "mcp-sdk": {
@@ -487,7 +493,7 @@
487
493
  "@donotdev/security": {
488
494
  "description": "Security package",
489
495
  "packages": {
490
- "@donotdev/security": "^0.1.42"
496
+ "@donotdev/security": "^0.1.44"
491
497
  }
492
498
  },
493
499
  "xterm": {
@@ -533,7 +539,7 @@
533
539
  "@donotdev/canvas": {
534
540
  "description": "Canvas package",
535
541
  "packages": {
536
- "@donotdev/canvas": "^0.1.42"
542
+ "@donotdev/canvas": "^0.1.44"
537
543
  }
538
544
  }
539
545
  },
@@ -561,6 +567,11 @@
561
567
  "@donotdev/core"
562
568
  ]
563
569
  },
570
+ "@donotdev/demo": {
571
+ "peerDependencies": [
572
+ "@donotdev/core"
573
+ ]
574
+ },
564
575
  "@donotdev/testing": {
565
576
  "peerDependencies": [
566
577
  "@donotdev/core"
@@ -8974,6 +8974,17 @@ function generatePackageJson(templateName, mode, options = {}) {
8974
8974
  result.main = "./index.ts";
8975
8975
  result.types = "./index.ts";
8976
8976
  }
8977
+ if (templateName.includes("nextjs")) {
8978
+ result.browserslist = [
8979
+ "chrome >= 64",
8980
+ "edge >= 79",
8981
+ "firefox >= 67",
8982
+ "safari >= 12",
8983
+ "ios_saf >= 12",
8984
+ "opera >= 51",
8985
+ "not dead"
8986
+ ];
8987
+ }
8977
8988
  if (templateName.includes("vite") || templateName.includes("nextjs") || templateName.includes("expo") || templateName.includes("functions")) {
8978
8989
  if (!dependencies.entities) {
8979
8990
  dependencies.entities = "workspace:*";
@@ -9301,6 +9301,17 @@ function generatePackageJson(templateName, mode, options = {}) {
9301
9301
  result.main = "./index.ts";
9302
9302
  result.types = "./index.ts";
9303
9303
  }
9304
+ if (templateName.includes("nextjs")) {
9305
+ result.browserslist = [
9306
+ "chrome >= 64",
9307
+ "edge >= 79",
9308
+ "firefox >= 67",
9309
+ "safari >= 12",
9310
+ "ios_saf >= 12",
9311
+ "opera >= 51",
9312
+ "not dead"
9313
+ ];
9314
+ }
9304
9315
  if (templateName.includes("vite") || templateName.includes("nextjs") || templateName.includes("expo") || templateName.includes("functions")) {
9305
9316
  if (!dependencies.entities) {
9306
9317
  dependencies.entities = "workspace:*";
@@ -9622,6 +9622,17 @@ function generatePackageJson(templateName, mode, options = {}) {
9622
9622
  result.main = "./index.ts";
9623
9623
  result.types = "./index.ts";
9624
9624
  }
9625
+ if (templateName.includes("nextjs")) {
9626
+ result.browserslist = [
9627
+ "chrome >= 64",
9628
+ "edge >= 79",
9629
+ "firefox >= 67",
9630
+ "safari >= 12",
9631
+ "ios_saf >= 12",
9632
+ "opera >= 51",
9633
+ "not dead"
9634
+ ];
9635
+ }
9625
9636
  if (templateName.includes("vite") || templateName.includes("nextjs") || templateName.includes("expo") || templateName.includes("functions")) {
9626
9637
  if (!dependencies.entities) {
9627
9638
  dependencies.entities = "workspace:*";
@@ -8676,6 +8676,17 @@ function generatePackageJson(templateName, mode, options = {}) {
8676
8676
  result.main = "./index.ts";
8677
8677
  result.types = "./index.ts";
8678
8678
  }
8679
+ if (templateName.includes("nextjs")) {
8680
+ result.browserslist = [
8681
+ "chrome >= 64",
8682
+ "edge >= 79",
8683
+ "firefox >= 67",
8684
+ "safari >= 12",
8685
+ "ios_saf >= 12",
8686
+ "opera >= 51",
8687
+ "not dead"
8688
+ ];
8689
+ }
8679
8690
  if (templateName.includes("vite") || templateName.includes("nextjs") || templateName.includes("expo") || templateName.includes("functions")) {
8680
8691
  if (!dependencies.entities) {
8681
8692
  dependencies.entities = "workspace:*";
package/dist/bin/dndev.js CHANGED
@@ -994,7 +994,7 @@ function registerCommand(program2, def, action) {
994
994
  }
995
995
 
996
996
  // packages/cli/src/bin/dndev.mjs
997
- var CLI_VERSION = true ? "0.1.42" : "0.0.0";
997
+ var CLI_VERSION = true ? "0.1.45" : "0.0.0";
998
998
  var args = process.argv.slice(2);
999
999
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
1000
1000
  console.log(CLI_VERSION);
package/dist/index.js CHANGED
@@ -24661,6 +24661,17 @@ function generatePackageJson(templateName, mode, options = {}) {
24661
24661
  result.main = "./index.ts";
24662
24662
  result.types = "./index.ts";
24663
24663
  }
24664
+ if (templateName.includes("nextjs")) {
24665
+ result.browserslist = [
24666
+ "chrome >= 64",
24667
+ "edge >= 79",
24668
+ "firefox >= 67",
24669
+ "safari >= 12",
24670
+ "ios_saf >= 12",
24671
+ "opera >= 51",
24672
+ "not dead"
24673
+ ];
24674
+ }
24664
24675
  if (templateName.includes("vite") || templateName.includes("nextjs") || templateName.includes("expo") || templateName.includes("functions")) {
24665
24676
  if (!dependencies.entities) {
24666
24677
  dependencies.entities = "workspace:*";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.1.42",
3
+ "version": "0.1.45",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -35,9 +35,9 @@ export const appConfig: AppConfig = {
35
35
  footer: {
36
36
  legalLinks: [
37
37
  { path: '#cookie-settings', label: 'footer.legal.cookieSettings' },
38
+ { path: '/legal/legal-notice', label: 'footer.legal.legalNotice' },
38
39
  { path: '/legal/privacy', label: 'footer.legal.privacyPolicy' },
39
40
  { path: '/legal/terms', label: 'footer.legal.termsOfService' },
40
- // { path: '/legal/notice', label: 'footer.legal.legalNotice' },
41
41
  ],
42
42
  },
43
43
  },
@@ -24,6 +24,14 @@ export async function generateMetadata(): Promise<Metadata> {
24
24
  return getMetadataForPath('/');
25
25
  }
26
26
 
27
+ // SSR (appConfig.ssr): render dynamically at request time. The provider tree is
28
+ // store-driven (theme/layout/i18n/overlay read live during render), so it is
29
+ // inherently dynamic under React 19. Setting it on the root layout covers every
30
+ // route in one place — generated pages, hand-written pages, and /_not-found.
31
+ // Content is still fully server-rendered and crawlable. Remove only if this app
32
+ // opts back out of SSR and returns to static export.
33
+ export const dynamic = 'force-dynamic';
34
+
27
35
  /**
28
36
  * Root layout for Next.js App Router
29
37
  *
@@ -7,8 +7,16 @@
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
9
9
 
10
+ import { Suspense } from 'react';
11
+
10
12
  import { NotFoundPage } from '@donotdev/ui';
11
13
 
14
+ // Under appConfig.ssr, /_not-found renders dynamically (real SSR at request time).
15
+ // It's a special route (not a generated page.tsx wrapper), so it carries its own
16
+ // flag; generated content routes get this automatically from the framework.
17
+ // Harmless when SSR is off. Remove if you switch this app back to static export.
18
+ export const dynamic = 'force-dynamic';
19
+
12
20
  /**
13
21
  * Next.js App Router automatically uses not-found.tsx for 404 errors
14
22
  * This file exports the framework's NotFoundPage component which provides:
@@ -16,6 +24,17 @@ import { NotFoundPage } from '@donotdev/ui';
16
24
  * - i18n translation support
17
25
  * - Dynamic route suggestions
18
26
  * - Accessible navigation buttons
27
+ *
28
+ * NotFoundPage uses the routing hooks (useLocation/useNavigate), whose Next
29
+ * adapter calls useSearchParams(). In the App Router that forces a client-side
30
+ * bailout that throws during static prerender of /_not-found unless wrapped in
31
+ * a Suspense boundary.
19
32
  */
20
- export default NotFoundPage;
33
+ export default function NotFound() {
34
+ return (
35
+ <Suspense fallback={null}>
36
+ <NotFoundPage />
37
+ </Suspense>
38
+ );
39
+ }
21
40
 
@@ -35,9 +35,9 @@ export const appConfig: AppConfig = {
35
35
  footer: {
36
36
  legalLinks: [
37
37
  { path: '#cookie-settings', label: 'footer.legal.cookieSettings' },
38
+ { path: '/legal/legal-notice', label: 'footer.legal.legalNotice' },
38
39
  { path: '/legal/privacy', label: 'footer.legal.privacyPolicy' },
39
40
  { path: '/legal/terms', label: 'footer.legal.termsOfService' },
40
- // { path: '/legal/notice', label: 'footer.legal.legalNotice' },
41
41
  ],
42
42
  },
43
43
  },
@@ -35,9 +35,9 @@ export const appConfig: AppConfig = {
35
35
  footer: {
36
36
  legalLinks: [
37
37
  { path: '#cookie-settings', label: 'footer.legal.cookieSettings' },
38
+ { path: '/legal/legal-notice', label: 'footer.legal.legalNotice' },
38
39
  { path: '/legal/privacy', label: 'footer.legal.privacyPolicy' },
39
40
  { path: '/legal/terms', label: 'footer.legal.termsOfService' },
40
- // { path: '/legal/notice', label: 'footer.legal.legalNotice' },
41
41
  ],
42
42
  },
43
43
  },