create-cloudflare 2.35.2 → 2.37.0
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/dist/cli.js +5418 -6863
- package/package.json +3 -3
- package/templates/analog/templates/wrangler.json +5 -0
- package/templates/astro/templates/js/wrangler.json +8 -0
- package/templates/astro/templates/ts/wrangler.json +8 -0
- package/templates/common/js/package.json +1 -1
- package/templates/common/js/wrangler.json +8 -0
- package/templates/common/ts/package.json +1 -1
- package/templates/common/ts/wrangler.json +8 -0
- package/templates/hello-world/js/package.json +1 -1
- package/templates/hello-world/js/wrangler.json +8 -0
- package/templates/hello-world/py/package.json +1 -1
- package/templates/hello-world/py/wrangler.json +9 -0
- package/templates/hello-world/ts/package.json +1 -1
- package/templates/hello-world/ts/wrangler.json +8 -0
- package/templates/hello-world-durable-object/js/package.json +1 -1
- package/templates/hello-world-durable-object/js/wrangler.json +24 -0
- package/templates/hello-world-durable-object/ts/package.json +1 -1
- package/templates/hello-world-durable-object/ts/src/index.ts +1 -1
- package/templates/hello-world-durable-object/ts/wrangler.json +24 -0
- package/templates/hono/templates/wrangler.json +8 -0
- package/templates/next/wrangler.json +8 -0
- package/templates/nuxt/templates/wrangler.json +8 -0
- package/templates/openapi/ts/package.json +1 -1
- package/templates/openapi/ts/wrangler.json +8 -0
- package/templates/pre-existing/js/package.json +1 -1
- package/templates/pre-existing/js/wrangler.json +5 -0
- package/templates/queues/js/package.json +1 -1
- package/templates/queues/js/wrangler.json +21 -0
- package/templates/queues/ts/package.json +1 -1
- package/templates/queues/ts/wrangler.json +21 -0
- package/templates/qwik/templates/wrangler.json +8 -0
- package/templates/remix/templates/wrangler.json +5 -0
- package/templates/scheduled/js/package.json +1 -1
- package/templates/scheduled/js/wrangler.json +13 -0
- package/templates/scheduled/ts/package.json +1 -1
- package/templates/scheduled/ts/wrangler.json +13 -0
- package/templates/solid/templates/wrangler.json +8 -0
- package/templates/svelte/templates/wrangler.json +5 -0
- package/templates-experimental/angular/templates/wrangler.json +12 -0
- package/templates-experimental/astro/templates/js/wrangler.json +15 -0
- package/templates-experimental/astro/templates/ts/wrangler.json +15 -0
- package/templates-experimental/docusaurus/templates/wrangler.json +10 -0
- package/templates-experimental/gatsby/templates/wrangler.json +10 -0
- package/templates-experimental/hello-world-assets-only/templates/wrangler.json +10 -0
- package/templates-experimental/hello-world-durable-object-with-assets/js/package.json +1 -1
- package/templates-experimental/hello-world-durable-object-with-assets/js/wrangler.json +28 -0
- package/templates-experimental/hello-world-durable-object-with-assets/ts/package.json +1 -1
- package/templates-experimental/hello-world-durable-object-with-assets/ts/wrangler.json +28 -0
- package/templates-experimental/hello-world-with-assets/js/package.json +1 -1
- package/templates-experimental/hello-world-with-assets/js/wrangler.json +15 -0
- package/templates-experimental/hello-world-with-assets/py/package.json +1 -1
- package/templates-experimental/hello-world-with-assets/py/wrangler.json +15 -0
- package/templates-experimental/hello-world-with-assets/ts/package.json +1 -1
- package/templates-experimental/hello-world-with-assets/ts/wrangler.json +15 -0
- package/templates-experimental/hono/templates/wrangler.json +9 -0
- package/templates-experimental/next/c3.ts +2 -2
- package/templates-experimental/next/templates/cloudflare-env.d.ts +5 -0
- package/templates-experimental/next/templates/wrangler.json +13 -0
- package/templates-experimental/nuxt/templates/wrangler.json +12 -0
- package/templates-experimental/qwik/templates/wrangler.json +15 -0
- package/templates-experimental/solid/templates/wrangler.json +15 -0
- package/templates-experimental/svelte/templates/wrangler.json +12 -0
- package/templates-experimental/vue/templates/wrangler.json +10 -0
- package/templates/analog/templates/wrangler.toml +0 -85
- package/templates/astro/templates/js/wrangler.toml +0 -86
- package/templates/astro/templates/ts/wrangler.toml +0 -86
- package/templates/common/js/wrangler.toml +0 -113
- package/templates/common/ts/wrangler.toml +0 -113
- package/templates/hello-world/js/wrangler.toml +0 -114
- package/templates/hello-world/py/wrangler.toml +0 -114
- package/templates/hello-world/ts/wrangler.toml +0 -114
- package/templates/hello-world-durable-object/js/wrangler.toml +0 -113
- package/templates/hello-world-durable-object/ts/wrangler.toml +0 -113
- package/templates/hono/templates/wrangler.toml +0 -113
- package/templates/next/wrangler.toml +0 -86
- package/templates/nuxt/templates/wrangler.toml +0 -86
- package/templates/openapi/ts/wrangler.toml +0 -113
- package/templates/pre-existing/js/wrangler.toml +0 -4
- package/templates/queues/js/wrangler.toml +0 -118
- package/templates/queues/ts/wrangler.toml +0 -118
- package/templates/qwik/templates/wrangler.toml +0 -86
- package/templates/remix/templates/wrangler.toml +0 -85
- package/templates/scheduled/js/wrangler.toml +0 -119
- package/templates/scheduled/ts/wrangler.toml +0 -119
- package/templates/solid/templates/wrangler.toml +0 -84
- package/templates/svelte/templates/wrangler.toml +0 -85
- package/templates-experimental/angular/templates/wrangler.toml +0 -11
- package/templates-experimental/astro/templates/js/wrangler.toml +0 -12
- package/templates-experimental/astro/templates/ts/wrangler.toml +0 -12
- package/templates-experimental/docusaurus/templates/wrangler.toml +0 -10
- package/templates-experimental/gatsby/templates/wrangler.toml +0 -10
- package/templates-experimental/hello-world-assets-only/templates/wrangler.toml +0 -10
- package/templates-experimental/hello-world-durable-object-with-assets/js/wrangler.toml +0 -24
- package/templates-experimental/hello-world-durable-object-with-assets/ts/wrangler.toml +0 -24
- package/templates-experimental/hello-world-with-assets/js/wrangler.toml +0 -12
- package/templates-experimental/hello-world-with-assets/py/wrangler.toml +0 -12
- package/templates-experimental/hello-world-with-assets/ts/wrangler.toml +0 -12
- package/templates-experimental/hono/templates/wrangler.toml +0 -5
- package/templates-experimental/next/templates/env.d.ts +0 -5
- package/templates-experimental/next/templates/wrangler.toml +0 -12
- package/templates-experimental/nuxt/templates/wrangler.toml +0 -11
- package/templates-experimental/qwik/templates/wrangler.toml +0 -12
- package/templates-experimental/solid/templates/wrangler.toml +0 -12
- package/templates-experimental/svelte/templates/wrangler.toml +0 -11
- package/templates-experimental/vue/templates/wrangler.toml +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"wrap-ansi": "^9.0.0",
|
|
67
67
|
"xdg-app-paths": "^8.3.0",
|
|
68
68
|
"yargs": "^17.7.2",
|
|
69
|
-
"@cloudflare/cli": "1.1.1",
|
|
70
69
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
71
70
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/cli": "1.1.1",
|
|
72
|
+
"wrangler": "3.102.0"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=18.14.1"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/index.js",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"migrations": [
|
|
6
|
+
{
|
|
7
|
+
"new_classes": [
|
|
8
|
+
"MyDurableObject"
|
|
9
|
+
],
|
|
10
|
+
"tag": "v1"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"durable_objects": {
|
|
14
|
+
"bindings": [
|
|
15
|
+
{
|
|
16
|
+
"class_name": "MyDurableObject",
|
|
17
|
+
"name": "MY_DURABLE_OBJECT"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"observability": {
|
|
22
|
+
"enabled": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -14,7 +14,7 @@ import { DurableObject } from "cloudflare:workers";
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/** A Durable Object's behavior is defined in an exported Javascript class */
|
|
17
|
-
export class MyDurableObject extends DurableObject {
|
|
17
|
+
export class MyDurableObject extends DurableObject<Env> {
|
|
18
18
|
/**
|
|
19
19
|
* The constructor is invoked once upon creation of the Durable Object, i.e. the first call to
|
|
20
20
|
* `DurableObjectStub::get` for a given identifier (no-op constructors can be omitted)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/index.ts",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"migrations": [
|
|
6
|
+
{
|
|
7
|
+
"new_classes": [
|
|
8
|
+
"MyDurableObject"
|
|
9
|
+
],
|
|
10
|
+
"tag": "v1"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"durable_objects": {
|
|
14
|
+
"bindings": [
|
|
15
|
+
{
|
|
16
|
+
"class_name": "MyDurableObject",
|
|
17
|
+
"name": "MY_DURABLE_OBJECT"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"observability": {
|
|
22
|
+
"enabled": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/index.js",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"observability": {
|
|
6
|
+
"enabled": true
|
|
7
|
+
},
|
|
8
|
+
"queues": {
|
|
9
|
+
"consumers": [
|
|
10
|
+
{
|
|
11
|
+
"queue": "my-queue"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"producers": [
|
|
15
|
+
{
|
|
16
|
+
"binding": "MY_QUEUE",
|
|
17
|
+
"queue": "my-queue"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/index.ts",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"observability": {
|
|
6
|
+
"enabled": true
|
|
7
|
+
},
|
|
8
|
+
"queues": {
|
|
9
|
+
"consumers": [
|
|
10
|
+
{
|
|
11
|
+
"queue": "my-queue"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"producers": [
|
|
15
|
+
{
|
|
16
|
+
"binding": "MY_QUEUE",
|
|
17
|
+
"queue": "my-queue"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "./dist/_worker.js/index.js",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"compatibility_flags": [
|
|
6
|
+
"nodejs_compat"
|
|
7
|
+
],
|
|
8
|
+
"assets": {
|
|
9
|
+
"binding": "ASSETS",
|
|
10
|
+
"directory": "./dist"
|
|
11
|
+
},
|
|
12
|
+
"observability": {
|
|
13
|
+
"enabled": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "./dist/_worker.js/index.js",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"compatibility_flags": [
|
|
6
|
+
"nodejs_compat"
|
|
7
|
+
],
|
|
8
|
+
"assets": {
|
|
9
|
+
"binding": "ASSETS",
|
|
10
|
+
"directory": "./dist"
|
|
11
|
+
},
|
|
12
|
+
"observability": {
|
|
13
|
+
"enabled": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/index.js",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"assets": {
|
|
6
|
+
"binding": "ASSETS",
|
|
7
|
+
"directory": "./public"
|
|
8
|
+
},
|
|
9
|
+
"durable_objects": {
|
|
10
|
+
"bindings": [
|
|
11
|
+
{
|
|
12
|
+
"class_name": "MyDurableObject",
|
|
13
|
+
"name": "MY_DURABLE_OBJECT"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"migrations": [
|
|
18
|
+
{
|
|
19
|
+
"new_classes": [
|
|
20
|
+
"MyDurableObject"
|
|
21
|
+
],
|
|
22
|
+
"tag": "v1"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"observability": {
|
|
26
|
+
"enabled": true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/index.ts",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"migrations": [
|
|
6
|
+
{
|
|
7
|
+
"new_classes": [
|
|
8
|
+
"MyDurableObject"
|
|
9
|
+
],
|
|
10
|
+
"tag": "v1"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"assets": {
|
|
14
|
+
"binding": "ASSETS",
|
|
15
|
+
"directory": "./public"
|
|
16
|
+
},
|
|
17
|
+
"durable_objects": {
|
|
18
|
+
"bindings": [
|
|
19
|
+
{
|
|
20
|
+
"class_name": "MyDurableObject",
|
|
21
|
+
"name": "MY_DURABLE_OBJECT"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"observability": {
|
|
26
|
+
"enabled": true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<TBD>",
|
|
3
|
+
"main": "src/entry.py",
|
|
4
|
+
"compatibility_date": "<TBD>",
|
|
5
|
+
"compatibility_flags": [
|
|
6
|
+
"python_workers"
|
|
7
|
+
],
|
|
8
|
+
"assets": {
|
|
9
|
+
"binding": "ASSETS",
|
|
10
|
+
"directory": "./public"
|
|
11
|
+
},
|
|
12
|
+
"observability": {
|
|
13
|
+
"enabled": true
|
|
14
|
+
}
|
|
15
|
+
}
|