create-cloudflare 0.0.0-e6a3d243 → 0.0.0-e6ada079

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 (40) hide show
  1. package/dist/cli.js +742 -1766
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +19 -20
  4. package/templates/angular/c3.ts +1 -0
  5. package/templates/common/js/package.json +1 -1
  6. package/templates/common/ts/package.json +2 -2
  7. package/templates/common/ts/src/ab-test.ts +2 -2
  8. package/templates/common/ts/src/index.ts +2 -2
  9. package/templates/common/ts/src/proxy.ts +2 -2
  10. package/templates/common/ts/src/redirect.ts +2 -2
  11. package/templates/common/ts/tsconfig.json +1 -1
  12. package/templates/hello-world/js/package.json +3 -3
  13. package/templates/hello-world/ts/package.json +4 -4
  14. package/templates/hello-world/ts/src/index.ts +2 -2
  15. package/templates/hello-world/ts/tsconfig.json +3 -2
  16. package/templates/hello-world-durable-object/js/package.json +1 -1
  17. package/templates/hello-world-durable-object/ts/package.json +2 -2
  18. package/templates/hello-world-durable-object/ts/src/index.ts +2 -2
  19. package/templates/hello-world-durable-object/ts/tsconfig.json +1 -1
  20. package/templates/hello-world-python/py/package.json +1 -1
  21. package/templates/next/README.md +1 -1
  22. package/templates/next/c3.ts +1 -1
  23. package/templates/openapi/ts/README.md +3 -3
  24. package/templates/openapi/ts/package.json +5 -3
  25. package/templates/openapi/ts/src/endpoints/taskCreate.ts +26 -16
  26. package/templates/openapi/ts/src/endpoints/taskDelete.ts +20 -19
  27. package/templates/openapi/ts/src/endpoints/taskFetch.ts +30 -23
  28. package/templates/openapi/ts/src/endpoints/taskList.ts +27 -24
  29. package/templates/openapi/ts/src/index.ts +14 -20
  30. package/templates/openapi/ts/src/types.ts +9 -8
  31. package/templates/pre-existing/js/package.json +1 -1
  32. package/templates/queues/js/package.json +1 -1
  33. package/templates/queues/ts/package.json +2 -2
  34. package/templates/queues/ts/src/index.ts +3 -3
  35. package/templates/queues/ts/tsconfig.json +1 -1
  36. package/templates/scheduled/js/package.json +1 -1
  37. package/templates/scheduled/ts/package.json +2 -2
  38. package/templates/scheduled/ts/src/index.ts +2 -2
  39. package/templates/scheduled/ts/tsconfig.json +1 -1
  40. /package/templates/hello-world/ts/{vitest.config.ts → vitest.config.mts} +0 -0
@@ -9,7 +9,7 @@
9
9
  "cf-typegen": "wrangler types"
10
10
  },
11
11
  "devDependencies": {
12
- "typescript": "^5.0.4",
13
- "wrangler": "^3.0.0"
12
+ "typescript": "^5.5.2",
13
+ "wrangler": "^3.60.3"
14
14
  }
15
15
  }
@@ -18,7 +18,7 @@
18
18
  export default {
19
19
  // The scheduled handler is invoked at the interval set in our wrangler.toml's
20
20
  // [[triggers]] configuration.
21
- async scheduled(event: ScheduledEvent, env: Env, ctx: ExecutionContext): Promise<void> {
21
+ async scheduled(event, env, ctx): Promise<void> {
22
22
  // A Cron Trigger can make requests to other endpoints on the Internet,
23
23
  // publish to a Queue, query a D1 Database, and much more.
24
24
  //
@@ -30,4 +30,4 @@ export default {
30
30
  // In this template, we'll just log the result:
31
31
  console.log(`trigger fired at ${event.cron}: ${wasSuccessful}`);
32
32
  },
33
- };
33
+ } satisfies ExportedHandler<Env>;
@@ -13,7 +13,7 @@
13
13
  /* Language and Environment */
14
14
  "target": "es2021" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
15
  "lib": ["es2021"] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
16
- "jsx": "react" /* Specify what JSX code is generated. */,
16
+ "jsx": "react-jsx" /* Specify what JSX code is generated. */,
17
17
  // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
18
  // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
19
  // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */