@storm-software/cloudflare-tools 0.55.73 → 0.55.74

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.55.74](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.74) (2025-04-29)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([f2e5028dd](https://github.com/storm-software/storm-ops/commit/f2e5028dd))
11
+
5
12
  ## [0.55.73](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.73) (2025-04-29)
6
13
 
7
14
  ### 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.72-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.73-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,6 +1,6 @@
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 _chunkSUWWSOPYjs = require('./chunk-SUWWSOPY.js');
3
+ var _chunkFRBDGKHTjs = require('./chunk-FRBDGKHT.js');
4
4
 
5
5
 
6
6
  var _chunkIVLCYFXDjs = require('./chunk-IVLCYFXD.js');
@@ -52,7 +52,7 @@ async function applicationGenerator(tree, schema) {
52
52
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
53
53
  const options = await normalizeOptions(tree, schema, config);
54
54
  const tasks = [];
55
- tasks.push(await _chunkSUWWSOPYjs.generator_default.call(void 0, tree, {
55
+ tasks.push(await _chunkFRBDGKHTjs.generator_default.call(void 0, tree, {
56
56
  ...options,
57
57
  skipFormat: true
58
58
  }));
@@ -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.73",
11
+ version: "0.55.74",
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",
@@ -657,6 +657,7 @@ var DEFAULT_BUILD_OPTIONS = {
657
657
  keepNames: true,
658
658
  metafile: false,
659
659
  treeshake: true,
660
+ splitting: true,
660
661
  shims: false,
661
662
  watch: false,
662
663
  bundle: true,
@@ -805,24 +806,23 @@ async function resolveContext(userOptions) {
805
806
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
806
807
  }
807
808
  const options = defu2(userOptions, DEFAULT_BUILD_OPTIONS);
809
+ options.name ??= projectName;
808
810
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
809
811
  if (!existsSync3(packageJsonPath)) {
810
812
  throw new Error("Cannot find package.json configuration");
811
813
  }
812
814
  const env = getEnv("esbuild", options);
815
+ const define = defu2(options.define ?? {}, env ?? {});
813
816
  const resolvedOptions = {
814
- name: projectName,
815
817
  ...options,
816
818
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
817
819
  metafile: userOptions.mode === "development",
818
820
  clean: false,
819
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
820
821
  env,
821
822
  define: {
822
823
  STORM_FORMAT: JSON.stringify(options.format),
823
- ...options.define,
824
- ...Object.keys(env || {}).reduce((res, key) => {
825
- const value = JSON.stringify(env[key]);
824
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
825
+ const value = JSON.stringify(define[key]);
826
826
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
827
827
  return {
828
828
  ...res,
@@ -8,7 +8,7 @@ var require_package = __commonJS({
8
8
  "package.json"(exports, module) {
9
9
  module.exports = {
10
10
  name: "@storm-software/cloudflare-tools",
11
- version: "0.55.73",
11
+ version: "0.55.74",
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",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-UIXU352Q.mjs";
3
+ } from "./chunk-LUFRAFX6.mjs";
4
4
  import {
5
5
  getConfig
6
6
  } from "./chunk-KGEVN742.mjs";
@@ -656,6 +656,7 @@ var DEFAULT_BUILD_OPTIONS = {
656
656
  keepNames: true,
657
657
  metafile: false,
658
658
  treeshake: true,
659
+ splitting: true,
659
660
  shims: false,
660
661
  watch: false,
661
662
  bundle: true,
@@ -804,24 +805,23 @@ async function resolveContext(userOptions) {
804
805
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
805
806
  }
806
807
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
808
+ options.name ??= projectName;
807
809
  const packageJsonPath = _chunkV7LBWOVVjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
808
810
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
809
811
  throw new Error("Cannot find package.json configuration");
810
812
  }
811
813
  const env = getEnv("esbuild", options);
814
+ const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
812
815
  const resolvedOptions = {
813
- name: projectName,
814
816
  ...options,
815
817
  tsconfig: _chunkV7LBWOVVjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
816
818
  metafile: userOptions.mode === "development",
817
819
  clean: false,
818
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
819
820
  env,
820
821
  define: {
821
822
  STORM_FORMAT: JSON.stringify(options.format),
822
- ...options.define,
823
- ...Object.keys(env || {}).reduce((res, key) => {
824
- const value = JSON.stringify(env[key]);
823
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
824
+ const value = JSON.stringify(define[key]);
825
825
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
826
826
  return {
827
827
  ...res,
package/dist/executors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-R7AIVBS7.js');
3
- require('./chunk-ET3UGPTR.js');
3
+ require('./chunk-X275XPRR.js');
4
4
  require('./chunk-6B5PUF7X.js');
5
5
  require('./chunk-QGRENI3O.js');
6
6
  require('./chunk-VTHBMY4B.js');
@@ -1,6 +1,6 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-ZTKU4P4C.mjs";
3
- import "./chunk-GLAB5E6Z.mjs";
3
+ import "./chunk-L4E4ZISE.mjs";
4
4
  import "./chunk-5EOQCEFP.mjs";
5
5
  import "./chunk-TH2W32CX.mjs";
6
6
  import "./chunk-7OJAYAYY.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQDH5WMZVjs = require('./chunk-QDH5WMZV.js');
5
+ var _chunkAYSQEPGSjs = require('./chunk-AYSQEPGS.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkSUWWSOPYjs = require('./chunk-SUWWSOPY.js');
9
+ var _chunkFRBDGKHTjs = require('./chunk-FRBDGKHT.js');
10
10
  require('./chunk-IVLCYFXD.js');
11
11
  require('./chunk-V7LBWOVV.js');
12
12
  require('./chunk-J5SB6L2L.js');
@@ -15,4 +15,4 @@ require('./chunk-J5SB6L2L.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkQDH5WMZVjs.applicationGenerator; exports.applicationSchematic = _chunkQDH5WMZVjs.applicationSchematic; exports.initGenerator = _chunkSUWWSOPYjs.initGenerator; exports.initSchematic = _chunkSUWWSOPYjs.initSchematic;
18
+ exports.applicationGenerator = _chunkAYSQEPGSjs.applicationGenerator; exports.applicationSchematic = _chunkAYSQEPGSjs.applicationSchematic; exports.initGenerator = _chunkFRBDGKHTjs.initGenerator; exports.initSchematic = _chunkFRBDGKHTjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-F5RZ2WMA.mjs";
5
+ } from "./chunk-QDLAITVL.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-UIXU352Q.mjs";
9
+ } from "./chunk-LUFRAFX6.mjs";
10
10
  import "./chunk-KGEVN742.mjs";
11
11
  import "./chunk-UPK4D74Z.mjs";
12
12
  import "./chunk-LGGVU67H.mjs";
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkQDH5WMZVjs = require('./chunk-QDH5WMZV.js');
6
+ var _chunkAYSQEPGSjs = require('./chunk-AYSQEPGS.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkSUWWSOPYjs = require('./chunk-SUWWSOPY.js');
10
+ var _chunkFRBDGKHTjs = require('./chunk-FRBDGKHT.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-R7AIVBS7.js');
13
- require('./chunk-ET3UGPTR.js');
13
+ require('./chunk-X275XPRR.js');
14
14
  require('./chunk-6B5PUF7X.js');
15
15
 
16
16
 
@@ -148,4 +148,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
148
148
 
149
149
 
150
150
 
151
- exports.applicationGenerator = _chunkQDH5WMZVjs.applicationGenerator; exports.applicationSchematic = _chunkQDH5WMZVjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunkSUWWSOPYjs.initGenerator; exports.initSchematic = _chunkSUWWSOPYjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkQGRENI3Ojs.r2UploadFile;
151
+ exports.applicationGenerator = _chunkAYSQEPGSjs.applicationGenerator; exports.applicationSchematic = _chunkAYSQEPGSjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunkFRBDGKHTjs.initGenerator; exports.initSchematic = _chunkFRBDGKHTjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkQGRENI3Ojs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,14 +3,14 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-F5RZ2WMA.mjs";
6
+ } from "./chunk-QDLAITVL.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-UIXU352Q.mjs";
10
+ } from "./chunk-LUFRAFX6.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-ZTKU4P4C.mjs";
13
- import "./chunk-GLAB5E6Z.mjs";
13
+ import "./chunk-L4E4ZISE.mjs";
14
14
  import "./chunk-5EOQCEFP.mjs";
15
15
  import {
16
16
  getInternalDependencies,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
4
- require('../../../chunk-ET3UGPTR.js');
4
+ require('../../../chunk-X275XPRR.js');
5
5
  require('../../../chunk-VTHBMY4B.js');
6
6
  require('../../../chunk-IVLCYFXD.js');
7
7
  require('../../../chunk-V7LBWOVV.js');
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-ZTKU4P4C.mjs";
4
- import "../../../chunk-GLAB5E6Z.mjs";
4
+ import "../../../chunk-L4E4ZISE.mjs";
5
5
  import "../../../chunk-7OJAYAYY.mjs";
6
6
  import "../../../chunk-KGEVN742.mjs";
7
7
  import "../../../chunk-UPK4D74Z.mjs";
@@ -1,6 +1,6 @@
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 _chunkET3UGPTRjs = require('../../../chunk-ET3UGPTR.js');
3
+ var _chunkX275XPRRjs = require('../../../chunk-X275XPRR.js');
4
4
 
5
5
 
6
6
  var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
60
60
  };
61
61
  }
62
62
  _chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
63
- var executor_default = _chunkET3UGPTRjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkX275XPRRjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
64
  skipReadingConfig: false,
65
65
  hooks: {
66
66
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-GLAB5E6Z.mjs";
3
+ } from "../../../chunk-L4E4ZISE.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-7OJAYAYY.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkSUWWSOPYjs = require('../../../chunk-SUWWSOPY.js');
5
+ var _chunkFRBDGKHTjs = require('../../../chunk-FRBDGKHT.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkSUWWSOPYjs.generator_default; exports.initGenerator = _chunkSUWWSOPYjs.initGenerator; exports.initSchematic = _chunkSUWWSOPYjs.initSchematic;
11
+ exports.default = _chunkFRBDGKHTjs.generator_default; exports.initGenerator = _chunkFRBDGKHTjs.initGenerator; exports.initSchematic = _chunkFRBDGKHTjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-UIXU352Q.mjs";
5
+ } from "../../../chunk-LUFRAFX6.mjs";
6
6
  import "../../../chunk-LGGVU67H.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQDH5WMZVjs = require('../../../chunk-QDH5WMZV.js');
6
- require('../../../chunk-SUWWSOPY.js');
5
+ var _chunkAYSQEPGSjs = require('../../../chunk-AYSQEPGS.js');
6
+ require('../../../chunk-FRBDGKHT.js');
7
7
  require('../../../chunk-IVLCYFXD.js');
8
8
  require('../../../chunk-V7LBWOVV.js');
9
9
  require('../../../chunk-J5SB6L2L.js');
@@ -11,4 +11,4 @@ require('../../../chunk-J5SB6L2L.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkQDH5WMZVjs.applicationGenerator; exports.applicationSchematic = _chunkQDH5WMZVjs.applicationSchematic; exports.default = _chunkQDH5WMZVjs.generator_default;
14
+ exports.applicationGenerator = _chunkAYSQEPGSjs.applicationGenerator; exports.applicationSchematic = _chunkAYSQEPGSjs.applicationSchematic; exports.default = _chunkAYSQEPGSjs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-F5RZ2WMA.mjs";
6
- import "../../../chunk-UIXU352Q.mjs";
5
+ } from "../../../chunk-QDLAITVL.mjs";
6
+ import "../../../chunk-LUFRAFX6.mjs";
7
7
  import "../../../chunk-KGEVN742.mjs";
8
8
  import "../../../chunk-UPK4D74Z.mjs";
9
9
  import "../../../chunk-LGGVU67H.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.55.73",
3
+ "version": "0.55.74",
4
4
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
5
5
  "repository": {
6
6
  "type": "github",