@storm-software/config-tools 1.47.1 → 1.49.0

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
@@ -1,53 +1,66 @@
1
- ## 1.47.1 (2024-05-27)
1
+ ## 1.49.0 (2024-05-29)
2
2
 
3
3
 
4
- ### 🩹 Fixes
4
+ ### 🚀 Features
5
5
 
6
- - **deps:** update patch prod dependencies ([a8113435](https://github.com/storm-software/storm-ops/commit/a8113435))
6
+ - **cloudflare-tools:** Update worker generator to add hono depenendency ([946a9e59](https://github.com/storm-software/storm-ops/commit/946a9e59))
7
7
 
8
8
 
9
9
  ### ❤️ Thank You
10
10
 
11
11
  - Patrick Sullivan
12
12
 
13
- ## 1.47.0 (2024-05-07)
13
+ ## 1.48.0 (2024-05-29)
14
+
15
+ ### 🚀 Features
16
+
17
+ - **config:** Added the `cloudflareAccountId` configuration parameter ([db4cbd7d](https://github.com/storm-software/storm-ops/commit/db4cbd7d))
18
+
19
+ ### ❤️ Thank You
14
20
 
21
+ - Patrick Sullivan
22
+
23
+ ## 1.47.1 (2024-05-27)
24
+
25
+ ### 🩹 Fixes
26
+
27
+ - **deps:** update patch prod dependencies ([a8113435](https://github.com/storm-software/storm-ops/commit/a8113435))
28
+
29
+ ### ❤️ Thank You
30
+
31
+ - Patrick Sullivan
32
+
33
+ ## 1.47.0 (2024-05-07)
15
34
 
16
35
  ### 🚀 Features
17
36
 
18
37
  - **config:** Added the `accent` color token to configuration ([a7a24ec1](https://github.com/storm-software/storm-ops/commit/a7a24ec1))
19
38
 
20
-
21
39
  ### 🩹 Fixes
22
40
 
23
41
  - **config:** Mark the `accent` color as optional ([156921b6](https://github.com/storm-software/storm-ops/commit/156921b6))
24
42
 
25
-
26
- ### ❤️ Thank You
43
+ ### ❤️ Thank You
27
44
 
28
45
  - Patrick Sullivan
29
46
 
30
47
  ## 1.46.0 (2024-05-07)
31
48
 
32
-
33
49
  ### 🚀 Features
34
50
 
35
51
  - **config:** Add the `help` color token type ([8a466466](https://github.com/storm-software/storm-ops/commit/8a466466))
36
52
 
37
-
38
- ### ❤️ Thank You
53
+ ### ❤️ Thank You
39
54
 
40
55
  - Patrick Sullivan
41
56
 
42
57
  ## 1.45.1 (2024-05-06)
43
58
 
44
-
45
59
  ### 🩹 Fixes
46
60
 
47
61
  - **markdownlint:** Resolved issue with bad config in lint file ([95b3aba7](https://github.com/storm-software/storm-ops/commit/95b3aba7))
48
62
 
49
-
50
- ### ❤️ Thank You
63
+ ### ❤️ Thank You
51
64
 
52
65
  - Patrick Sullivan
53
66
 
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-1.45.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
24
+ [![Version](https://img.shields.io/badge/version-1.48.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
25
25
  [![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 docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&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)
26
26
 
27
27
  > [!IMPORTANT]
package/index.cjs CHANGED
@@ -68257,6 +68257,7 @@ var StormConfigSchema = z2.object({
68257
68257
  ]).default("debug").describe(
68258
68258
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
68259
68259
  ),
68260
+ cloudflareAccountId: z2.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
68260
68261
  configFile: z2.string().trim().nullable().default(null).describe(
68261
68262
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
68262
68263
  ),
@@ -68849,6 +68850,7 @@ var getConfigEnv = () => {
68849
68850
  branch: process.env[`${prefix}BRANCH`],
68850
68851
  preid: process.env[`${prefix}PRE_ID`],
68851
68852
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68853
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] ? process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] : process.env.CLOUDFLARE_ACCOUNT_ID ? process.env.CLOUDFLARE_ACCOUNT_ID : process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
68852
68854
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68853
68855
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68854
68856
  ) ? getLogLevelLabel(
@@ -69055,6 +69057,15 @@ var setConfigEnv = (config) => {
69055
69057
  config.externalPackagePatterns
69056
69058
  );
69057
69059
  }
69060
+ if (config.cloudflareAccountId) {
69061
+ process.env.STORM_BOT_CLOUDFLARE_ACCOUNT ??= String(
69062
+ config.cloudflareAccountId
69063
+ );
69064
+ process.env.CLOUDFLARE_ACCOUNT_ID ??= String(config.cloudflareAccountId);
69065
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69066
+ config.cloudflareAccountId
69067
+ );
69068
+ }
69058
69069
  if (config.logLevel) {
69059
69070
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69060
69071
  process.env.LOG_LEVEL = String(config.logLevel);
package/index.js CHANGED
@@ -68214,6 +68214,7 @@ var StormConfigSchema = z2.object({
68214
68214
  ]).default("debug").describe(
68215
68215
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
68216
68216
  ),
68217
+ cloudflareAccountId: z2.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
68217
68218
  configFile: z2.string().trim().nullable().default(null).describe(
68218
68219
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
68219
68220
  ),
@@ -68806,6 +68807,7 @@ var getConfigEnv = () => {
68806
68807
  branch: process.env[`${prefix}BRANCH`],
68807
68808
  preid: process.env[`${prefix}PRE_ID`],
68808
68809
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68810
+ cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] ? process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] : process.env.CLOUDFLARE_ACCOUNT_ID ? process.env.CLOUDFLARE_ACCOUNT_ID : process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
68809
68811
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68810
68812
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68811
68813
  ) ? getLogLevelLabel(
@@ -69012,6 +69014,15 @@ var setConfigEnv = (config) => {
69012
69014
  config.externalPackagePatterns
69013
69015
  );
69014
69016
  }
69017
+ if (config.cloudflareAccountId) {
69018
+ process.env.STORM_BOT_CLOUDFLARE_ACCOUNT ??= String(
69019
+ config.cloudflareAccountId
69020
+ );
69021
+ process.env.CLOUDFLARE_ACCOUNT_ID ??= String(config.cloudflareAccountId);
69022
+ process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69023
+ config.cloudflareAccountId
69024
+ );
69025
+ }
69015
69026
  if (config.logLevel) {
69016
69027
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
69017
69028
  process.env.LOG_LEVEL = String(config.logLevel);