@storm-software/cloudflare-tools 0.55.17 → 0.55.19

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 (39) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-CH4HU3UC.mjs → chunk-2NMEF6LP.mjs} +16 -10
  4. package/dist/{chunk-ECM7NILS.js → chunk-3GBUWFDY.js} +1 -1
  5. package/dist/{chunk-TWSVFCGJ.js → chunk-AOQHEVKD.js} +158 -158
  6. package/dist/{chunk-OO2KFXL5.js → chunk-BRNE2OJC.js} +52 -46
  7. package/dist/{chunk-LFOKGJV3.mjs → chunk-DEAG3BRL.mjs} +1 -1
  8. package/dist/{chunk-7GVMKVE6.mjs → chunk-HXUMSWIK.mjs} +1 -1
  9. package/dist/{chunk-EY654AX3.mjs → chunk-MMV7N7QY.mjs} +26 -15
  10. package/dist/{chunk-23PVXPM6.js → chunk-MUNYIY4Y.js} +16 -16
  11. package/dist/{chunk-SI2PJVZV.mjs → chunk-NB2S3V4K.mjs} +3 -3
  12. package/dist/{chunk-UYVVVI5O.mjs → chunk-NU6KVH6M.mjs} +4 -4
  13. package/dist/{chunk-57JETFC4.js → chunk-T4IWTHDS.js} +3 -3
  14. package/dist/{chunk-YIVJLSPZ.js → chunk-WQCCOPHE.js} +12 -12
  15. package/dist/{chunk-FNE7DP2D.js → chunk-X6VJDRKI.js} +26 -15
  16. package/dist/{chunk-JYGVCUHY.mjs → chunk-ZPZYYSN3.mjs} +3 -3
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +9 -9
  22. package/dist/index.mjs +8 -8
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.d.mts +3 -0
  28. package/dist/src/executors/serve/executor.d.ts +3 -0
  29. package/dist/src/executors/serve/executor.js +4 -4
  30. package/dist/src/executors/serve/executor.mjs +3 -3
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +1 -1
  33. package/dist/src/generators/worker/generator.js +5 -5
  34. package/dist/src/generators/worker/generator.mjs +4 -4
  35. package/dist/src/utils/index.js +3 -3
  36. package/dist/src/utils/index.mjs +2 -2
  37. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.55.19 (2025-01-29)
2
+
3
+ ### Miscellaneous
4
+
5
+ - **monorepo:** Regenerate README markdown files ([a1b6717d](https://github.com/storm-software/storm-ops/commit/a1b6717d))
6
+
7
+ ## 0.55.18 (2025-01-29)
8
+
9
+ ### Miscellaneous
10
+
11
+ - **monorepo:** Regenerate README markdown files ([5e0520b1](https://github.com/storm-software/storm-ops/commit/5e0520b1))
12
+
1
13
  ## 0.55.17 (2025-01-29)
2
14
 
3
15
  ### Miscellaneous
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.55.16-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.55.18-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -14,7 +14,7 @@ import {
14
14
  joinPaths,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-EY654AX3.mjs";
17
+ } from "./chunk-MMV7N7QY.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-A7FFSBE6.mjs";
@@ -56,10 +56,10 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
56
56
  }, "getConfigFileByName");
57
57
  var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
58
58
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
59
- const result = await getConfigFileByName("storm", workspacePath);
59
+ const result = await getConfigFileByName("storm-workspace", workspacePath);
60
60
  let config = result.config;
61
61
  const configFile = result.configFile;
62
- if (config && configFile && Object.keys(config).length > 0) {
62
+ if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
63
63
  writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
64
64
  logLevel: "all"
65
65
  });
@@ -68,9 +68,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
68
68
  const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
69
69
  for (const result2 of results) {
70
70
  if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
71
- writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
72
- logLevel: "all"
73
- });
71
+ if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
72
+ writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
73
+ logLevel: "all"
74
+ });
75
+ }
74
76
  config = defu(result2.config ?? {}, config ?? {});
75
77
  }
76
78
  }
@@ -143,7 +145,8 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
143
145
  cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
144
146
  container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
145
147
  },
146
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
148
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
149
+ skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
147
150
  };
148
151
  const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
149
152
  config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
@@ -378,6 +381,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
378
381
  process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
379
382
  process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
380
383
  }
384
+ if (config.skipConfigLogging !== void 0) {
385
+ process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
386
+ }
381
387
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
382
388
  for (const key of Object.keys(config.extensions ?? {})) {
383
389
  config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
@@ -495,7 +501,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
495
501
  const defaultConfig = await getDefaultConfig(_workspaceRoot);
496
502
  const configFile = await getConfigFile(_workspaceRoot);
497
503
  if (!configFile && !skipLogs) {
498
- writeWarning("No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
504
+ writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
499
505
  logLevel: "all"
500
506
  });
501
507
  }
@@ -533,8 +539,8 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
533
539
  var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
534
540
  const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
535
541
  setConfigEnv(config);
536
- if (!skipLogs) {
537
- writeTrace(`\u2699\uFE0F Using Storm configuration:
542
+ if (!skipLogs && !config.skipConfigLogging) {
543
+ writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
538
544
  ${formatLogMessage(config)}`, config);
539
545
  }
540
546
  return config;
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.55.17",
11
+ version: "0.55.19",
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  repository: {
14
14
  type: "github",