wrangler 0.0.0-ab7204a6e → 0.0.0-ab92f837a
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/config-schema.json +0 -3
- package/package.json +12 -15
- package/wrangler-dist/cli.d.ts +27 -27
- package/wrangler-dist/cli.js +34664 -64417
package/config-schema.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-ab92f837a",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"config-schema.json"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@aws-sdk/client-s3": "^3.721.0",
|
|
53
54
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
55
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
56
|
"blake3-wasm": "^2.1.5",
|
|
@@ -63,23 +64,21 @@
|
|
|
63
64
|
"selfsigned": "^2.0.1",
|
|
64
65
|
"source-map": "^0.6.1",
|
|
65
66
|
"unenv": "npm:unenv-nightly@2.0.0-20241218-183400-5d6aec3",
|
|
66
|
-
"workerd": "1.
|
|
67
|
+
"workerd": "1.20241230.0",
|
|
67
68
|
"xxhash-wasm": "^1.0.1",
|
|
68
69
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
|
69
|
-
"miniflare": "0.0.0-
|
|
70
|
+
"miniflare": "0.0.0-ab92f837a"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
72
73
|
"@cloudflare/types": "6.18.4",
|
|
73
|
-
"@cloudflare/workers-types": "^4.
|
|
74
|
+
"@cloudflare/workers-types": "^4.20241230.0",
|
|
74
75
|
"@cspotcode/source-map-support": "0.8.1",
|
|
75
76
|
"@iarna/toml": "^3.0.0",
|
|
76
77
|
"@microsoft/api-extractor": "^7.47.0",
|
|
77
78
|
"@sentry/node": "^7.86.0",
|
|
78
79
|
"@sentry/types": "^7.86.0",
|
|
79
80
|
"@sentry/utils": "^7.86.0",
|
|
80
|
-
"@types/body-parser": "^1.19.2",
|
|
81
81
|
"@types/command-exists": "^1.2.0",
|
|
82
|
-
"@types/express": "^4.17.13",
|
|
83
82
|
"@types/glob-to-regexp": "^0.4.1",
|
|
84
83
|
"@types/is-ci": "^3.0.0",
|
|
85
84
|
"@types/javascript-time-ago": "^2.0.3",
|
|
@@ -94,20 +93,17 @@
|
|
|
94
93
|
"@types/yargs": "^17.0.22",
|
|
95
94
|
"@vitest/ui": "~2.1.8",
|
|
96
95
|
"@webcontainer/env": "^1.1.0",
|
|
97
|
-
"body-parser": "^1.20.0",
|
|
98
96
|
"chalk": "^5.2.0",
|
|
99
97
|
"cli-table3": "^0.6.3",
|
|
100
98
|
"cmd-shim": "^4.1.0",
|
|
101
99
|
"command-exists": "^1.2.9",
|
|
102
100
|
"concurrently": "^8.2.2",
|
|
103
101
|
"devtools-protocol": "^0.0.1182435",
|
|
104
|
-
"dotenv": "^16.
|
|
102
|
+
"dotenv": "^16.3.1",
|
|
105
103
|
"execa": "^6.1.0",
|
|
106
|
-
"express": "^4.18.1",
|
|
107
104
|
"find-up": "^6.3.0",
|
|
108
105
|
"get-port": "^7.0.0",
|
|
109
106
|
"glob-to-regexp": "^0.4.1",
|
|
110
|
-
"http-terminator": "^3.2.0",
|
|
111
107
|
"https-proxy-agent": "7.0.2",
|
|
112
108
|
"ignore": "^5.2.0",
|
|
113
109
|
"is-ci": "^3.0.1",
|
|
@@ -122,6 +118,7 @@
|
|
|
122
118
|
"patch-console": "^1.0.0",
|
|
123
119
|
"pretty-bytes": "^6.0.0",
|
|
124
120
|
"prompts": "^2.4.2",
|
|
121
|
+
"rimraf": "^5.0.10",
|
|
125
122
|
"semiver": "^1.1.0",
|
|
126
123
|
"shell-quote": "^1.8.1",
|
|
127
124
|
"signal-exit": "^3.0.7",
|
|
@@ -139,12 +136,12 @@
|
|
|
139
136
|
"yargs": "^17.7.2",
|
|
140
137
|
"@cloudflare/cli": "1.1.1",
|
|
141
138
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
142
|
-
"@cloudflare/pages-shared": "^0.
|
|
143
|
-
"@cloudflare/workers-shared": "0.0.0-
|
|
139
|
+
"@cloudflare/pages-shared": "^0.13.0",
|
|
140
|
+
"@cloudflare/workers-shared": "0.0.0-ab92f837a",
|
|
144
141
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
145
142
|
},
|
|
146
143
|
"peerDependencies": {
|
|
147
|
-
"@cloudflare/workers-types": "^4.
|
|
144
|
+
"@cloudflare/workers-types": "^4.20241230.0"
|
|
148
145
|
},
|
|
149
146
|
"peerDependenciesMeta": {
|
|
150
147
|
"@cloudflare/workers-types": {
|
|
@@ -174,10 +171,10 @@
|
|
|
174
171
|
"emit-types": "tsc -p tsconfig.emit.json && node -r esbuild-register scripts/emit-types.ts",
|
|
175
172
|
"generate-json-schema": "pnpm exec ts-json-schema-generator --no-type-check --path src/config/config.ts --type RawConfig --out config-schema.json",
|
|
176
173
|
"start": "pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
|
|
177
|
-
"test": "pnpm run assert-git-version && vitest",
|
|
174
|
+
"test": "dotenv -- pnpm run assert-git-version && dotenv -- vitest",
|
|
178
175
|
"test:ci": "pnpm run test run",
|
|
179
176
|
"test:debug": "pnpm run test --silent=false --verbose=true",
|
|
180
|
-
"test:e2e": "vitest -c ./e2e/vitest.config.mts",
|
|
177
|
+
"test:e2e": "dotenv -- vitest -c ./e2e/vitest.config.mts",
|
|
181
178
|
"test:watch": "pnpm run test --testTimeout=50000 --watch",
|
|
182
179
|
"type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
|
|
183
180
|
}
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type { DispatchFetch } from 'miniflare';
|
|
|
6
6
|
import { Duplex } from 'stream';
|
|
7
7
|
import { EventEmitter } from 'events';
|
|
8
8
|
import { EventEmitter as EventEmitter_2 } from 'node:events';
|
|
9
|
-
import { IncomingMessage } from 'http';
|
|
10
9
|
import type { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
11
10
|
import { IpcNetConnectOpts } from 'net';
|
|
12
11
|
import type { Json } from 'miniflare';
|
|
@@ -21,8 +20,6 @@ import { Readable } from 'stream';
|
|
|
21
20
|
import { ReadableStream as ReadableStream_2 } from 'stream/web';
|
|
22
21
|
import type { Request as Request_3 } from 'miniflare';
|
|
23
22
|
import { Response as Response_3 } from 'miniflare';
|
|
24
|
-
import { Server } from 'http';
|
|
25
|
-
import { ServerResponse } from 'http';
|
|
26
23
|
import { Socket } from 'net';
|
|
27
24
|
import { TcpNetConnectOpts } from 'net';
|
|
28
25
|
import { TLSSocket } from 'tls';
|
|
@@ -772,6 +769,20 @@ declare type CloudchamberConfig = {
|
|
|
772
769
|
ipv4?: boolean;
|
|
773
770
|
};
|
|
774
771
|
|
|
772
|
+
declare interface ComputedFields {
|
|
773
|
+
/** The path to the Wrangler configuration file (if any, and possibly redirected from the user Wrangler configuration) used to create this configuration. */
|
|
774
|
+
configPath: string | undefined;
|
|
775
|
+
/** The path to the user's Wrangler configuration file (if any), which may have been redirected to another file that used to create this configuration. */
|
|
776
|
+
userConfigPath: string | undefined;
|
|
777
|
+
/**
|
|
778
|
+
* The original top level name for the Worker in the raw configuration.
|
|
779
|
+
*
|
|
780
|
+
* When a raw configuration has been flattened to a single environment the worker name may have been replaced or transformed.
|
|
781
|
+
* It can be useful to know what the top-level name was before the flattening.
|
|
782
|
+
*/
|
|
783
|
+
topLevelName: string | undefined;
|
|
784
|
+
}
|
|
785
|
+
|
|
775
786
|
declare class ConfigController extends Controller<ConfigControllerEventMap> {
|
|
776
787
|
#private;
|
|
777
788
|
latestInput?: StartDevWorkerInput;
|
|
@@ -787,7 +798,6 @@ declare type ConfigControllerEventMap = ControllerEventMap & {
|
|
|
787
798
|
};
|
|
788
799
|
|
|
789
800
|
declare interface ConfigFields<Dev extends RawDevConfig> {
|
|
790
|
-
configPath: string | undefined;
|
|
791
801
|
/**
|
|
792
802
|
* A boolean to enable "legacy" style wrangler environments (from Wrangler v1).
|
|
793
803
|
* These have been superseded by Services, but there may be projects that won't
|
|
@@ -2476,9 +2486,10 @@ declare class ExecutionContext {
|
|
|
2476
2486
|
|
|
2477
2487
|
export declare const experimental_patchConfig: (configPath: string, patch: Unstable_RawConfig, isArrayInsertion?: boolean) => string;
|
|
2478
2488
|
|
|
2479
|
-
export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs) => {
|
|
2489
|
+
export declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, options?: ReadConfigOptions) => {
|
|
2480
2490
|
rawConfig: Unstable_RawConfig;
|
|
2481
2491
|
configPath: string | undefined;
|
|
2492
|
+
userConfigPath: string | undefined;
|
|
2482
2493
|
};
|
|
2483
2494
|
|
|
2484
2495
|
declare function fetch_2 (
|
|
@@ -2715,12 +2726,6 @@ export declare type GetPlatformProxyOptions = {
|
|
|
2715
2726
|
persist?: boolean | {
|
|
2716
2727
|
path: string;
|
|
2717
2728
|
};
|
|
2718
|
-
/**
|
|
2719
|
-
* Use the experimental file-based dev registry for service discovery
|
|
2720
|
-
*
|
|
2721
|
-
* Note: this feature is experimental
|
|
2722
|
-
*/
|
|
2723
|
-
experimentalRegistry?: boolean;
|
|
2724
2729
|
};
|
|
2725
2730
|
|
|
2726
2731
|
declare function getSetCookies (headers: Headers_2): Cookie[]
|
|
@@ -2750,13 +2755,6 @@ declare type Hook<T extends HookValues, Args extends unknown[] = []> = T | ((...
|
|
|
2750
2755
|
|
|
2751
2756
|
declare type HookValues = string | number | boolean | object | undefined | null;
|
|
2752
2757
|
|
|
2753
|
-
/**
|
|
2754
|
-
* @property terminate Terminates HTTP server.
|
|
2755
|
-
*/
|
|
2756
|
-
declare type HttpTerminator = {
|
|
2757
|
-
readonly terminate: () => Promise<void>;
|
|
2758
|
-
};
|
|
2759
|
-
|
|
2760
2758
|
/**
|
|
2761
2759
|
* The header type declaration of `undici`.
|
|
2762
2760
|
*/
|
|
@@ -3055,6 +3053,7 @@ declare type NormalizeAndValidateConfigArgs = {
|
|
|
3055
3053
|
remote?: boolean;
|
|
3056
3054
|
localProtocol?: string;
|
|
3057
3055
|
upstreamProtocol?: string;
|
|
3056
|
+
script?: string;
|
|
3058
3057
|
};
|
|
3059
3058
|
|
|
3060
3059
|
declare interface Observability {
|
|
@@ -25703,6 +25702,10 @@ declare type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
|
|
|
25703
25702
|
script?: string;
|
|
25704
25703
|
};
|
|
25705
25704
|
|
|
25705
|
+
declare type ReadConfigOptions = ResolveConfigPathOptions & {
|
|
25706
|
+
hideWarnings?: boolean;
|
|
25707
|
+
};
|
|
25708
|
+
|
|
25706
25709
|
declare type ReadyEvent = {
|
|
25707
25710
|
type: "ready";
|
|
25708
25711
|
proxyWorker: Miniflare;
|
|
@@ -25831,6 +25834,10 @@ declare type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
|
|
|
25831
25834
|
|
|
25832
25835
|
declare type RequestRedirect = 'error' | 'follow' | 'manual'
|
|
25833
25836
|
|
|
25837
|
+
declare type ResolveConfigPathOptions = {
|
|
25838
|
+
useRedirectIfAvailable?: boolean;
|
|
25839
|
+
};
|
|
25840
|
+
|
|
25834
25841
|
declare class Response_2 implements BodyMixin {
|
|
25835
25842
|
constructor (body?: BodyInit, init?: ResponseInit_2)
|
|
25836
25843
|
|
|
@@ -26407,7 +26414,7 @@ export declare interface Unstable_ASSETSBindingsOptions {
|
|
|
26407
26414
|
* - `@breaking`: the deprecation/optionality is a breaking change from Wrangler v1.
|
|
26408
26415
|
* - `@todo`: there's more work to be done (with details attached).
|
|
26409
26416
|
*/
|
|
26410
|
-
export declare type Unstable_Config = ConfigFields<DevConfig> & PagesConfigFields & Environment;
|
|
26417
|
+
export declare type Unstable_Config = ComputedFields & ConfigFields<DevConfig> & PagesConfigFields & Environment;
|
|
26411
26418
|
|
|
26412
26419
|
/**
|
|
26413
26420
|
* unstable_dev starts a wrangler dev server, and returns a promise that resolves with utility functions to interact with it.
|
|
@@ -26544,9 +26551,7 @@ export declare type Unstable_RawEnvironment = Partial<Environment> & Environment
|
|
|
26544
26551
|
/**
|
|
26545
26552
|
* Get the Wrangler configuration; read it from the give `configPath` if available.
|
|
26546
26553
|
*/
|
|
26547
|
-
export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?:
|
|
26548
|
-
hideWarnings?: boolean;
|
|
26549
|
-
}): Unstable_Config;
|
|
26554
|
+
export declare function unstable_readConfig(args: ReadConfigCommandArgs, options?: ReadConfigOptions): Unstable_Config;
|
|
26550
26555
|
|
|
26551
26556
|
/**
|
|
26552
26557
|
* Split an SQLQuery into an array of statements
|
|
@@ -26555,11 +26560,6 @@ export declare function unstable_splitSqlQuery(sql: string): string[];
|
|
|
26555
26560
|
|
|
26556
26561
|
export declare function unstable_startWorker(options: StartDevWorkerInput): Promise<Worker>;
|
|
26557
26562
|
|
|
26558
|
-
export declare const unstable_startWorkerRegistryServer: (port: number) => Promise<{
|
|
26559
|
-
server: Server<IncomingMessage, ServerResponse>;
|
|
26560
|
-
terminator: HttpTerminator;
|
|
26561
|
-
}>;
|
|
26562
|
-
|
|
26563
26563
|
/** Upgrade to a different protocol. */
|
|
26564
26564
|
declare function upgrade(
|
|
26565
26565
|
url: string | URL_2 | UrlObject,
|