@storm-software/cloudflare-tools 0.71.203 → 0.71.206
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/CHANGELOG.md +32 -0
- package/README.md +1 -1
- package/dist/{chunk-4ZMJ7ITM.mjs → chunk-5MAMLVMV.mjs} +14 -14
- package/dist/{chunk-ANZ557YK.js → chunk-7IIYD3Q3.js} +13 -13
- package/dist/{chunk-3PQOI4NL.js → chunk-AWKQRM2H.js} +3 -3
- package/dist/{chunk-BTOLO426.mjs → chunk-BY7MA3SM.mjs} +1 -1
- package/dist/{chunk-TM5AJMAM.js → chunk-CLCKX6UN.js} +5 -5
- package/dist/{chunk-CM4RLKHZ.js → chunk-EJE2EHFR.js} +168 -168
- package/dist/{chunk-T6NIUJEH.mjs → chunk-K4H5ZMYA.mjs} +3 -3
- package/dist/{chunk-Z75EPSOQ.mjs → chunk-L75JBDI3.mjs} +1 -1
- package/dist/{chunk-QKL4F7HK.js → chunk-PGTHXO6M.js} +47 -47
- package/dist/{chunk-G6THBDIH.mjs → chunk-RCH5HXDU.mjs} +3 -3
- package/dist/{chunk-YLSP6KZ2.mjs → chunk-TNVZ6KHS.mjs} +3 -3
- package/dist/{chunk-V56MCNEY.js → chunk-U7XMCD6Y.js} +18 -18
- package/dist/{chunk-PWJCUKVQ.mjs → chunk-UDCJ274I.mjs} +2 -2
- package/dist/{chunk-ZTOTXXWJ.js → chunk-XGN5GQK4.js} +1 -1
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.205](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.205) (06/14/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **config** to **v1.138.1**
|
|
10
|
+
- Updated **config-tools** to **v1.190.64**
|
|
11
|
+
- Updated **workspace-tools** to **v1.296.43**
|
|
12
|
+
|
|
13
|
+
## [0.71.204](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.204) (06/14/2026)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous
|
|
16
|
+
|
|
17
|
+
- **monorepo:** Regenerate `README` markdown files ([2f934c964](https://github.com/storm-software/storm-ops/commit/2f934c964))
|
|
18
|
+
|
|
19
|
+
### Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated **config** to **v1.138.0**
|
|
22
|
+
- Updated **config-tools** to **v1.190.63**
|
|
23
|
+
- Updated **workspace-tools** to **v1.296.42**
|
|
24
|
+
|
|
25
|
+
## [0.71.203](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.203) (06/14/2026)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
- **eslint:** Ensure `tsconfigRootDir` is provided as an absolute path ([cdbec9726](https://github.com/storm-software/storm-ops/commit/cdbec9726))
|
|
30
|
+
|
|
31
|
+
### Updated Dependencies
|
|
32
|
+
|
|
33
|
+
- Updated **config** to **v1.137.94**
|
|
34
|
+
- Updated **config-tools** to **v1.190.62**
|
|
35
|
+
- Updated **workspace-tools** to **v1.296.41**
|
|
36
|
+
|
|
5
37
|
## [0.71.202](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.202) (06/13/2026)
|
|
6
38
|
|
|
7
39
|
### Updated Dependencies
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
joinPaths,
|
|
8
8
|
writeTrace,
|
|
9
9
|
writeWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K4H5ZMYA.mjs";
|
|
11
11
|
|
|
12
12
|
// ../config-tools/src/utilities/find-up.ts
|
|
13
13
|
import { existsSync } from "node:fs";
|
|
@@ -134,7 +134,7 @@ var colorSchema = z.string().check(
|
|
|
134
134
|
schemaRegistry.add(colorSchema, {
|
|
135
135
|
description: "A base schema for describing the format of colors"
|
|
136
136
|
});
|
|
137
|
-
var darkColorSchema = z._default(colorSchema, "#
|
|
137
|
+
var darkColorSchema = z._default(colorSchema, "#1e2124");
|
|
138
138
|
schemaRegistry.add(darkColorSchema, {
|
|
139
139
|
description: "The dark background color of the workspace"
|
|
140
140
|
});
|
|
@@ -158,8 +158,8 @@ var linkColorSchema = z._default(colorSchema, "#3fa6ff");
|
|
|
158
158
|
schemaRegistry.add(linkColorSchema, {
|
|
159
159
|
description: "The color used to display hyperlink text"
|
|
160
160
|
});
|
|
161
|
-
var
|
|
162
|
-
schemaRegistry.add(
|
|
161
|
+
var discoveryColorSchema = z._default(colorSchema, "#818cf8");
|
|
162
|
+
schemaRegistry.add(discoveryColorSchema, {
|
|
163
163
|
description: "The second brand specific color of the workspace"
|
|
164
164
|
});
|
|
165
165
|
var successColorSchema = z._default(colorSchema, "#45b27e");
|
|
@@ -209,7 +209,7 @@ var darkColorsSchema = z.object({
|
|
|
209
209
|
alternate: alternateColorSchema,
|
|
210
210
|
accent: accentColorSchema,
|
|
211
211
|
link: linkColorSchema,
|
|
212
|
-
|
|
212
|
+
discovery: discoveryColorSchema,
|
|
213
213
|
success: successColorSchema,
|
|
214
214
|
info: infoColorSchema,
|
|
215
215
|
debug: debugColorSchema,
|
|
@@ -228,7 +228,7 @@ var lightColorsSchema = z.object({
|
|
|
228
228
|
alternate: alternateColorSchema,
|
|
229
229
|
accent: accentColorSchema,
|
|
230
230
|
link: linkColorSchema,
|
|
231
|
-
|
|
231
|
+
discovery: discoveryColorSchema,
|
|
232
232
|
success: successColorSchema,
|
|
233
233
|
info: infoColorSchema,
|
|
234
234
|
debug: debugColorSchema,
|
|
@@ -251,7 +251,7 @@ var singleColorsSchema = z.object({
|
|
|
251
251
|
alternate: alternateColorSchema,
|
|
252
252
|
accent: accentColorSchema,
|
|
253
253
|
link: linkColorSchema,
|
|
254
|
-
|
|
254
|
+
discovery: discoveryColorSchema,
|
|
255
255
|
success: successColorSchema,
|
|
256
256
|
info: infoColorSchema,
|
|
257
257
|
debug: debugColorSchema,
|
|
@@ -709,7 +709,7 @@ var COLOR_KEYS = [
|
|
|
709
709
|
"accent",
|
|
710
710
|
"link",
|
|
711
711
|
"success",
|
|
712
|
-
"
|
|
712
|
+
"discovery",
|
|
713
713
|
"info",
|
|
714
714
|
"warning",
|
|
715
715
|
"danger",
|
|
@@ -1044,7 +1044,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
1044
1044
|
alternate: process.env[`${prefix}ALTERNATE`],
|
|
1045
1045
|
accent: process.env[`${prefix}ACCENT`],
|
|
1046
1046
|
link: process.env[`${prefix}LINK`],
|
|
1047
|
-
|
|
1047
|
+
discovery: process.env[`${prefix}DISCOVERY`],
|
|
1048
1048
|
success: process.env[`${prefix}SUCCESS`],
|
|
1049
1049
|
info: process.env[`${prefix}INFO`],
|
|
1050
1050
|
debug: process.env[`${prefix}DEBUG`],
|
|
@@ -1084,7 +1084,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1084
1084
|
alternate: process.env[`${prefix}ALTERNATE`],
|
|
1085
1085
|
accent: process.env[`${prefix}ACCENT`],
|
|
1086
1086
|
link: process.env[`${prefix}LINK`],
|
|
1087
|
-
|
|
1087
|
+
discovery: process.env[`${prefix}DISCOVERY`],
|
|
1088
1088
|
success: process.env[`${prefix}SUCCESS`],
|
|
1089
1089
|
info: process.env[`${prefix}INFO`],
|
|
1090
1090
|
debug: process.env[`${prefix}DEBUG`],
|
|
@@ -1381,8 +1381,8 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1381
1381
|
if (config.link) {
|
|
1382
1382
|
process.env[`${prefix}LINK`] = config.link;
|
|
1383
1383
|
}
|
|
1384
|
-
if (config.
|
|
1385
|
-
process.env[`${prefix}
|
|
1384
|
+
if (config.discovery) {
|
|
1385
|
+
process.env[`${prefix}DISCOVERY`] = config.discovery;
|
|
1386
1386
|
}
|
|
1387
1387
|
if (config.success) {
|
|
1388
1388
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -1442,8 +1442,8 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1442
1442
|
if (config.link) {
|
|
1443
1443
|
process.env[`${prefix}LINK`] = config.link;
|
|
1444
1444
|
}
|
|
1445
|
-
if (config.
|
|
1446
|
-
process.env[`${prefix}
|
|
1445
|
+
if (config.discovery) {
|
|
1446
|
+
process.env[`${prefix}DISCOVERY`] = config.discovery;
|
|
1447
1447
|
}
|
|
1448
1448
|
if (config.success) {
|
|
1449
1449
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXGN5GQK4js = require('./chunk-XGN5GQK4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkQKL4F7HKjs = require('./chunk-QKL4F7HK.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkAWKQRM2Hjs = require('./chunk-AWKQRM2H.js');
|
|
17
17
|
|
|
18
18
|
// src/generators/worker/generator.ts
|
|
19
19
|
|
|
@@ -46,23 +46,23 @@ var vitestScript = `"test": "vitest run"`;
|
|
|
46
46
|
|
|
47
47
|
// src/generators/worker/generator.ts
|
|
48
48
|
async function applicationGenerator(tree, schema) {
|
|
49
|
-
const stopwatch =
|
|
49
|
+
const stopwatch = _chunkAWKQRM2Hjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
50
50
|
let config;
|
|
51
51
|
try {
|
|
52
|
-
const workspaceRoot =
|
|
53
|
-
config = await
|
|
54
|
-
|
|
55
|
-
`${
|
|
52
|
+
const workspaceRoot = _chunkPGTHXO6Mjs.findWorkspaceRoot.call(void 0, );
|
|
53
|
+
config = await _chunkPGTHXO6Mjs.getConfig.call(void 0, workspaceRoot);
|
|
54
|
+
_chunkAWKQRM2Hjs.writeInfo.call(void 0,
|
|
55
|
+
`${_chunkAWKQRM2Hjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
|
|
56
56
|
|
|
57
57
|
`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
|
-
|
|
60
|
+
_chunkAWKQRM2Hjs.writeDebug.call(void 0,
|
|
61
61
|
`Loading the Storm Config from environment variables and storm.json file...
|
|
62
62
|
- workspaceRoot: ${workspaceRoot}`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
65
|
-
|
|
65
|
+
_chunkAWKQRM2Hjs.writeTrace.call(void 0,
|
|
66
66
|
`Loaded Storm config into env:
|
|
67
67
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
68
68
|
config
|
|
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
70
70
|
const options = await normalizeOptions(tree, schema, config);
|
|
71
71
|
const tasks = [];
|
|
72
72
|
tasks.push(
|
|
73
|
-
await
|
|
73
|
+
await _chunkXGN5GQK4js.generator_default.call(void 0, tree, {
|
|
74
74
|
...options,
|
|
75
75
|
skipFormat: true
|
|
76
76
|
})
|
|
@@ -138,11 +138,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
138
138
|
return _devkit.runTasksInSerial.call(void 0, ...tasks);
|
|
139
139
|
} catch (error) {
|
|
140
140
|
return () => {
|
|
141
|
-
|
|
141
|
+
_chunkAWKQRM2Hjs.writeFatal.call(void 0,
|
|
142
142
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
143
143
|
config
|
|
144
144
|
);
|
|
145
|
-
|
|
145
|
+
_chunkAWKQRM2Hjs.writeError.call(void 0,
|
|
146
146
|
`An exception was thrown in the generator's process
|
|
147
147
|
- Details: ${error.message}
|
|
148
148
|
- Stacktrace: ${error.stack}`,
|
|
@@ -34,7 +34,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
34
34
|
foreground: "#1d1e22",
|
|
35
35
|
brand: "#1fb2a6",
|
|
36
36
|
alternate: "#db2777",
|
|
37
|
-
|
|
37
|
+
discovery: "#5C4EE5",
|
|
38
38
|
success: "#087f5b",
|
|
39
39
|
info: "#0550ae",
|
|
40
40
|
debug: "#8afafc",
|
|
@@ -48,11 +48,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
48
48
|
gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
|
|
49
49
|
},
|
|
50
50
|
dark: {
|
|
51
|
-
background: "#
|
|
51
|
+
background: "#1e2124",
|
|
52
52
|
foreground: "#cbd5e1",
|
|
53
53
|
brand: "#2dd4bf",
|
|
54
54
|
alternate: "#db2777",
|
|
55
|
-
|
|
55
|
+
discovery: "#818cf8",
|
|
56
56
|
success: "#10b981",
|
|
57
57
|
info: "#58a6ff",
|
|
58
58
|
debug: "#8afafc",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkAWKQRM2Hjs = require('./chunk-AWKQRM2H.js');
|
|
7
7
|
|
|
8
8
|
// src/utils/r2-bucket-helpers.ts
|
|
9
9
|
var _libstorage = require('@aws-sdk/lib-storage');
|
|
10
10
|
var _crypto = require('crypto');
|
|
11
11
|
var _prettybytes = require('pretty-bytes'); var _prettybytes2 = _interopRequireDefault(_prettybytes);
|
|
12
12
|
async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
|
|
13
|
-
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName :
|
|
14
|
-
|
|
13
|
+
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName : _chunkAWKQRM2Hjs.joinPaths.call(void 0, bucketPath.trim(), fileName)), 'optionalAccess', _5 => _5.replace, 'call', _6 => _6(/^\/+/g, "")]) || "";
|
|
14
|
+
_chunkAWKQRM2Hjs.writeDebug.call(void 0,
|
|
15
15
|
`Uploading ${key} (content-type: ${contentType}, size: ${_prettybytes2.default.call(void 0,
|
|
16
16
|
Buffer.byteLength(fileContent, getEncoding(contentType))
|
|
17
17
|
)}) to the ${bucketName} R2 bucket`
|
|
@@ -33,10 +33,10 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
|
|
|
33
33
|
});
|
|
34
34
|
await upload.done();
|
|
35
35
|
} else {
|
|
36
|
-
|
|
36
|
+
_chunkAWKQRM2Hjs.writeWarning.call(void 0, "[Dry run]: Skipping upload to the R2 bucket.");
|
|
37
37
|
}
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
39
|
+
_chunkAWKQRM2Hjs.writeError.call(void 0, `Failed to upload ${key} to the ${bucketName} R2 bucket.`);
|
|
40
40
|
throw error;
|
|
41
41
|
}
|
|
42
42
|
}
|