miniflare 2.1.0 → 2.4.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.
Files changed (2) hide show
  1. package/README.md +52 -49
  2. package/package.json +18 -18
package/README.md CHANGED
@@ -81,71 +81,74 @@ console.log(await res.text()); // Hello Miniflare!
81
81
  Usage: miniflare [script] [options]
82
82
 
83
83
  Core Options:
84
- -h, --help Show help [boolean]
85
- -v, --version Show version number [boolean]
86
- -c, --wrangler-config Path to wrangler.toml [string]
87
- --wrangler-env Environment in wrangler.toml to use [string]
88
- --package Path to package.json [string]
89
- -m, --modules Enable modules [boolean]
90
- --modules-rule Modules import rule [array:TYPE=GLOB]
91
- --compat-date Opt into backwards-incompatible changes from [string]
92
- --compat-flag Control specific backwards-incompatible changes [array]
93
- -u, --upstream URL of upstream origin [string]
94
- -w, --watch Watch files for changes [boolean]
95
- -d, --debug Enable debug logging [boolean]
96
- -V, --verbose Enable verbose logging [boolean]
97
- --(no-)update-check Enable update checker (enabled by default) [boolean]
98
- --root Path to resolve files relative to [string]
99
- --mount Mount additional named workers [array:NAME=PATH[@ENV]]
100
- --name Name of service [string]
101
- --route Route to respond with this worker on [array]
102
- --global-async-io Allow async I/O outside handlers [boolean]
103
- --global-timers Allow setting timers outside handlers [boolean]
104
- --global-random Allow secure random generation outside handlers [boolean]
84
+ -h, --help Show help [boolean]
85
+ -v, --version Show version number [boolean]
86
+ -c, --wrangler-config Path to wrangler.toml [string]
87
+ --wrangler-env Environment in wrangler.toml to use [string]
88
+ --package Path to package.json [string]
89
+ -m, --modules Enable modules [boolean]
90
+ --modules-rule Modules import rule [array:TYPE=GLOB]
91
+ --compat-date Opt into backwards-incompatible changes from [string]
92
+ --compat-flag Control specific backwards-incompatible changes [array]
93
+ -u, --upstream URL of upstream origin [string]
94
+ -w, --watch Watch files for changes [boolean]
95
+ -d, --debug Enable debug logging [boolean]
96
+ -V, --verbose Enable verbose logging [boolean]
97
+ --(no-)update-check Enable update checker (enabled by default) [boolean]
98
+ --root Path to resolve files relative to [string]
99
+ --mount Mount additional named workers [array:NAME=PATH[@ENV]]
100
+ --name Name of service [string]
101
+ --route Route to respond with this worker on [array]
102
+ --global-async-io Allow async I/O outside handlers [boolean]
103
+ --global-timers Allow setting timers outside handlers [boolean]
104
+ --global-random Allow secure random generation outside handlers [boolean]
105
105
 
106
106
  HTTP Options:
107
- -H, --host Host for HTTP(S) server to listen on [string]
108
- -p, --port Port for HTTP(S) server to listen on [number]
109
- -O, --open Automatically open browser to URL [boolean/string]
110
- --https Enable self-signed HTTPS (with optional cert path) [boolean/string]
111
- --https-key Path to PEM SSL key [string]
112
- --https-cert Path to PEM SSL cert chain [string]
113
- --https-ca Path to SSL trusted CA certs [string]
114
- --https-pfx Path to PFX/PKCS12 SSL key/cert chain [string]
115
- --https-passphrase Passphrase to decrypt SSL files [string]
116
- --(no-)cf-fetch Path for cached Request cf object from Cloudflare [boolean/string]
117
- --live-reload Reload HTML pages whenever worker is reloaded [boolean]
107
+ -H, --host Host for HTTP(S) server to listen on [string]
108
+ -p, --port Port for HTTP(S) server to listen on [number]
109
+ -O, --open Automatically open browser to URL [boolean/string]
110
+ --https Enable self-signed HTTPS (with optional cert path) [boolean/string]
111
+ --https-key Path to PEM SSL key [string]
112
+ --https-cert Path to PEM SSL cert chain [string]
113
+ --https-ca Path to SSL trusted CA certs [string]
114
+ --https-pfx Path to PFX/PKCS12 SSL key/cert chain [string]
115
+ --https-passphrase Passphrase to decrypt SSL files [string]
116
+ --(no-)cf-fetch Path for cached Request cf object from Cloudflare [boolean/string]
117
+ --live-reload Reload HTML pages whenever worker is reloaded [boolean]
118
118
 
119
119
  Scheduler Options:
120
- -t, --cron CRON expression for triggering scheduled events [array]
120
+ -t, --cron CRON expression for triggering scheduled events [array]
121
121
 
122
122
  Build Options:
123
- -B, --build-command Command to build project [string]
124
- --build-base-path Working directory for build command [string]
125
- --build-watch-path Directory to watch for rebuilding on changes [array]
123
+ -B, --build-command Command to build project [string]
124
+ --build-base-path Working directory for build command [string]
125
+ --build-watch-path Directory to watch for rebuilding on changes [array]
126
126
 
