@storm-software/cloudflare-tools 0.70.31 → 0.70.33

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 (31) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +2 -1
  3. package/dist/{chunk-HWDSHE6T.js → chunk-5O7N5PFT.js} +5 -5
  4. package/dist/{chunk-WAFEBLGS.js → chunk-CEXIMFQ7.js} +5 -5
  5. package/dist/{chunk-4XOYLZYF.js → chunk-D7QBZ5SX.js} +3 -3
  6. package/dist/{chunk-RSNYZTUY.mjs → chunk-G2NSVE4M.mjs} +44 -0
  7. package/dist/{chunk-GBH7EUPD.mjs → chunk-GNPYSJXD.mjs} +5 -5
  8. package/dist/{chunk-DEOKIEVB.js → chunk-H3AT6FQM.js} +123 -70
  9. package/dist/{chunk-DTVTFZ3M.js → chunk-HYSCV25J.js} +45 -1
  10. package/dist/{chunk-UJR46SM6.mjs → chunk-P56MHZBO.mjs} +2 -2
  11. package/dist/{chunk-3ND7IFGL.mjs → chunk-TLDPJKAD.mjs} +1 -1
  12. package/dist/{chunk-B5JIAZPS.mjs → chunk-U72IN2SJ.mjs} +62 -9
  13. package/dist/executors.js +4 -4
  14. package/dist/executors.mjs +4 -4
  15. package/dist/generators.js +4 -4
  16. package/dist/generators.mjs +3 -3
  17. package/dist/index.js +9 -9
  18. package/dist/index.mjs +10 -10
  19. package/dist/src/executors/cloudflare-publish/executor.js +2 -2
  20. package/dist/src/executors/cloudflare-publish/executor.mjs +2 -2
  21. package/dist/src/executors/r2-upload-publish/executor.js +4 -4
  22. package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
  23. package/dist/src/executors/serve/executor.js +3 -3
  24. package/dist/src/executors/serve/executor.mjs +2 -2
  25. package/dist/src/generators/init/generator.js +2 -2
  26. package/dist/src/generators/init/generator.mjs +1 -1
  27. package/dist/src/generators/worker/generator.js +4 -4
  28. package/dist/src/generators/worker/generator.mjs +3 -3
  29. package/package.json +6 -6
  30. package/dist/chunk-L5AZ34A2.mjs +0 -209
  31. package/dist/chunk-NALNCVVQ.js +0 -209
