@storm-software/cloudflare-tools 0.70.30 → 0.70.32

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,48 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.70.31](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.70.31) (11/13/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Reformat workspace package files
10
+ ([a0fb66d75](https://github.com/storm-software/storm-ops/commit/a0fb66d75))
11
+ - **monorepo:** Reformat workspace files
12
+ ([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
13
+ - **monorepo:** Regenerate README markdown files
14
+ ([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
15
+
16
+ ### Features
17
+
18
+ - **workspace-tools:** Added the `napi` executor to build rust bindings
19
+ ([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
20
+
21
+ ### Updated Dependencies
22
+
23
+ - Updated **workspace-tools** to **v1.293.1**
24
+ - Updated **config-tools** to **v1.188.31**
25
+ - Updated **config** to **v1.134.31**
26
+
27
+ ## [0.70.30](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.70.30) (11/13/2025)
28
+
29
+ ### Miscellaneous
30
+
31
+ - **monorepo:** Reformat workspace files
32
+ ([41b537422](https://github.com/storm-software/storm-ops/commit/41b537422))
33
+ - **monorepo:** Regenerate README markdown files
34
+ ([0ff6533a0](https://github.com/storm-software/storm-ops/commit/0ff6533a0))
35
+
36
+ ### Features
37
+
38
+ - **workspace-tools:** Added the `napi` executor to build rust bindings
39
+ ([5f075ee38](https://github.com/storm-software/storm-ops/commit/5f075ee38))
40
+
41
+ ### Updated Dependencies
42
+
43
+ - Updated **workspace-tools** to **v1.293.0**
44
+ - Updated **config-tools** to **v1.188.30**
45
+ - Updated **config** to **v1.134.30**
46
+
5
47
  ## [0.70.29](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.70.29) (11/12/2025)
6
48
 
7
49
  ### 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.30-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,7 +40,6 @@ 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
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm Cloudflare Tools](#storm-cloudflare-tools)
@@ -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.29",
10
+ version: "0.70.31",
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.29",
140
- "@storm-software/config-tools": "1.188.29",
141
- "@storm-software/workspace-tools": "1.292.29",
139
+ "@storm-software/config": "1.134.31",
140
+ "@storm-software/config-tools": "1.188.31",
141
+ "@storm-software/workspace-tools": "1.293.1",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -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,
@@ -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 _chunkWD2MRGEQjs = require('./chunk-WD2MRGEQ.js');
3
+ var _chunkZZUYDEXFjs = require('./chunk-ZZUYDEXF.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 _chunkWD2MRGEQjs.generator_default.call(void 0, tree, {
69
+ await _chunkZZUYDEXFjs.generator_default.call(void 0, tree, {
70
70
  ...options,
71
71
  skipFormat: true
72
72
  })
@@ -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,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-C3RTCNMX.mjs";
3
+ } from "./chunk-6A7H2KUQ.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
7
- } from "./chunk-RSNYZTUY.mjs";
7
+ } from "./chunk-G2NSVE4M.mjs";
8
8
  import {
9
9
  getStopwatch,
10
10
  writeDebug,