@storm-software/cloudflare-tools 0.62.6 → 0.62.8

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 (40) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-RIUVF72K.js → chunk-2HJQOPBD.js} +3 -3
  4. package/dist/{chunk-TO7L7DYQ.mjs → chunk-3TFLSE7F.mjs} +3 -3
  5. package/dist/{chunk-2SPHXGUN.mjs → chunk-5M3ADTI2.mjs} +3 -3
  6. package/dist/{chunk-DPAEOWHQ.mjs → chunk-73HZYEA4.mjs} +1 -1
  7. package/dist/{chunk-GPAI4NHQ.mjs → chunk-7H2K6PT4.mjs} +12 -5
  8. package/dist/{chunk-FL2QPQC4.mjs → chunk-AP3T36HW.mjs} +3 -3
  9. package/dist/{chunk-FF4AKPZG.js → chunk-AWHPIG26.js} +115 -115
  10. package/dist/{chunk-T3FNKVYU.js → chunk-CQHN27WT.js} +12 -12
  11. package/dist/{chunk-4P2T735E.js → chunk-DUKBFCWK.js} +2 -2
  12. package/dist/{chunk-MV24QW26.mjs → chunk-GOL5LHR6.mjs} +52 -15
  13. package/dist/{chunk-FABNT5TZ.mjs → chunk-JHXH6ZN3.mjs} +1 -1
  14. package/dist/{chunk-4HW7MBJR.mjs → chunk-LM76YNUF.mjs} +4 -4
  15. package/dist/{chunk-HBASMEU5.js → chunk-OL65RB72.js} +50 -43
  16. package/dist/{chunk-FUSFC5AM.js → chunk-Q6WFFOSW.js} +16 -16
  17. package/dist/{chunk-VPZXQH7S.mjs → chunk-SBZ7AXJK.mjs} +1 -1
  18. package/dist/{chunk-PZ5CI56F.js → chunk-SQUJ3SXL.js} +55 -18
  19. package/dist/executors.js +5 -5
  20. package/dist/executors.mjs +7 -7
  21. package/dist/generators.js +5 -5
  22. package/dist/generators.mjs +5 -5
  23. package/dist/index.js +8 -8
  24. package/dist/index.mjs +9 -9
  25. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  26. package/dist/src/executors/cloudflare-publish/executor.mjs +5 -5
  27. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  28. package/dist/src/executors/r2-upload-publish/executor.mjs +5 -5
  29. package/dist/src/executors/serve/executor.js +4 -4
  30. package/dist/src/executors/serve/executor.mjs +4 -4
  31. package/dist/src/generators/init/generator.js +2 -2
  32. package/dist/src/generators/init/generator.mjs +2 -2
  33. package/dist/src/generators/worker/generator.js +5 -5
  34. package/dist/src/generators/worker/generator.mjs +5 -5
  35. package/dist/src/utils/index.js +3 -3
  36. package/dist/src/utils/index.mjs +3 -3
  37. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  38. package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
  39. package/dist/tsup.config.mjs +1 -1
  40. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.62.7](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.62.7) (2025-05-13)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+
11
+ ## [0.62.6](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.62.6) (2025-05-09)
12
+
13
+ ### Miscellaneous
14
+
15
+ - **monorepo:** Regenerate README markdown files
16
+ - **monorepo:** Upgrade Nx packages to v21.0.3
17
+ - **monorepo:** Regenerate README markdown files
18
+
5
19
  ## [0.62.5](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.62.5) (2025-05-08)
6
20
 
7
21
  ### 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.62.5-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.62.7-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 -->
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkPZ5CI56Fjs = require('./chunk-PZ5CI56F.js');
4
+ var _chunkSQUJ3SXLjs = require('./chunk-SQUJ3SXL.js');
5
5
 
6
6
  // src/utils/r2-bucket-helpers.ts
7
7
  var _crypto = require('crypto');
8
8
  var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
9
9
  const checksum = _crypto.createHash.call(void 0, "sha256").update(fileContent).digest("base64");
10
10
  const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
11
- _chunkPZ5CI56Fjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
11
+ _chunkSQUJ3SXLjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
12
12
  if (!isDryRun) {
13
13
  await client.putObject({
14
14
  Bucket: bucketName,
@@ -21,7 +21,7 @@ var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fi
21
21
  }
22
22
  });
23
23
  } else {
24
- _chunkPZ5CI56Fjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
24
+ _chunkSQUJ3SXLjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
25
25
  }
26
26
  };
27
27
  var getInternalDependencies = (projectName, graph) => {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./chunk-DPAEOWHQ.mjs";
3
+ } from "./chunk-73HZYEA4.mjs";
4
4
 
5
5
  // package.json