package/CHANGELOG.md CHANGED
@@ -2,6 +2,41 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.70.32](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.70.32) (11/13/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([68959f768](https://github.com/storm-software/storm-ops/commit/68959f768))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated **workspace-tools** to **v1.293.2**
15
+ - Updated **config-tools** to **v1.188.32**
16
+ - Updated **config** to **v1.134.32**
17
+
18
+ ## [0.70.31](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.70.31) (11/13/2025)
19
+
20
+ ### Miscellaneous
21
+
22
+ - **monorepo:** Reformat workspace package files
23
+ ([a0fb66d75](https://github.com/storm-software/storm-ops/commit/a0fb66d75))
24
+ - **monorepo:** Reformat workspace files
25
+ ([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
26
+ - **monorepo:** Regenerate README markdown files
27
+ ([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
28
+
29
+ ### Features
30
+
31
+ - **workspace-tools:** Added the `napi` executor to build rust bindings
32
+ ([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
33
+
34
+ ### Updated Dependencies
35
+
36
+ - Updated **workspace-tools** to **v1.293.1**
37
+ - Updated **config-tools** to **v1.188.31**
38
+ - Updated **config** to **v1.134.31**
39
+
5
40
  ## [0.70.30](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.70.30) (11/13/2025)
6
41
 
7
42
  ### 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.70.29-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.70.31-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 -->
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Cloudflare Tools](#storm-cloudflare-tools)
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.70.30",
10
+ version: "0.70.32",
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",
@@ -136,9 +136,9 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
136
136
  "@nx/js": "catalog:",
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
- "@storm-software/config": "1.134.30",
140
- "@storm-software/config-tools": "1.188.30",
141
- "@storm-software/workspace-tools": "1.293.0",
139
+ "@storm-software/config": "1.134.32",
140
+ "@storm-software/config-tools": "1.188.32",
141
+ "@storm-software/workspace-tools": "1.293.2",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -176,7 +176,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
176
176
  nx: "catalog:",
177
177
  tsup: "catalog:",
178
178
  untyped: "catalog:",
179
- wrangler: "^4.47.0"
179
+ wrangler: "^4.48.0"
180
180
  },
181
181
  publishConfig: {
182
182
  access: "public"
@@ -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 _chunkHWDSHE6Tjs = require('./chunk-HWDSHE6T.js');
3
+ var _chunk5O7N5PFTjs = require('./chunk-5O7N5PFT.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkDTVTFZ3Mjs = require('./chunk-DTVTFZ3M.js');
7
+ var _chunkHYSCV25Jjs = require('./chunk-HYSCV25J.js');
8
8
 
9
9
 
10
10
 
@@ -51,13 +51,13 @@ async function applicationGenerator(tree, schema) {
51
51
  _chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
52
52
 
53
53
  `, config);
54
- const workspaceRoot = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
54
+ const workspaceRoot = _chunkHYSCV25Jjs.findWorkspaceRoot.call(void 0, );
55
55
  _chunk2CDSXWFAjs.writeDebug.call(void 0,
56
56
  `Loading the Storm Config from environment variables and storm.json file...
57
57
  - workspaceRoot: ${workspaceRoot}`,
58
58
  config
59
59
  );
60
- config = await _chunkDTVTFZ3Mjs.getConfig.call(void 0, workspaceRoot);
60
+ config = await _chunkHYSCV25Jjs.getConfig.call(void 0, workspaceRoot);
61
61
  _chunk2CDSXWFAjs.writeTrace.call(void 0,
62
62
  `Loaded Storm config into env:
63
63
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
66
66
  const options = await normalizeOptions(tree, schema, config);
67
67
  const tasks = [];
68
68
  tasks.push(
69
- await _chunkHWDSHE6Tjs.generator_default.call(void 0, tree, {
69
+ await _chunk5O7N5PFTjs.generator_default.call(void 0, tree, {
70
70
  ...options,
71
71
  skipFormat: true
72
72
  })
@@ -9,7 +9,7 @@ var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkDTVTFZ3Mjs = require('./chunk-DTVTFZ3M.js');
12
+ var _chunkHYSCV25Jjs = require('./chunk-HYSCV25J.js');
13
13
 
14
14
 
15
15
 
@@ -39,8 +39,8 @@ async function runExecutor(options, context) {
39
39
  throw new Error("The executor requires projectsConfigurations.");
40
40
  }
41
41
  try {
42
- const workspaceRoot = _chunkDTVTFZ3Mjs.findWorkspaceRoot.call(void 0, );
43
- const config = await _chunkDTVTFZ3Mjs.getConfig.call(void 0, workspaceRoot);
42
+ const workspaceRoot = _chunkHYSCV25Jjs.findWorkspaceRoot.call(void 0, );
43
+ const config = await _chunkHYSCV25Jjs.getConfig.call(void 0, workspaceRoot);
44
44
  const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
45
45
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
46
46
  const projectDetails = _chunkNU34IEWNjs.getPackageInfo.call(void 0,
@@ -18,6 +18,7 @@ function normalizeWindowsPath(input = "") {
18
18
  var _UNC_REGEX = /^[/\\]{2}/;
19
19
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
20
20
  var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
21
+ var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
21
22
  var correctPaths = function(path) {
22
23
  if (!path || path.length === 0) {
23
24
  return ".";
@@ -68,6 +69,30 @@ var joinPaths = function(...segments) {
68
69
  }
69
70
  return correctPaths(path);
70
71
  };
72
+ function cwd() {
73
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
74
+ return process.cwd().replace(/\\/g, "/");
75
+ }
76
+ return "/";
77
+ }
78
+ var resolve = function(...arguments_) {
79
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
80
+ let resolvedPath = "";
81
+ let resolvedAbsolute = false;
82
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
83
+ const path = index >= 0 ? arguments_[index] : cwd();
84
+ if (!path || path.length === 0) {
85
+ continue;
86
+ }
87
+ resolvedPath = `${path}/${resolvedPath}`;
88
+ resolvedAbsolute = isAbsolute(path);
89
+ }
90
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
91
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
92
+ return `/${resolvedPath}`;
93
+ }
94
+ return resolvedPath.length > 0 ? resolvedPath : ".";
95
+ };
71
96
  function normalizeString(path, allowAboveRoot) {
72
97
  let res = "";
73
98
  let lastSegmentLength = 0;
@@ -131,6 +156,22 @@ function normalizeString(path, allowAboveRoot) {
131
156
  var isAbsolute = function(p) {
132
157
  return _IS_ABSOLUTE_RE.test(p);
133
158
  };
159
+ var relative = function(from, to) {
160
+ const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
161
+ const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
162
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
163
+ return _to.join("/");
164
+ }
165
+ const _fromCopy = [..._from];
166
+ for (const segment of _fromCopy) {
167
+ if (_to[0] !== segment) {
168
+ break;
169
+ }
170
+ _from.shift();
171
+ _to.shift();
172
+ }
173
+ return [..._from.map(() => ".."), ..._to].join("/");
174
+ };
134
175
 
135
176
  // ../config-tools/src/utilities/find-up.ts
136
177
  import { existsSync } from "node:fs";
@@ -1680,7 +1721,10 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
1680
1721
  }
1681
1722
 
1682
1723
  export {
1724
+ correctPaths,
1683
1725
  joinPaths,
1726
+ isAbsolute,
1727
+ relative,
1684
1728
  findWorkspaceRoot,
1685
1729
  schemaRegistry,
1686
1730
  workspaceConfigSchema,
@@ -7,7 +7,7 @@ var require_package = __commonJS({
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.70.30",
10
+ version: "0.70.32",
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",
@@ -136,9 +136,9 @@ var require_package = __commonJS({
136
136
  "@nx/js": "catalog:",
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
- "@storm-software/config": "1.134.30",
140
- "@storm-software/config-tools": "1.188.30",
141
- "@storm-software/workspace-tools": "1.293.0",
139
+ "@storm-software/config": "1.134.32",
140
+ "@storm-software/config-tools": "1.188.32",
141
+ "@storm-software/workspace-tools": "1.293.2",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -176,7 +176,7 @@ var require_package = __commonJS({
176
176
  nx: "catalog:",
177
177
  tsup: "catalog:",
178
178
  untyped: "catalog:",
179
- wrangler: "^4.47.0"
179
+ wrangler: "^4.48.0"
180
180
  },
181
181
  publishConfig: {
182
182
  access: "public"