wrangler 3.7.0 → 3.8.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/package.json CHANGED
@@ -1,196 +1,200 @@
1
1
  {
2
- "name": "wrangler",
3
- "version": "3.7.0",
4
- "description": "Command-line interface for all things Cloudflare Workers",
5
- "keywords": [
6
- "wrangler",
7
- "cloudflare",
8
- "workers",
9
- "cloudflare workers",
10
- "edge",
11
- "compute",
12
- "serverless",
13
- "serverless application",
14
- "serverless module",
15
- "wasm",
16
- "web",
17
- "assembly",
18
- "webassembly",
19
- "rust",
20
- "emscripten",
21
- "typescript",
22
- "graphql",
23
- "router",
24
- "http",
25
- "cli"
26
- ],
27
- "homepage": "https://github.com/cloudflare/workers-sdk#readme",
28
- "bugs": {
29
- "url": "https://github.com/cloudflare/workers-sdk/issues"
30
- },
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/cloudflare/workers-sdk.git",
34
- "directory": "packages/wrangler"
35
- },
36
- "license": "MIT OR Apache-2.0",
37
- "author": "wrangler@cloudflare.com",
38
- "main": "wrangler-dist/cli.js",
39
- "types": "wrangler-dist/cli.d.ts",
40
- "bin": {
41
- "wrangler": "./bin/wrangler.js",
42
- "wrangler2": "./bin/wrangler.js"
43
- },
44
- "files": [
45
- "bin",
46
- "miniflare-dist",
47
- "wrangler-dist",
48
- "templates",
49
- "kv-asset-handler.js",
50
- "Cloudflare_CA.pem"
51
- ],
52
- "scripts": {
53
- "assert-git-version": "node -r esbuild-register scripts/assert-git-version.ts",
54
- "build": "npm run clean && npm run bundle && npm run emit-types",
55
- "bundle": "node -r esbuild-register scripts/bundle.ts",
56
- "check:lint": "eslint .",
57
- "check:type": "tsc",
58
- "clean": "rimraf wrangler-dist miniflare-dist emitted-types",
59
- "dev": "npm run clean && concurrently -c black,blue --kill-others-on-fail false 'npm run bundle -- --watch' 'npm run check:type -- --watch --preserveWatchOutput'",
60
- "emit-types": "tsc -p tsconfig.emit.json && node -r esbuild-register scripts/emit-types.ts",
61
- "prepublishOnly": "SOURCEMAPS=false npm run build",
62
- "start": "npm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
63
- "test": "npm run assert-git-version && jest",
64
- "test:ci": "npm run test -- --coverage",
65
- "test:debug": "npm run test -- --silent=false --verbose=true",
66
- "test:e2e": "vitest --test-timeout 240000 --single-thread --dir ./e2e run",
67
- "test:watch": "npm run test -- --runInBand --testTimeout=50000 --watch",
68
- "type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
69
- },
70
- "jest": {
71
- "coverageReporters": [
72
- "json",
73
- "html",
74
- "text",
75
- "cobertura"
76
- ],
77
- "moduleNameMapper": {
78
- "clipboardy": "<rootDir>/src/__tests__/helpers/clipboardy-mock.js",
79
- "miniflare/cli": "<rootDir>/../../node_modules/miniflare/dist/src/cli.js"
80
- },
81
- "restoreMocks": true,
82
- "setupFilesAfterEnv": [
83
- "<rootDir>/src/__tests__/jest.setup.ts"
84
- ],
85
- "testRegex": "src/__tests__/.*\\.(test|spec)\\.[jt]sx?$",
86
- "testTimeout": 50000,
87
- "transform": {
88
- "^.+\\.c?(t|j)sx?$": [
89
- "esbuild-jest",
90
- {
91
- "sourcemap": true
92
- }
93
- ]
94
- },
95
- "transformIgnorePatterns": [
96
- "node_modules/(?!find-up|locate-path|p-locate|p-limit|p-timeout|p-queue|yocto-queue|path-exists|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream|get-port|supports-color|pretty-bytes|npx-import)"
97
- ]
98
- },
99
- "dependencies": {
100
- "@cloudflare/kv-asset-handler": "^0.2.0",
101
- "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
102
- "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
103
- "blake3-wasm": "^2.1.5",
104
- "chokidar": "^3.5.3",
105
- "esbuild": "0.17.19",
106
- "miniflare": "3.20230904.0",
107
- "nanoid": "^3.3.3",
108
- "path-to-regexp": "^6.2.0",
109
- "selfsigned": "^2.0.1",
110
- "source-map": "^0.7.4",
111
- "xxhash-wasm": "^1.0.1"
112
- },
113
- "devDependencies": {
114
- "@cloudflare/eslint-config-worker": "*",
115
- "@cloudflare/types": "^6.18.4",
116
- "@cloudflare/workers-tsconfig": "*",
117
- "@cloudflare/workers-types": "^4.20230724.0",
118
- "@iarna/toml": "^3.0.0",
119
- "@microsoft/api-extractor": "^7.28.3",
120
- "@types/better-sqlite3": "^7.6.0",
121
- "@types/busboy": "^1.5.0",
122
- "@types/command-exists": "^1.2.0",
123
- "@types/express": "^4.17.13",
124
- "@types/glob-to-regexp": "0.4.1",
125
- "@types/javascript-time-ago": "^2.0.3",
126
- "@types/mime": "^2.0.3",
127
- "@types/prompts": "^2.0.14",
128
- "@types/react": "^17.0.37",
129
- "@types/serve-static": "^1.13.10",
130
- "@types/signal-exit": "^3.0.1",
131
- "@types/supports-color": "^8.1.1",
132
- "@types/ws": "^8.5.3",
133
- "@types/yargs": "^17.0.10",
134
- "@webcontainer/env": "^1.1.0",
135
- "body-parser": "^1.20.0",
136
- "chalk": "^2.4.2",
137
- "cli-table3": "^0.6.3",
138
- "clipboardy": "^3.0.0",
139
- "cmd-shim": "^4.1.0",
140
- "command-exists": "^1.2.9",
141
- "concurrently": "^7.2.2",
142
- "devtools-protocol": "^0.0.955664",
143
- "dotenv": "^16.0.0",
144
- "execa": "^6.1.0",
145
- "express": "^4.18.1",
146
- "finalhandler": "^1.2.0",
147
- "find-up": "^6.3.0",
148
- "get-port": "^6.1.2",
149
- "glob-to-regexp": "0.4.1",
150
- "http-terminator": "^3.2.0",
151
- "ignore": "^5.2.0",
152
- "ink": "^3.2.0",
153
- "ink-select-input": "^4.2.1",
154
- "ink-spinner": "^4.0.3",
155
- "ink-table": "^3.0.0",
156
- "ink-testing-library": "^2.1.0",
157
- "ink-text-input": "^4.0.3",
158
- "is-ci": "^3.0.1",
159
- "javascript-time-ago": "^2.5.4",
160
- "jest-fetch-mock": "^3.0.3",
161
- "jest-websocket-mock": "^2.3.0",
162
- "mime": "^3.0.0",
163
- "minimatch": "^5.1.0",
164
- "msw": "^0.49.1",
165
- "npx-import": "^1.1.3",
166
- "open": "^8.4.0",
167
- "p-queue": "^7.2.0",
168
- "pretty-bytes": "^6.0.0",
169
- "prompts": "^2.4.2",
170
- "react": "^17.0.2",
171
- "react-error-boundary": "^3.1.4",
172
- "remove-accents-esm": "^0.0.1",
173
- "semiver": "^1.1.0",
174
- "serve-static": "^1.15.0",
175
- "shellac": "^0.8.0",
176
- "signal-exit": "^3.0.7",
177
- "strip-ansi": "^7.0.1",
178
- "supports-color": "^9.2.2",
179
- "timeago.js": "^4.0.2",
180
- "tmp-promise": "^3.0.3",
181
- "ts-dedent": "^2.2.0",
182
- "undici": "5.20.0",
183
- "update-check": "^1.5.4",
184
- "vitest": "^0.31.0",
185
- "ws": "^8.5.0",
186
- "xdg-app-paths": "^7.3.0",
187
- "yargs": "^17.4.1",
188
- "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz"
189
- },
190
- "optionalDependencies": {
191
- "fsevents": "~2.3.2"
192
- },
193
- "engines": {
194
- "node": ">=16.13.0"
195
- }
196
- }
2
+ "name": "wrangler",
3
+ "version": "3.8.0",
4
+ "description": "Command-line interface for all things Cloudflare Workers",
5
+ "keywords": [
6
+ "wrangler",
7
+ "cloudflare",
8
+ "workers",
9
+ "cloudflare workers",
10
+ "edge",
11
+ "compute",
12
+ "serverless",
13
+ "serverless application",
14
+ "serverless module",
15
+ "wasm",
16
+ "web",
17
+ "assembly",
18
+ "webassembly",
19
+ "rust",
20
+ "emscripten",
21
+ "typescript",
22
+ "graphql",
23
+ "router",
24
+ "http",
25
+ "cli"
26
+ ],
27
+ "homepage": "https://github.com/cloudflare/workers-sdk#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/cloudflare/workers-sdk/issues"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/cloudflare/workers-sdk.git",
34
+ "directory": "packages/wrangler"
35
+ },
36
+ "license": "MIT OR Apache-2.0",
37
+ "author": "wrangler@cloudflare.com",
38
+ "main": "wrangler-dist/cli.js",
39
+ "types": "wrangler-dist/cli.d.ts",
40
+ "bin": {
41
+ "wrangler": "./bin/wrangler.js",
42
+ "wrangler2": "./bin/wrangler.js"
43
+ },
44
+ "files": [
45
+ "bin",
46
+ "miniflare-dist",
47
+ "wrangler-dist",
48
+ "templates",
49
+ "kv-asset-handler.js",
50
+ "Cloudflare_CA.pem"
51
+ ],
52
+ "jest": {
53
+ "coverageReporters": [
54
+ "json",
55
+ "html",
56
+ "text",
57
+ "cobertura"
58
+ ],
59
+ "moduleNameMapper": {
60
+ "clipboardy": "<rootDir>/src/__tests__/helpers/clipboardy-mock.js",
61
+ "miniflare/cli": "<rootDir>/../../node_modules/miniflare/dist/src/cli.js"
62
+ },
63
+ "restoreMocks": true,
64
+ "setupFilesAfterEnv": [
65
+ "<rootDir>/src/__tests__/jest.setup.ts"
66
+ ],
67
+ "testRegex": "src/__tests__/.*\\.(test|spec)\\.[jt]sx?$",
68
+ "testTimeout": 50000,
69
+ "transform": {
70
+ "^.+\\.c?(t|j)sx?$": [
71
+ "esbuild-jest",
72
+ {
73
+ "sourcemap": true
74
+ }
75
+ ]
76
+ },
77
+ "transformIgnorePatterns": [
78
+ "node_modules/.pnpm/(?!find-up|locate-path|p-locate|p-limit|p-timeout|p-queue|yocto-queue|path-exists|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream|get-port|supports-color|pretty-bytes|npx-import)"
79
+ ]
80
+ },
81
+ "dependencies": {
82
+ "@cloudflare/kv-asset-handler": "^0.2.0",
83
+ "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
84
+ "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
85
+ "blake3-wasm": "^2.1.5",
86
+ "chokidar": "^3.5.3",
87
+ "esbuild": "0.17.19",
88
+ "miniflare": "3.20230904.0",
89
+ "nanoid": "^3.3.3",
90
+ "path-to-regexp": "^6.2.0",
91
+ "selfsigned": "^2.0.1",
92
+ "source-map": "^0.7.4",
93
+ "xxhash-wasm": "^1.0.1"
94
+ },
95
+ "devDependencies": {
96
+ "@cloudflare/eslint-config-worker": "*",
97
+ "@cloudflare/types": "^6.18.4",
98
+ "@cloudflare/workers-types": "^4.20230724.0",
99
+ "@iarna/toml": "^3.0.0",
100
+ "@microsoft/api-extractor": "^7.28.3",
101
+ "@types/better-sqlite3": "^7.6.0",
102
+ "@types/body-parser": "^1.19.2",
103
+ "@types/busboy": "^1.5.0",
104
+ "@types/command-exists": "^1.2.0",
105
+ "@types/express": "^4.17.13",
106
+ "@types/glob-to-regexp": "0.4.1",
107
+ "@types/is-ci": "^3.0.0",
108
+ "@types/javascript-time-ago": "^2.0.3",
109
+ "@types/mime": "^2.0.3",
110
+ "@types/minimatch": "^5.1.2",
111
+ "@types/prompts": "^2.0.14",
112
+ "@types/react": "^17.0.37",
113
+ "@types/serve-static": "^1.13.10",
114
+ "@types/signal-exit": "^3.0.1",
115
+ "@types/supports-color": "^8.1.1",
116
+ "@types/ws": "^8.5.3",
117
+ "@types/yargs": "^17.0.10",
118
+ "@webcontainer/env": "^1.1.0",
119
+ "body-parser": "^1.20.0",
120
+ "chalk": "^2.4.2",
121
+ "cli-table3": "^0.6.3",
122
+ "clipboardy": "^3.0.0",
123
+ "cmd-shim": "^4.1.0",
124
+ "command-exists": "^1.2.9",
125
+ "concurrently": "^7.2.2",
126
+ "devtools-protocol": "^0.0.955664",
127
+ "dotenv": "^16.0.0",
128
+ "execa": "^6.1.0",
129
+ "express": "^4.18.1",
130
+ "finalhandler": "^1.2.0",
131
+ "find-up": "^6.3.0",
132
+ "get-port": "^6.1.2",
133
+ "glob-to-regexp": "0.4.1",
134
+ "http-terminator": "^3.2.0",
135
+ "ignore": "^5.2.0",
136
+ "ink": "^3.2.0",
137
+ "ink-select-input": "^4.2.1",
138
+ "ink-spinner": "^4.0.3",
139
+ "ink-table": "^3.0.0",
140
+ "ink-testing-library": "^2.1.0",
141
+ "ink-text-input": "^4.0.3",
142
+ "is-ci": "^3.0.1",
143
+ "javascript-time-ago": "^2.5.4",
144
+ "jest-fetch-mock": "^3.0.3",
145
+ "jest-websocket-mock": "^2.3.0",
146
+ "mime": "^3.0.0",
147
+ "minimatch": "^5.1.0",
148
+ "msw": "^0.49.1",
149
+ "npx-import": "^1.1.3",
150
+ "open": "^8.4.0",
151
+ "p-queue": "^7.2.0",
152
+ "patch-console": "^1.0.0",
153
+ "pretty-bytes": "^6.0.0",
154
+ "prompts": "^2.4.2",
155
+ "react": "^17.0.2",
156
+ "react-error-boundary": "^3.1.4",
157
+ "remove-accents-esm": "^0.0.1",
158
+ "semiver": "^1.1.0",
159
+ "serve-static": "^1.15.0",
160
+ "shellac": "^0.8.0",
161
+ "signal-exit": "^3.0.7",
162
+ "strip-ansi": "^7.0.1",
163
+ "supports-color": "^9.2.2",
164
+ "timeago.js": "^4.0.2",
165
+ "tmp-promise": "^3.0.3",
166
+ "ts-dedent": "^2.2.0",
167
+ "undici": "5.20.0",
168
+ "update-check": "^1.5.4",
169
+ "vitest": "^0.31.0",
170
+ "ws": "^8.5.0",
171
+ "xdg-app-paths": "^7.3.0",
172
+ "yargs": "^17.4.1",
173
+ "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
174
+ "@cloudflare/pages-shared": "^0.9.0",
175
+ "@cloudflare/workers-tsconfig": "0.0.0"
176
+ },
177
+ "optionalDependencies": {
178
+ "fsevents": "~2.3.2"
179
+ },
180
+ "engines": {
181
+ "node": ">=16.13.0"
182
+ },
183
+ "scripts": {
184
+ "assert-git-version": "node -r esbuild-register scripts/assert-git-version.ts",
185
+ "build": "pnpm run clean && pnpm run bundle && pnpm run emit-types",
186
+ "bundle": "node -r esbuild-register scripts/bundle.ts",
187
+ "check:lint": "eslint .",
188
+ "check:type": "tsc",
189
+ "clean": "rimraf wrangler-dist miniflare-dist emitted-types",
190
+ "dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false 'pnpm run bundle --watch' 'pnpm run check:type --watch --preserveWatchOutput'",
191
+ "emit-types": "tsc -p tsconfig.emit.json && node -r esbuild-register scripts/emit-types.ts",
192
+ "start": "pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
193
+ "test": "pnpm run assert-git-version && jest",
194
+ "test:ci": "pnpm run test --coverage",
195
+ "test:debug": "pnpm run test --silent=false --verbose=true",
196
+ "test:e2e": "vitest --test-timeout 240000 --single-thread --dir ./e2e run",
197
+ "test:watch": "pnpm run test --runInBand --testTimeout=50000 --watch",
198
+ "type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
199
+ }
200
+ }
@@ -959,6 +959,8 @@ declare interface EnvironmentNonInheritable {
959
959
  bucket_name: string;
960
960
  /** The preview name of this R2 bucket at the edge. */
961
961
  preview_bucket_name?: string;
962
+ /** The jurisdiction that the bucket exists in. Default if not present. */
963
+ jurisdiction?: string;
962
964
  }[];
963
965
  /**
964
966
  * Specifies D1 databases that are bound to this Worker environment.