@cedarjs/cli 5.0.0-canary.2411 → 5.0.0-canary.2413

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.
@@ -20,7 +20,7 @@ export const Document: React.FC<DocumentProps> = ({ children, css, meta }) => {
20
20
  <Meta tags={meta} />
21
21
  </head>
22
22
  <body>
23
- <div id="redwood-app">{children}</div>
23
+ <div id="cedar-app">{children}</div>
24
24
  </body>
25
25
  </html>
26
26
  )
@@ -4,29 +4,29 @@ import App from './App'
4
4
  import Routes from './Routes'
5
5
 
6
6
  /**
7
- * When `#redwood-app` isn't empty then it's very likely that you're using
7
+ * When `#cedar-app` isn't empty then it's very likely that you're using
8
8
  * pre-rendering. 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 redwoodAppElement = document.getElementById('redwood-app')
12
+ const cedarAppElement = document.getElementById('cedar-app')
13
13
 
14
- if (!redwoodAppElement) {
14
+ if (!cedarAppElement) {
15
15
  throw new Error(
16
- "Could not find an element with ID 'redwood-app'. Please ensure it " +
17
- "exists in your 'web/index.html' file."
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 (redwoodAppElement.children?.length > 0) {
21
+ if (cedarAppElement.children?.length > 0) {
22
22
  hydrateRoot(
23
- redwoodAppElement,
23
+ cedarAppElement,
24
24
  <App>
25
25
  <Routes />
26
26
  </App>
27
27
  )
28
28
  } else {
29
- const root = createRoot(redwoodAppElement)
29
+ const root = createRoot(cedarAppElement)
30
30
  root.render(
31
31
  <App>
32
32
  <Routes />
@@ -20,7 +20,7 @@ export const Document: React.FC<DocumentProps> = ({ children, css, meta }) => {
20
20
  <Meta tags={meta} />
21
21
  </head>
22
22
  <body>
23
- <div id="redwood-app">{children}</div>
23
+ <div id="cedar-app">{children}</div>
24
24
  </body>
25
25
  </html>
26
26
  )
@@ -5,21 +5,21 @@ import { Document } from './Document'
5
5
  import Routes from './Routes'
6
6
 
7
7
  /**
8
- * When `#redwood-app` isn't empty then it's very likely that you're using
8
+ * When `#cedar-app` isn't empty then it's very likely that you're using
9
9
  * prerendering. So React attaches event listeners to the existing markup
10
10
  * rather than replacing it.
11
11
  * https://react.dev/reference/react-dom/client/hydrateRoot
12
12
  */
13
- const redwoodAppElement = document.getElementById('redwood-app')
13
+ const cedarAppElement = document.getElementById('cedar-app')
14
14
 
15
- if (!redwoodAppElement) {
15
+ if (!cedarAppElement) {
16
16
  throw new Error(
17
- "Could not find an element with ID 'redwood-app'. Please ensure it " +
18
- "exists in your 'web/index.html' file."
17
+ 'Could not find an element with ID "cedar-app". Please ensure it exists ' +
18
+ 'in your `web/index.html` file.'
19
19
  )
20
20
  }
21
21
 
22
- if (redwoodAppElement.children?.length > 0) {
22
+ if (cedarAppElement.children?.length > 0) {
23
23
  hydrateRoot(
24
24
  document,
25
25
  <Document css={window.__assetMap?.()?.css}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "5.0.0-canary.2411",
3
+ "version": "5.0.0-canary.2413",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,17 +33,17 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.3",
35
35
  "@babel/preset-typescript": "7.28.5",
36
- "@cedarjs/api-server": "5.0.0-canary.2411",
37
- "@cedarjs/cli-helpers": "5.0.0-canary.2411",
38
- "@cedarjs/fastify-web": "5.0.0-canary.2411",
39
- "@cedarjs/internal": "5.0.0-canary.2411",
40
- "@cedarjs/prerender": "5.0.0-canary.2411",
41
- "@cedarjs/project-config": "5.0.0-canary.2411",
42
- "@cedarjs/structure": "5.0.0-canary.2411",
43
- "@cedarjs/telemetry": "5.0.0-canary.2411",
44
- "@cedarjs/utils": "5.0.0-canary.2411",
45
- "@cedarjs/vite": "5.0.0-canary.2411",
46
- "@cedarjs/web-server": "5.0.0-canary.2411",
36
+ "@cedarjs/api-server": "5.0.0-canary.2413",
37
+ "@cedarjs/cli-helpers": "5.0.0-canary.2413",
38
+ "@cedarjs/fastify-web": "5.0.0-canary.2413",
39
+ "@cedarjs/internal": "5.0.0-canary.2413",
40
+ "@cedarjs/prerender": "5.0.0-canary.2413",
41
+ "@cedarjs/project-config": "5.0.0-canary.2413",
42
+ "@cedarjs/structure": "5.0.0-canary.2413",
43
+ "@cedarjs/telemetry": "5.0.0-canary.2413",
44
+ "@cedarjs/utils": "5.0.0-canary.2413",
45
+ "@cedarjs/vite": "5.0.0-canary.2413",
46
+ "@cedarjs/web-server": "5.0.0-canary.2413",
47
47
  "@listr2/prompt-adapter-enquirer": "4.2.1",
48
48
  "@opentelemetry/api": "1.9.1",
49
49
  "@opentelemetry/core": "1.30.1",