6
6
  var require_package = __commonJS({
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.62.5",
10
+ version: "0.62.7",
11
11
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
12
12
  repository: {
13
13
  type: "github",
@@ -175,7 +175,7 @@ var require_package = __commonJS({
175
175
  nx: "catalog:",
176
176
  tsup: "catalog:",
177
177
  untyped: "catalog:",
178
- wrangler: "^4.14.4"
178
+ wrangler: "^4.15.2"
179
179
  },
180
180
  publishConfig: {
181
181
  access: "public"
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-FABNT5TZ.mjs";
4
+ } from "./chunk-JHXH6ZN3.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
8
  } from "./chunk-RH2IXKSC.mjs";
9
9
  import {
10
10
  getConfig
11
- } from "./chunk-GPAI4NHQ.mjs";
11
+ } from "./chunk-7H2K6PT4.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-MV24QW26.mjs";
18
+ } from "./chunk-GOL5LHR6.mjs";
19
19
 
20
20
  // src/executors/r2-upload-publish/executor.ts
21
21
  import { S3 } from "@aws-sdk/client-s3";
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
9
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
10
  };
11
11
 
12
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__954ae7dac9bca61c20aa20d91ee91417/node_modules/tsup/assets/esm_shims.js
12
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__76973d065e981837fa328157c7e0ad17/node_modules/tsup/assets/esm_shims.js
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
  var getFilename = () => fileURLToPath(import.meta.url);
@@ -4,17 +4,18 @@ import {
4
4
  STORM_DEFAULT_DOCS,
5
5
  STORM_DEFAULT_HOMEPAGE,
6
6
  STORM_DEFAULT_LICENSING,
7
+ applyDefaultConfig,
7
8
  correctPaths,
8
9
  findWorkspaceRoot,
9
10
  formatLogMessage,
10
- getDefaultConfig,
11
11
  getLogLevel,
12
12
  getLogLevelLabel,
13
+ getPackageJsonConfig,
13
14
  joinPaths,
14
15
  stormWorkspaceConfigSchema,
15
16
  writeTrace,
16
17
  writeWarning
17
- } from "./chunk-MV24QW26.mjs";
18
+ } from "./chunk-GOL5LHR6.mjs";
18
19
 
19
20
  // ../config-tools/src/create-storm-config.ts
20
21
  import defu2 from "defu";
@@ -145,6 +146,7 @@ var getConfigEnv = () => {
145
146
  docs: process.env[`${prefix}DOCS`] || void 0,
146
147
  licensing: process.env[`${prefix}LICENSING`] || void 0,
147
148
  contact: process.env[`${prefix}CONTACT`] || void 0,
149
+ support: process.env[`${prefix}SUPPORT`] || void 0,
148
150
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
149
151
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
150
152
  configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
@@ -363,6 +365,9 @@ var setConfigEnv = (config) => {
363
365
  if (config.contact) {
364
366
  process.env[`${prefix}CONTACT`] = config.contact;
365
367
  }
368
+ if (config.support) {
369
+ process.env[`${prefix}SUPPORT`] = config.support;
370
+ }
366
371
  if (config.timezone) {
367
372
  process.env[`${prefix}TIMEZONE`] = config.timezone;
368
373
  process.env.TZ = config.timezone;
@@ -612,9 +617,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
612
617
  return void 0;
613
618
  }
614
619
  }
615
- const defaultConfig = await getDefaultConfig(_workspaceRoot);
616
- result = await stormWorkspaceConfigSchema.parseAsync(
617
- defu2(configEnv, configFile, defaultConfig)
620
+ const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
621
+ result = applyDefaultConfig(
622
+ await stormWorkspaceConfigSchema.parseAsync(
623
+ defu2(configEnv, configFile, defaultConfig)
624
+ )
618
625
  );
619
626
  result.workspaceRoot ??= _workspaceRoot;
620
627
  } else {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getConfig,
7
7
  getWorkspaceConfig
8
- } from "./chunk-GPAI4NHQ.mjs";
8
+ } from "./chunk-7H2K6PT4.mjs";
9
9
  import {
10
10
  findWorkspaceRoot,
11
11
  formatLogMessage,
@@ -19,11 +19,11 @@ import {
19
19
  writeSuccess,
20
20
  writeTrace,
21
21
  writeWarning
22
- } from "./chunk-MV24QW26.mjs";
22
+ } from "./chunk-GOL5LHR6.mjs";
23
23
  import {
24
24
  __dirname,
25
25
  __require
26
- } from "./chunk-DPAEOWHQ.mjs";
26
+ } from "./chunk-73HZYEA4.mjs";
27
27
 
28
28
  // ../config-tools/src/utilities/apply-workspace-tokens.ts
29
29
  var applyWorkspaceBaseTokens = async (option, tokenParams) => {