@cedarjs/cli 1.0.0-canary.12981 → 1.0.0-canary.12988

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.
Files changed (32) hide show
  1. package/dist/commands/deploy/baremetal/baremetalHandler.js +1 -1
  2. package/dist/commands/deploy/serverlessHandler.js +1 -1
  3. package/dist/commands/generate/cell/templates/test.js.template +2 -2
  4. package/dist/commands/generate/component/templates/test.tsx.template +1 -1
  5. package/dist/commands/generate/dbAuth/dbAuth.js +1 -1
  6. package/dist/commands/generate/dbAuth/dbAuthHandler.js +1 -1
  7. package/dist/commands/generate/directive/templates/transformer.directive.ts.template +1 -1
  8. package/dist/commands/generate/directive/templates/validator.directive.ts.template +1 -1
  9. package/dist/commands/generate/function/functionHandler.js +1 -1
  10. package/dist/commands/generate/function/templates/function.ts.template +1 -1
  11. package/dist/commands/generate/function/templates/scenarios.ts.template +1 -1
  12. package/dist/commands/generate/function/templates/test.ts.template +2 -2
  13. package/dist/commands/generate/job/templates/scenarios.ts.template +1 -1
  14. package/dist/commands/generate/layout/templates/test.tsx.template +1 -1
  15. package/dist/commands/generate/model/model.js +1 -1
  16. package/dist/commands/generate/page/templates/test.tsx.template +1 -1
  17. package/dist/commands/generate/sdl/sdlHandler.js +1 -1
  18. package/dist/commands/generate/service/templates/test.ts.template +2 -2
  19. package/dist/commands/prerenderHandler.js +2 -2
  20. package/dist/commands/record.js +1 -1
  21. package/dist/commands/setup/auth/auth.js +1 -1
  22. package/dist/commands/setup/cache/cacheHandler.js +1 -1
  23. package/dist/commands/setup/deploy/providers/baremetalHandler.js +1 -1
  24. package/dist/commands/setup/deploy/providers/netlifyHandler.js +1 -1
  25. package/dist/commands/setup/deploy/providers/serverless.js +1 -1
  26. package/dist/commands/setup/deploy/providers/serverlessHandler.js +3 -3
  27. package/dist/commands/setup/deploy/providers/vercelHandler.js +1 -1
  28. package/dist/commands/setup/deploy/templates/baremetal.js +1 -1
  29. package/dist/commands/setup/docker/dockerHandler.js +1 -1
  30. package/dist/commands/setup/tsconfig/tsconfigHandler.js +1 -1
  31. package/dist/commands/setup/uploads/uploadsHandler.js +3 -3
  32. package/package.json +13 -13
