create-cedar-app 4.2.1-next.0 → 4.2.1-next.258
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/database-overlays/neon-postgres/.env.defaults +20 -0
- package/database-overlays/neon-postgres/api/package.json +2 -2
- package/database-overlays/pglite/api/package.json +4 -4
- package/dist/create-cedar-app.js +430 -408
- package/package.json +6 -6
- package/templates/esm-js/api/package.json +2 -2
- package/templates/esm-js/api/prisma.config.cjs +1 -1
- package/templates/esm-js/package.json +6 -6
- package/templates/esm-js/scripts/jsconfig.json +6 -0
- package/templates/esm-js/web/{src/index.html → index.html} +1 -1
- package/templates/esm-js/web/package.json +4 -4
- package/templates/esm-js/web/src/entry.client.jsx +8 -8
- package/templates/esm-ts/api/package.json +2 -2
- package/templates/esm-ts/api/prisma.config.cjs +1 -1
- package/templates/esm-ts/package.json +6 -6
- package/templates/esm-ts/scripts/tsconfig.json +6 -0
- package/templates/esm-ts/web/{src/index.html → index.html} +1 -1
- package/templates/esm-ts/web/package.json +4 -4
- package/templates/esm-ts/web/src/entry.client.tsx +8 -8
- package/templates/js/api/package.json +2 -2
- package/templates/js/api/prisma.config.cjs +1 -1
- package/templates/js/package.json +4 -4
- package/templates/js/scripts/jsconfig.json +6 -0
- package/templates/js/web/{src/index.html → index.html} +1 -1
- package/templates/js/web/package.json +4 -4
- package/templates/js/web/src/entry.client.jsx +8 -8
- package/templates/overlays/cjs/npm/package.json +4 -4
- package/templates/overlays/cjs/pnpm/package.json +11 -9
- package/templates/overlays/cjs/pnpm/pnpm-workspace.yaml +18 -0
- package/templates/overlays/cjs/yarn/package.json +19 -7
- package/templates/overlays/esm/npm/package.json +4 -4
- package/templates/overlays/esm/pnpm/package.json +11 -9
- package/templates/overlays/esm/pnpm/pnpm-workspace.yaml +18 -0
- package/templates/overlays/esm/yarn/package.json +21 -9
- package/templates/ts/api/package.json +2 -2
- package/templates/ts/api/prisma.config.cjs +1 -1
- package/templates/ts/package.json +4 -4
- package/templates/ts/scripts/tsconfig.json +6 -0
- package/templates/ts/web/{src/index.html → index.html} +1 -1
- package/templates/ts/web/package.json +4 -4
- package/templates/ts/web/src/entry.client.tsx +8 -8
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"web"
|
|
7
7
|
],
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@cedarjs/core": "4.2.1-next.
|
|
10
|
-
"@cedarjs/eslint-config": "4.2.1-next.
|
|
11
|
-
"@cedarjs/project-config": "4.2.1-next.
|
|
12
|
-
"@cedarjs/testing": "4.2.1-next.
|
|
13
|
-
"vitest": "3.2.
|
|
9
|
+
"@cedarjs/core": "4.2.1-next.258",
|
|
10
|
+
"@cedarjs/eslint-config": "4.2.1-next.258",
|
|
11
|
+
"@cedarjs/project-config": "4.2.1-next.258",
|
|
12
|
+
"@cedarjs/testing": "4.2.1-next.258",
|
|
13
|
+
"vitest": "3.2.6"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": "=24.x"
|
|
@@ -18,15 +18,18 @@
|
|
|
18
18
|
"packageManager": "yarn@4.14.1",
|
|
19
19
|
"resolutions": {
|
|
20
20
|
"react-is": "19.2.3",
|
|
21
|
-
"vite": "7.3.
|
|
21
|
+
"vite": "7.3.5"
|
|
22
22
|
},
|
|
23
23
|
"dependenciesMeta": {
|
|
24
24
|
"@clerk/shared": {
|
|
25
|
-
"built":
|
|
25
|
+
"built": false
|
|
26
26
|
},
|
|
27
27
|
"@firebase/util": {
|
|
28
28
|
"built": true
|
|
29
29
|
},
|
|
30
|
+
"@prisma/client": {
|
|
31
|
+
"built": false
|
|
32
|
+
},
|
|
30
33
|
"@prisma/engines": {
|
|
31
34
|
"built": true
|
|
32
35
|
},
|
|
@@ -36,6 +39,12 @@
|
|
|
36
39
|
"better-sqlite3": {
|
|
37
40
|
"built": true
|
|
38
41
|
},
|
|
42
|
+
"core-js": {
|
|
43
|
+
"built": false
|
|
44
|
+
},
|
|
45
|
+
"core-js-pure": {
|
|
46
|
+
"built": false
|
|
47
|
+
},
|
|
39
48
|
"esbuild": {
|
|
40
49
|
"built": true
|
|
41
50
|
},
|
|
@@ -43,10 +52,13 @@
|
|
|
43
52
|
"built": true
|
|
44
53
|
},
|
|
45
54
|
"prisma": {
|
|
46
|
-
"built":
|
|
55
|
+
"built": false
|
|
47
56
|
},
|
|
48
57
|
"protobufjs": {
|
|
49
|
-
"built":
|
|
58
|
+
"built": false
|
|
59
|
+
},
|
|
60
|
+
"unrs-resolver": {
|
|
61
|
+
"built": false
|
|
50
62
|
}
|
|
51
63
|
}
|
|
52
64
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@cedarjs/api": "4.2.1-next.
|
|
8
|
-
"@cedarjs/graphql-server": "4.2.1-next.
|
|
7
|
+
"@cedarjs/api": "4.2.1-next.258",
|
|
8
|
+
"@cedarjs/graphql-server": "4.2.1-next.258",
|
|
9
9
|
"@prisma/adapter-better-sqlite3": "7.8.0",
|
|
10
10
|
"better-sqlite3": "12.9.0"
|
|
11
11
|
}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"web"
|
|
7
7
|
],
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@cedarjs/core": "4.2.1-next.
|
|
10
|
-
"@cedarjs/eslint-config": "4.2.1-next.
|
|
11
|
-
"@cedarjs/project-config": "4.2.1-next.
|
|
12
|
-
"@cedarjs/testing": "4.2.1-next.
|
|
9
|
+
"@cedarjs/core": "4.2.1-next.258",
|
|
10
|
+
"@cedarjs/eslint-config": "4.2.1-next.258",
|
|
11
|
+
"@cedarjs/project-config": "4.2.1-next.258",
|
|
12
|
+
"@cedarjs/testing": "4.2.1-next.258"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": "=24.x"
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
"module": "node20",
|
|
8
8
|
"moduleResolution": "node16",
|
|
9
9
|
"allowImportingTsExtensions": true,
|
|
10
|
+
"rootDirs": [
|
|
11
|
+
"../api/src",
|
|
12
|
+
"../.cedar/types/mirror/api/src",
|
|
13
|
+
"../web/src",
|
|
14
|
+
"../.cedar/types/mirror/web/src"
|
|
15
|
+
],
|
|
10
16
|
"paths": {
|
|
11
17
|
"$api/*": ["../api/*"],
|
|
12
18
|
"api/*": ["../api/*"],
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@cedarjs/forms": "4.2.1-next.
|
|
16
|
-
"@cedarjs/router": "4.2.1-next.
|
|
17
|
-
"@cedarjs/web": "4.2.1-next.
|
|
15
|
+
"@cedarjs/forms": "4.2.1-next.258",
|
|
16
|
+
"@cedarjs/router": "4.2.1-next.258",
|
|
17
|
+
"@cedarjs/web": "4.2.1-next.258",
|
|
18
18
|
"react": "18.3.1",
|
|
19
19
|
"react-dom": "18.3.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@cedarjs/vite": "4.2.1-next.
|
|
22
|
+
"@cedarjs/vite": "4.2.1-next.258",
|
|
23
23
|
"@types/react": "^18.2.55",
|
|
24
24
|
"@types/react-dom": "^18.2.19"
|
|
25
25
|
}
|
|
@@ -4,29 +4,29 @@ import App from './App'
|
|
|
4
4
|
import Routes from './Routes'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* When `#
|
|
7
|
+
* When `#cedar-app` isn't empty then it's very likely that you're using
|
|
8
8
|
* prerendering. So React attaches event listeners to the existing markup
|
|
9
9
|
* rather than replacing it.
|
|
10
10
|
* https://react.dev/reference/react-dom/client/hydrateRoot
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const cedarAppElement = document.getElementById('cedar-app')
|
|
13
13
|
|
|
14
|
-
if (!
|
|
14
|
+
if (!cedarAppElement) {
|
|
15
15
|
throw new Error(
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
'Could not find an element with ID "cedar-app". Please ensure it exists ' +
|
|
17
|
+
'in your `web/index.html` file.'
|
|
18
18
|
)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
if (
|
|
21
|
+
if (cedarAppElement.children?.length > 0) {
|
|
22
22
|
hydrateRoot(
|
|
23
|
-
|
|
23
|
+
cedarAppElement,
|
|
24
24
|
<App>
|
|
25
25
|
<Routes />
|
|
26
26
|
</App>
|
|
27
27
|
)
|
|
28
28
|
} else {
|
|
29
|
-
const root = createRoot(
|
|
29
|
+
const root = createRoot(cedarAppElement)
|
|
30
30
|
root.render(
|
|
31
31
|
<App>
|
|
32
32
|
<Routes />
|