127
127
  KV Options:
128
- -k, --kv KV namespace to bind [array]
129
- --kv-persist Persist KV data (to optional path) [boolean/string]
128
+ -k, --kv KV namespace to bind [array]
129
+ --kv-persist Persist KV data (to optional path) [boolean/string]
130
130
 
131
131
  Durable Objects Options:
132
- -o, --do Durable Object to bind [array:NAME=CLASS[@MOUNT]]
133
- --do-persist Persist Durable Object data (to optional path) [boolean/string]
132
+ -o, --do Durable Object to bind [array:NAME=CLASS[@MOUNT]]
133
+ --do-persist Persist Durable Object data (to optional path) [boolean/string]
134
134
 
135
135
  Cache Options:
136
- --(no-)cache Enable default/named caches (enabled by default) [boolean]
137
- --cache-persist Persist cached data (to optional path) [boolean/string]
136
+ --(no-)cache Enable default/named caches (enabled by default) [boolean]
137
+ --cache-persist Persist cached data (to optional path) [boolean/string]
138
138
 
139
139
  Sites Options:
140
- -s, --site Path to serve Workers Site files from [string]
141
- --site-include Glob pattern of site files to serve [array]
142
- --site-exclude Glob pattern of site files not to serve [array]
140
+ -s, --site Path to serve Workers Site files from [string]
141
+ --site-include Glob pattern of site files to serve [array]
142
+ --site-exclude Glob pattern of site files not to serve [array]
143
143
 
144
144
  Bindings Options:
145
- -e, --env Path to .env file [string]
146
- -b, --binding Binds variable/secret to environment [array:KEY=VALUE]
147
- --global Binds variable/secret to global scope [array:KEY=VALUE]
148
- --wasm WASM module to bind [array:NAME=PATH]
145
+ -e, --env Path to .env file [string]
146
+ -b, --binding Binds variable/secret to environment [array:KEY=VALUE]
147
+ --global Binds variable/secret to global scope [array:KEY=VALUE]
148
+ --wasm WASM module to bind [array:NAME=PATH]
149
+ --text-blob Text blob to bind [array:NAME=PATH]
150
+ --data-blob Data blob to bind [array:NAME=PATH]
151
+ -S, --service Mounted service to bind [array:NAME=MOUNT[@ENV]]
149
152
  ```
150
153
 
151
154
  ## Acknowledgements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miniflare",
3
- "version": "2.1.0",
3
+ "version": "2.4.0",
4
4
  "description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -46,32 +46,32 @@
46
46
  "miniflare": "bootstrap.js"
47
47
  },
48
48
  "dependencies": {
49
- "@miniflare/cache": "2.1.0",
50
- "@miniflare/cli-parser": "2.1.0",
51
- "@miniflare/core": "2.1.0",
52
- "@miniflare/durable-objects": "2.1.0",
53
- "@miniflare/html-rewriter": "2.1.0",
54
- "@miniflare/http-server": "2.1.0",
55
- "@miniflare/kv": "2.1.0",
56
- "@miniflare/runner-vm": "2.1.0",
57
- "@miniflare/scheduler": "2.1.0",
58
- "@miniflare/shared": "2.1.0",
59
- "@miniflare/sites": "2.1.0",
60
- "@miniflare/storage-file": "2.1.0",
61
- "@miniflare/storage-memory": "2.1.0",
62
- "@miniflare/web-sockets": "2.1.0",
49
+ "@miniflare/cache": "2.4.0",
50
+ "@miniflare/cli-parser": "2.4.0",
51
+ "@miniflare/core": "2.4.0",
52
+ "@miniflare/durable-objects": "2.4.0",
53
+ "@miniflare/html-rewriter": "2.4.0",
54
+ "@miniflare/http-server": "2.4.0",
55
+ "@miniflare/kv": "2.4.0",
56
+ "@miniflare/runner-vm": "2.4.0",
57
+ "@miniflare/scheduler": "2.4.0",
58
+ "@miniflare/shared": "2.4.0",
59
+ "@miniflare/sites": "2.4.0",
60
+ "@miniflare/storage-file": "2.4.0",
61
+ "@miniflare/storage-memory": "2.4.0",
62
+ "@miniflare/web-sockets": "2.4.0",
63
63
  "kleur": "^4.1.4",
64
64
  "semiver": "^1.1.0",
65
65
  "source-map-support": "^0.5.20",
66
- "undici": "4.12.1"
66
+ "undici": "4.13.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@miniflare/shared-test": "2.1.0",
69
+ "@miniflare/shared-test": "2.4.0",
70
70
  "@types/source-map-support": "^0.5.4",
71
71
  "open": "^8.4.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@miniflare/storage-redis": "2.1.0",
74
+ "@miniflare/storage-redis": "2.4.0",
75
75
  "cron-schedule": "^3.0.4",
76
76
  "ioredis": "^4.27.9"
77
77
  },