@@ -23,7 +23,7 @@ const DEFAULT_SERVER_CONFIG = {
23
23
  const pathJoin = path.posix.join;
24
24
  const throwMissingConfig = (name) => {
25
25
  throw new Error(
26
- `"${name}" config option not set. See https://redwoodjs.com/docs/deployment/baremetal#deploytoml`
26
+ `"${name}" config option not set. See https://cedarjs.com/docs/deployment/baremetal#deploytoml`
27
27
  );
28
28
  };
29
29
  const verifyConfig = (config, yargs) => {
@@ -157,7 +157,7 @@ const handler = async (yargs) => {
157
157
  "To do this run `yarn serverless` on each of the sides, and connect your account",
158
158
  "",
159
159
  "Find more information in our docs:",
160
- c.underline("https://redwoodjs.com/docs/deploy#serverless")
160
+ c.underline("https://cedarjs.com/docs/deploy#serverless")
161
161
  ];
162
162
  console.log(
163
163
  boxen(message.join("\n"), {
@@ -6,8 +6,8 @@ import { standard } from './${pascalName}Cell.mock'
6
6
  // Generated boilerplate tests do not account for all circumstances
7
7
  // and can fail without adjustments, e.g. Float and DateTime types.
8
8
  // Please refer to the RedwoodJS Testing Docs:
9
- // https://redwoodjs.com/docs/testing#testing-cells
10
- // https://redwoodjs.com/docs/testing#jest-expect-type-considerations
9
+ // https://cedarjs.com/docs/testing#testing-cells
10
+ // https://cedarjs.com/docs/testing#jest-expect-type-considerations
11
11
 
12
12
  describe('${pascalName}Cell', () => {
13
13
  it('renders Loading successfully', () => {
@@ -3,7 +3,7 @@ import { render } from '@cedarjs/testing/web'
3
3
  import ${pascalName} from './${pascalName}'
4
4
 
5
5
  // Improve this test with help from the Redwood Testing Doc:
6
- // https://redwoodjs.com/docs/testing#testing-components
6
+ // https://cedarjs.com/docs/testing#testing-components
7
7
 
8
8
  describe('${pascalName}', () => {
9
9
  it('renders successfully', () => {
@@ -39,7 +39,7 @@ const builder = (yargs) => {
39
39
  }).epilogue(
40
40
  `Also see the ${terminalLink(
41
41
  "CedarJS dbAuth Reference",
42
- "https://redwoodjs.com/docs/auth/dbauth"
42
+ "https://cedarjs.com/docs/auth/dbauth"
43
43
  )}`
44
44
  );
45
45
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -263,7 +263,7 @@ const tasks = ({
263
263
  {
264
264
  type: "confirm",
265
265
  name: "answer",
266
- message: "Enable WebAuthn support (TouchID/FaceID) on LoginPage? See https://redwoodjs.com/docs/auth/dbAuth#webAuthn",
266
+ message: "Enable WebAuthn support (TouchID/FaceID) on LoginPage? See https://cedarjs.com/docs/auth/dbAuth#webAuthn",
267
267
  default: false
268
268
  },
269
269
  { enquirer: ctx.enquirer }
@@ -28,7 +28,7 @@ const transform: TransformerDirectiveFunc = ({ context, resolvedValue }) => {
28
28
 
29
29
  // You can also modify your directive to take arguments
30
30
  // and use the directiveArgs object provided to this function to get values
31
- // See documentation here: https://redwoodjs.com/docs/directives
31
+ // See documentation here: https://cedarjs.com/docs/directives
32
32
 
33
33
  return resolvedValue.replace('foo', 'bar')
34
34
  }
@@ -27,7 +27,7 @@ const validate: ValidatorDirectiveFunc = ({ context, directiveArgs }) => {
27
27
 
28
28
  // You can also modify your directive to take arguments
29
29
  // and use the directiveArgs object provided to this function to get values
30
- // See documentation here: https://redwoodjs.com/docs/directives
30
+ // See documentation here: https://cedarjs.com/docs/directives
31
31
  logger.debug(directiveArgs, 'directiveArgs in ${camelName} directive')
32
32
 
33
33
 
@@ -90,7 +90,7 @@ const handler = async ({ name, force, ...rest }) => {
90
90
  console.info(
91
91
  `Please consult the ${terminalLink(
92
92
  "Serverless Function Considerations",
93
- "https://redwoodjs.com/docs/serverless-functions#security-considerations"
93
+ "https://cedarjs.com/docs/serverless-functions#security-considerations"
94
94
  )} in the RedwoodJS documentation for more information.`
95
95
  );
96
96
  console.info("");
@@ -9,7 +9,7 @@ import { logger } from 'src/lib/logger'
9
9
  * Important: When deployed, a custom serverless function is an open API endpoint and
10
10
  * is your responsibility to secure appropriately.
11
11
  *
12
- * @see {@link https://redwoodjs.com/docs/serverless-functions#security-considerations|Serverless Function Considerations}
12
+ * @see {@link https://cedarjs.com/docs/serverless-functions#security-considerations|Serverless Function Considerations}
13
13
  * in the RedwoodJS documentation for more information.
14
14
  *<% if (!typescript) { %>
15
15
  * @typedef { import('aws-lambda').APIGatewayEvent } APIGatewayEvent
@@ -2,7 +2,7 @@ import type { ScenarioData } from '@cedarjs/testing/api'
2
2
 
3
3
  export const standard = defineScenario({
4
4
  // Define the "fixture" to write into your test database here
5
- // See guide: https://redwoodjs.com/docs/testing#scenarios
5
+ // See guide: https://cedarjs.com/docs/testing#scenarios
6
6
  })
7
7
 
8
8
  export type StandardScenario = ScenarioData<unknown>
@@ -3,7 +3,7 @@ import { mockHttpEvent, mockContext } from '@cedarjs/testing/api'
3
3
  import { handler } from './${name}'
4
4
 
5
5
  // Improve this test with help from the Redwood Testing Doc:
6
- // https://redwoodjs.com/docs/testing#testing-functions
6
+ // https://cedarjs.com/docs/testing#testing-functions
7
7
 
8
8
  describe('${name} function', () => {
9
9
 
@@ -22,7 +22,7 @@ describe('${name} function', () => {
22
22
  })
23
23
 
24
24
  // You can also use scenarios to test your api functions
25
- // See guide here: https://redwoodjs.com/docs/testing#scenarios
25
+ // See guide here: https://cedarjs.com/docs/testing#scenarios
26
26
  //
27
27
  // scenario('Scenario test', async () => {
28
28
  //
@@ -2,7 +2,7 @@ import type { ScenarioData } from '@cedarjs/testing/api'
2
2
 
3
3
  export const standard = defineScenario({
4
4
  // Define the "fixture" to write into your test database here
5
- // See guide: https://redwoodjs.com/docs/testing#scenarios
5
+ // See guide: https://cedarjs.com/docs/testing#scenarios
6
6
  })
7
7
 
8
8
  export type StandardScenario = ScenarioData<unknown>
@@ -3,7 +3,7 @@ import { render } from '@cedarjs/testing/web'
3
3
  import ${pascalName}Layout from './${pascalName}Layout'
4
4
 
5
5
  // Improve this test with help from the Redwood Testing Doc:
6
- // https://redwoodjs.com/docs/testing#testing-pages-layouts
6
+ // https://cedarjs.com/docs/testing#testing-pages-layouts
7
7
 
8
8
  describe('${pascalName}Layout', () => {
9
9
  it('renders successfully', () => {
@@ -13,7 +13,7 @@ const builder = (yargs) => {
13
13
  }).epilogue(
14
14
  `Also see the ${terminalLink(
15
15
  "RedwoodRecord Reference",
16
- "https://redwoodjs.com/docs/redwoodrecord"
16
+ "https://cedarjs.com/docs/redwoodrecord"
17
17
  )}`
18
18
  );
19
19
  Object.entries(getYargsDefaults()).forEach(([option, config]) => {
@@ -3,7 +3,7 @@ import { render } from '@cedarjs/testing/web'
3
3
  import ${pascalName}Page from './${pascalName}Page'
4
4
 
5
5
  // Improve this test with help from the Redwood Testing Doc:
6
- // https://redwoodjs.com/docs/testing#testing-pages-layouts
6
+ // https://cedarjs.com/docs/testing#testing-pages-layouts
7
7
 
8
8
  describe('${pascalName}Page', () => {
9
9
  it('renders successfully', () => {
@@ -28,7 +28,7 @@ const missingIdConsoleMessage = () => {
28
28
  const line3 = "you'll need to update your schema definition to include";
29
29
  const line4 = "an `@id` column. Read more here: ";
30
30
  const line5 = ansis.underline.blue(
31
- "https://redwoodjs.com/docs/schema-relations"
31
+ "https://cedarjs.com/docs/schema-relations"
32
32
  );
33
33
  console.error(
34
34
  boxen(line1 + "\n\n" + line2 + "\n" + line3 + "\n" + line4 + "\n" + line5, {
@@ -39,8 +39,8 @@ import type { StandardScenario } from './${pluralCamelName}.scenarios.js'
39
39
  // Generated boilerplate tests do not account for all circumstances
40
40
  // and can fail without adjustments, e.g. Float.
41
41
  // Please refer to the RedwoodJS Testing Docs:
42
- // https://redwoodjs.com/docs/testing#testing-services
43
- // https://redwoodjs.com/docs/testing#jest-expect-type-considerations
42
+ // https://cedarjs.com/docs/testing#testing-services
43
+ // https://cedarjs.com/docs/testing#jest-expect-type-considerations
44
44
 
45
45
  describe('${pluralCamelName}', () => {
46
46
  scenario('returns all ${pluralCamelName}', async (scenario: StandardScenario) => {
@@ -268,12 +268,12 @@ const handler = async ({ path: routerPath, dryRun, verbose }) => {
268
268
  );
269
269
  console.log(
270
270
  c.info(
271
- "- Avoid using `window` in the initial render path through your React components without checks. \n See https://redwoodjs.com/docs/prerender#prerender-utils"
271
+ "- Avoid using `window` in the initial render path through your React components without checks. \n See https://cedarjs.com/docs/prerender#prerender-utils"
272
272
  )
273
273
  );
274
274
  console.log(
275
275
  c.info(
276
- "- Avoid prerendering Cells with authenticated queries, by conditionally rendering them.\n See https://redwoodjs.com/docs/prerender#common-warnings--errors"
276
+ "- Avoid prerendering Cells with authenticated queries, by conditionally rendering them.\n See https://cedarjs.com/docs/prerender#common-warnings--errors"
277
277
  )
278
278
  );
279
279
  }
@@ -4,7 +4,7 @@ import { terminalLink } from "termi-link";
4
4
  const builder = (yargs) => yargs.command({ command, description, handler }).demandCommand().epilogue(
5
5
  `Also see the ${terminalLink(
6
6
  "RedwoodRecord Docs",
7
- "https://redwoodjs.com/docs/redwoodrecord"
7
+ "https://cedarjs.com/docs/redwoodrecord"
8
8
  )}
9
9
  `
10
10
  );
@@ -181,7 +181,7 @@ function directToCustomAuthCommand(provider) {
181
181
  });
182
182
  const customAuthLink = terminalLink(
183
183
  "Custom Auth",
184
- "https://redwoodjs.com/docs/auth/custom"
184
+ "https://cedarjs.com/docs/auth/custom"
185
185
  );
186
186
  console.log(
187
187
  `${provider} is no longer supported out of the box. But you can still integrate it yourself with ${customAuthLink}`
@@ -51,7 +51,7 @@ const handler = async ({ client, force }) => {
51
51
  task.title = `One more thing...
52
52
 
53
53
  ${c.tip("Check out the Service Cache docs for config and usage:")}
54
- ${c.link("https://redwoodjs.com/docs/services#caching")}
54
+ ${c.link("https://cedarjs.com/docs/services#caching")}
55
55
  `;
56
56
  }
57
57
  }
@@ -28,7 +28,7 @@ const files = [
28
28
  const notes = [
29
29
  "You are almost ready to go BAREMETAL!",
30
30
  "",
31
- "See https://redwoodjs.com/docs/deploy/baremetal for the remaining",
31
+ "See https://cedarjs.com/docs/deploy/baremetal for the remaining",
32
32
  "config and setup required before you can perform your first deploy."
33
33
  ];
34
34
  const handler = async ({ force }) => {
@@ -14,7 +14,7 @@ const files = [
14
14
  ];
15
15
  const notes = [
16
16
  "You are ready to deploy to Netlify!",
17
- "See: https://redwoodjs.com/docs/deploy/netlify"
17
+ "See: https://cedarjs.com/docs/deploy/netlify"
18
18
  ];
19
19
  const handler = async ({ force }) => {
20
20
  recordTelemetryAttributes({
@@ -1,6 +1,6 @@
1
1
  import { createHandler } from "../helpers/helpers.js";
2
2
  const command = "serverless";
3
- const description = "[DEPRECATED]\nSetup Serverless Framework AWS deploy\nFor more information:\nhttps://redwoodjs.com/docs/deploy/serverless";
3
+ const description = "[DEPRECATED]\nSetup Serverless Framework AWS deploy\nFor more information:\nhttps://cedarjs.com/docs/deploy/serverless";
4
4
  const aliases = ["aws-serverless"];
5
5
  const handler = createHandler("serverless");
6
6
  export {
@@ -21,12 +21,12 @@ const notes = [
21
21
  c.error("DEPRECATED option not officially supported"),
22
22
  "",
23
23
  "For more information:",
24
- "https://redwoodjs.com/docs/deploy/serverless",
24
+ "https://cedarjs.com/docs/deploy/serverless",
25
25
  "",
26
26
  "",
27
27
  c.success("You're almost ready to deploy using the Serverless framework!"),
28
28
  "",
29
- "\u2022 See https://redwoodjs.com/docs/deploy#serverless-deploy for more info. If you ",
29
+ "\u2022 See https://cedarjs.com/docs/deploy#serverless-deploy for more info. If you ",
30
30
  " want to give it a shot, open your `.env` file and add your AWS credentials,",
31
31
  " then run: ",
32
32
  "",
@@ -77,7 +77,7 @@ const updateRedwoodTomlTask = () => {
77
77
  const content = fs.readFileSync(configPath).toString();
78
78
  const newContent = content.replace(
79
79
  /apiUrl.*?\n/m,
80
- 'apiUrl = "${API_URL:/api}" # Set API_URL in production to the Serverless deploy endpoint of your api service, see https://redwoodjs.com/docs/deploy/serverless-deploy\n'
80
+ 'apiUrl = "${API_URL:/api}" # Set API_URL in production to the Serverless deploy endpoint of your api service, see https://cedarjs.com/docs/deploy/serverless-deploy\n'
81
81
  );
82
82
  fs.writeFileSync(configPath, newContent);
83
83
  }
@@ -49,7 +49,7 @@ const vercelConfig = {
49
49
  };
50
50
  const notes = [
51
51
  "You are ready to deploy to Vercel!",
52
- "See: https://redwoodjs.com/docs/deploy#vercel-deploy"
52
+ "See: https://cedarjs.com/docs/deploy#vercel-deploy"
53
53
  ];
54
54
  export {
55
55
  handler
@@ -25,7 +25,7 @@ const DEPLOY = `# This file contains config for a baremetal deployment
25
25
  # * passphrase - used if your private key has a passphrase
26
26
  # * agentForward - set to \`true\` to forward the client machine's ssh credentials
27
27
  #
28
- # See https://redwoodjs.com/docs/deploy/baremetal for more info
28
+ # See https://cedarjs.com/docs/deploy/baremetal for more info
29
29
 
30
30
  [[production.servers]]
31
31
  host = "server.com"
@@ -233,7 +233,7 @@ async function handler({ force }) {
233
233
  "Lastly, ensure you have Docker. If you don't, see https://docs.docker.com/desktop/",
234
234
  "",
235
235
  "There's a lot in the Dockerfile and there's a reason for every line.",
236
- "Be sure to check out the docs: https://redwoodjs.com/docs/docker"
236
+ "Be sure to check out the docs: https://cedarjs.com/docs/docker"
237
237
  ].join("\n")
238
238
  );
239
239
  } catch (e) {
@@ -39,7 +39,7 @@ const handler = async ({ force }) => {
39
39
  task.title = `One more thing...
40
40
 
41
41
  ${c.tip("Quick link to the docs on configuring TypeScript")}
42
- ${c.link("https://redwoodjs.com/docs/typescript")}
42
+ ${c.link("https://cedarjs.com/docs/typescript")}
43
43
  `;
44
44
  }
45
45
  }
@@ -77,11 +77,11 @@ const handler = async ({ force }) => {
77
77
  if (transformResult.error) {
78
78
  if (transformResult.error === "RW_CODEMOD_ERR_OLD_FORMAT") {
79
79
  throw new Error(
80
- "It looks like your src/lib/db file is using the old format. Please update it as per the v8 upgrade guide: https://redwoodjs.com/upgrade/v8#database-file-structure-change. And run again. \n\nYou can also manually modify your api/src/lib/db to include the prisma extension: https://docs.redwoodjs.com/docs/uploads/#attaching-the-prisma-extension"
80
+ "It looks like your src/lib/db file is using the old format. Please update it as per the v8 upgrade guide: https://cedarjs.com/docs/upgrade-guides/v8#database-file-structure-change. And run again. \n\nYou can also manually modify your api/src/lib/db to include the prisma extension: https://cedarjs.com/docs/uploads/#attaching-the-prisma-extension"
81
81
  );
82
82
  }
83
83
  throw new Error(
84
- "Could not add the prisma extension. \n Please modify your api/src/lib/db to include the prisma extension: https://docs.redwoodjs.com/docs/uploads/#attaching-the-prisma-extension"
84
+ "Could not add the prisma extension. \n Please modify your api/src/lib/db to include the prisma extension: https://cedarjs.com/docs/uploads/#attaching-the-prisma-extension"
85
85
  );
86
86
  }
87
87
  }
@@ -124,7 +124,7 @@ const handler = async ({ force }) => {
124
124
 
125
125
 
126
126
  Check out the docs for more info:
127
- ${c.link("https://docs.redwoodjs.com/docs/uploads")}
127
+ ${c.link("https://cedarjs.com/docs/uploads")}
128
128
 
129
129
  `;
130
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12981+4f9716c6d",
3
+ "version": "1.0.0-canary.12988+f527e703d",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,15 +31,15 @@
31
31
  "dependencies": {
32
32
  "@babel/preset-typescript": "7.28.5",
33
33
  "@babel/runtime-corejs3": "7.28.4",
34
- "@cedarjs/api-server": "1.0.0-canary.12981",
35
- "@cedarjs/cli-helpers": "1.0.0-canary.12981",
36
- "@cedarjs/fastify-web": "1.0.0-canary.12981",
37
- "@cedarjs/internal": "1.0.0-canary.12981",
38
- "@cedarjs/prerender": "1.0.0-canary.12981",
39
- "@cedarjs/project-config": "1.0.0-canary.12981",
40
- "@cedarjs/structure": "1.0.0-canary.12981",
41
- "@cedarjs/telemetry": "1.0.0-canary.12981",
42
- "@cedarjs/web-server": "1.0.0-canary.12981",
34
+ "@cedarjs/api-server": "1.0.0-canary.12988",
35
+ "@cedarjs/cli-helpers": "1.0.0-canary.12988",
36
+ "@cedarjs/fastify-web": "1.0.0-canary.12988",
37
+ "@cedarjs/internal": "1.0.0-canary.12988",
38
+ "@cedarjs/prerender": "1.0.0-canary.12988",
39
+ "@cedarjs/project-config": "1.0.0-canary.12988",
40
+ "@cedarjs/structure": "1.0.0-canary.12988",
41
+ "@cedarjs/telemetry": "1.0.0-canary.12988",
42
+ "@cedarjs/web-server": "1.0.0-canary.12988",
43
43
  "@listr2/prompt-adapter-enquirer": "2.0.16",
44
44
  "@opentelemetry/api": "1.8.0",
45
45
  "@opentelemetry/core": "1.22.0",
@@ -53,9 +53,9 @@
53
53
  "boxen": "5.1.2",
54
54
  "camelcase": "6.3.0",
55
55
  "change-case": "4.1.2",
56
- "ci-info": "4.0.0",
56
+ "ci-info": "4.3.1",
57
57
  "concurrently": "8.2.2",
58
- "configstore": "7.0.0",
58
+ "configstore": "7.1.0",
59
59
  "core-js": "3.42.0",
60
60
  "cross-env": "7.0.3",
61
61
  "decamelize": "6.0.1",
@@ -101,5 +101,5 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "4f9716c6dc028846393394ed2386f866714a55d1"
104
+ "gitHead": "f527e703d59ba1fb0cfa27e98ee16eb18df7f20d"
105
105
  }