@storm-software/esbuild 0.31.40 → 0.31.41

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/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.31.39-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.31.40-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 -->
package/bin/esbuild.cjs CHANGED
@@ -2333,7 +2333,7 @@ minimatch.unescape = unescape;
2333
2333
  // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/glob.js
2334
2334
  var import_node_url2 = require("url");
2335
2335
 
2336
- // ../../node_modules/.pnpm/lru-cache@11.0.2/node_modules/lru-cache/dist/esm/index.js
2336
+ // ../../node_modules/.pnpm/lru-cache@11.1.0/node_modules/lru-cache/dist/esm/index.js
2337
2337
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
2338
2338
  var warned = /* @__PURE__ */ new Set();
2339
2339
  var PROCESS = typeof process === "object" && !!process ? process : {};
@@ -2431,6 +2431,7 @@ var LRUCache = class _LRUCache {
2431
2431
  #max;
2432
2432
  #maxSize;
2433
2433
  #dispose;
2434
+ #onInsert;
2434
2435
  #disposeAfter;
2435
2436
  #fetchMethod;
2436
2437
  #memoMethod;
@@ -2512,6 +2513,7 @@ var LRUCache = class _LRUCache {
2512
2513
  #hasDispose;
2513
2514
  #hasFetchMethod;
2514
2515
  #hasDisposeAfter;
2516
+ #hasOnInsert;
2515
2517
  /**
2516
2518
  * Do not call this method unless you need to inspect the
2517
2519
  * inner workings of the cache. If anything returned by this
@@ -2588,6 +2590,12 @@ var LRUCache = class _LRUCache {
2588
2590
  get dispose() {
2589
2591
  return this.#dispose;
2590
2592
  }
2593
+ /**
2594
+ * {@link LRUCache.OptionsBase.onInsert} (read-only)
2595
+ */
2596
+ get onInsert() {
2597
+ return this.#onInsert;
2598
+ }
2591
2599
  /**
2592
2600
  * {@link LRUCache.OptionsBase.disposeAfter} (read-only)
2593
2601
  */
@@ -2595,7 +2603,7 @@ var LRUCache = class _LRUCache {
2595
2603
  return this.#disposeAfter;
2596
2604
  }
2597
2605
  constructor(options) {
2598
- const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
2606
+ const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
2599
2607
  if (max !== 0 && !isPosInt(max)) {
2600
2608
  throw new TypeError("max option must be a nonnegative integer");
2601
2609
  }
@@ -2637,6 +2645,9 @@ var LRUCache = class _LRUCache {
2637
2645
  if (typeof dispose === "function") {
2638
2646
  this.#dispose = dispose;
2639
2647
  }
2648
+ if (typeof onInsert === "function") {
2649
+ this.#onInsert = onInsert;
2650
+ }
2640
2651
  if (typeof disposeAfter === "function") {
2641
2652
  this.#disposeAfter = disposeAfter;
2642
2653
  this.#disposed = [];
@@ -2645,6 +2656,7 @@ var LRUCache = class _LRUCache {
2645
2656
  this.#disposed = void 0;
2646
2657
  }
2647
2658
  this.#hasDispose = !!this.#dispose;
2659
+ this.#hasOnInsert = !!this.#onInsert;
2648
2660
  this.#hasDisposeAfter = !!this.#disposeAfter;
2649
2661
  this.noDisposeOnSet = !!noDisposeOnSet;
2650
2662
  this.noUpdateTTL = !!noUpdateTTL;
@@ -3167,6 +3179,9 @@ var LRUCache = class _LRUCache {
3167
3179
  this.#addItemSize(index, size, status);
3168
3180
  if (status) status.set = "add";
3169
3181
  noUpdateTTL = false;
3182
+ if (this.#hasOnInsert) {
3183
+ this.#onInsert?.(v, k, "add");
3184
+ }
3170
3185
  } else {
3171
3186
  this.#moveToTail(index);
3172
3187
  const oldVal = this.#valList[index];
@@ -3209,6 +3224,9 @@ var LRUCache = class _LRUCache {
3209
3224
  } else if (status) {
3210
3225
  status.set = "update";
3211
3226
  }
3227
+ if (this.#hasOnInsert) {
3228
+ this.onInsert?.(v, k, v === oldVal ? "update" : "replace");
3229
+ }
3212
3230
  }
3213
3231
  if (ttl !== 0 && !this.#ttls) {
3214
3232
  this.#initializeTTLTracking();
package/dist/clean.d.cts CHANGED
@@ -38,8 +38,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
38
38
  header?: string | undefined;
39
39
  }, {
40
40
  banner?: string | undefined;
41
- header?: string | undefined;
42
41
  footer?: string | undefined;
42
+ header?: string | undefined;
43
43
  }>;
44
44
  account: z.ZodObject<{
45
45
  twitter: z.ZodDefault<z.ZodString>;
@@ -86,15 +86,15 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
86
86
  build: z.ZodDefault<z.ZodString>;
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  build: string;
89
+ config?: string | undefined;
89
90
  cache?: string | undefined;
90
91
  data?: string | undefined;
91
- config?: string | undefined;
92
92
  temp?: string | undefined;
93
93
  log?: string | undefined;
94
94
  }, {
95
+ config?: string | undefined;
95
96
  cache?: string | undefined;
96
97
  data?: string | undefined;
97
- config?: string | undefined;
98
98
  temp?: string | undefined;
99
99
  log?: string | undefined;
100
100
  build?: string | undefined;
@@ -841,6 +841,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
841
841
  }>]>>]>]>;
842
842
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
843
843
  }, "strip", z.ZodTypeAny, {
844
+ logLevel: "debug" | "error" | "silent" | "fatal" | "warn" | "success" | "info" | "trace" | "all";
845
+ mode: "development" | "staging" | "production";
844
846
  organization: string;
845
847
  license: string;
846
848
  homepage: string;
@@ -870,22 +872,20 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
870
872
  codesFile: string;
871
873
  url?: string | undefined;
872
874
  };
873
- mode: "development" | "staging" | "production";
874
875
  workspaceRoot: string;
875
876
  externalPackagePatterns: string[];
876
877
  skipCache: boolean;
877
878
  directories: {
878
879
  build: string;
880
+ config?: string | undefined;
879
881
  cache?: string | undefined;
880
882
  data?: string | undefined;
881
- config?: string | undefined;
882
883
  temp?: string | undefined;
883
884
  log?: string | undefined;
884
885
  };
885
886
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
886
887
  timezone: string;
887
888
  locale: string;
888
- logLevel: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all";
889
889
  registry: {
890
890
  github?: string | undefined;
891
891
  npm?: string | undefined;
@@ -1042,9 +1042,9 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1042
1042
  };
1043
1043
  }>;
1044
1044
  extensions: Record<string, any>;
1045
+ name?: string | undefined;
1045
1046
  $schema?: string | null | undefined;
1046
1047
  extends?: string | string[] | undefined;
1047
- name?: string | undefined;
1048
1048
  namespace?: string | undefined;
1049
1049
  repository?: string | undefined;
1050
1050
  preid?: string | undefined;
@@ -1056,8 +1056,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1056
1056
  };
1057
1057
  release: {
1058
1058
  banner?: string | undefined;
1059
- header?: string | undefined;
1060
1059
  footer?: string | undefined;
1060
+ header?: string | undefined;
1061
1061
  };
1062
1062
  account: {
1063
1063
  twitter?: string | undefined;
@@ -1072,9 +1072,9 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1072
1072
  url?: string | undefined;
1073
1073
  };
1074
1074
  directories: {
1075
+ config?: string | undefined;
1075
1076
  cache?: string | undefined;
1076
1077
  data?: string | undefined;
1077
- config?: string | undefined;
1078
1078
  temp?: string | undefined;
1079
1079
  log?: string | undefined;
1080
1080
  build?: string | undefined;
@@ -1226,9 +1226,11 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1226
1226
  background?: string | undefined;
1227
1227
  };
1228
1228
  }>;
1229
+ logLevel?: "debug" | "error" | "silent" | "fatal" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1230
+ name?: string | undefined;
1231
+ mode?: "development" | "staging" | "production" | undefined;
1229
1232
  $schema?: string | null | undefined;
1230
1233
  extends?: string | string[] | undefined;
1231
- name?: string | undefined;
1232
1234
  namespace?: string | undefined;
1233
1235
  organization?: string | undefined;
1234
1236
  repository?: string | undefined;
@@ -1240,14 +1242,12 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1240
1242
  branch?: string | undefined;
1241
1243
  preid?: string | undefined;
1242
1244
  owner?: string | undefined;
1243
- mode?: "development" | "staging" | "production" | undefined;
1244
1245
  workspaceRoot?: string | undefined;
1245
1246
  externalPackagePatterns?: string[] | undefined;
1246
1247
  skipCache?: boolean | undefined;
1247
1248
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1248
1249
  timezone?: string | undefined;
1249
1250
  locale?: string | undefined;
1250
- logLevel?: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1251
1251
  skipConfigLogging?: boolean | undefined;
1252
1252
  registry?: {
1253
1253
  github?: string | undefined;
package/dist/clean.d.ts CHANGED
@@ -38,8 +38,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
38
38
  header?: string | undefined;
39
39
  }, {
40
40
  banner?: string | undefined;
41
- header?: string | undefined;
42
41
  footer?: string | undefined;
42
+ header?: string | undefined;
43
43
  }>;
44
44
  account: z.ZodObject<{
45
45
  twitter: z.ZodDefault<z.ZodString>;
@@ -86,15 +86,15 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
86
86
  build: z.ZodDefault<z.ZodString>;
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  build: string;
89
+ config?: string | undefined;
89
90
  cache?: string | undefined;
90
91
  data?: string | undefined;
91
- config?: string | undefined;
92
92
  temp?: string | undefined;
93
93
  log?: string | undefined;
94
94
  }, {
95
+ config?: string | undefined;
95
96
  cache?: string | undefined;
96
97
  data?: string | undefined;
97
- config?: string | undefined;
98
98
  temp?: string | undefined;
99
99
  log?: string | undefined;
100
100
  build?: string | undefined;
@@ -841,6 +841,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
841
841
  }>]>>]>]>;
842
842
  extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
843
843
  }, "strip", z.ZodTypeAny, {
844
+ logLevel: "debug" | "error" | "silent" | "fatal" | "warn" | "success" | "info" | "trace" | "all";
845
+ mode: "development" | "staging" | "production";
844
846
  organization: string;
845
847
  license: string;
846
848
  homepage: string;
@@ -870,22 +872,20 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
870
872
  codesFile: string;
871
873
  url?: string | undefined;
872
874
  };
873
- mode: "development" | "staging" | "production";
874
875
  workspaceRoot: string;
875
876
  externalPackagePatterns: string[];
876
877
  skipCache: boolean;
877
878
  directories: {
878
879
  build: string;
880
+ config?: string | undefined;
879
881
  cache?: string | undefined;
880
882
  data?: string | undefined;
881
- config?: string | undefined;
882
883
  temp?: string | undefined;
883
884
  log?: string | undefined;
884
885
  };
885
886
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
886
887
  timezone: string;
887
888
  locale: string;
888
- logLevel: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all";
889
889
  registry: {
890
890
  github?: string | undefined;
891
891
  npm?: string | undefined;
@@ -1042,9 +1042,9 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1042
1042
  };
1043
1043
  }>;
1044
1044
  extensions: Record<string, any>;
1045
+ name?: string | undefined;
1045
1046
  $schema?: string | null | undefined;
1046
1047
  extends?: string | string[] | undefined;
1047
- name?: string | undefined;
1048
1048
  namespace?: string | undefined;
1049
1049
  repository?: string | undefined;
1050
1050
  preid?: string | undefined;
@@ -1056,8 +1056,8 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1056
1056
  };
1057
1057
  release: {
1058
1058
  banner?: string | undefined;
1059
- header?: string | undefined;
1060
1059
  footer?: string | undefined;
1060
+ header?: string | undefined;
1061
1061
  };
1062
1062
  account: {
1063
1063
  twitter?: string | undefined;
@@ -1072,9 +1072,9 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1072
1072
  url?: string | undefined;
1073
1073
  };
1074
1074
  directories: {
1075
+ config?: string | undefined;
1075
1076
  cache?: string | undefined;
1076
1077
  data?: string | undefined;
1077
- config?: string | undefined;
1078
1078
  temp?: string | undefined;
1079
1079
  log?: string | undefined;
1080
1080
  build?: string | undefined;
@@ -1226,9 +1226,11 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1226
1226
  background?: string | undefined;
1227
1227
  };
1228
1228
  }>;
1229
+ logLevel?: "debug" | "error" | "silent" | "fatal" | "warn" | "success" | "info" | "trace" | "all" | undefined;
1230
+ name?: string | undefined;
1231
+ mode?: "development" | "staging" | "production" | undefined;
1229
1232
  $schema?: string | null | undefined;
1230
1233
  extends?: string | string[] | undefined;
1231
- name?: string | undefined;
1232
1234
  namespace?: string | undefined;
1233
1235
  organization?: string | undefined;
1234
1236
  repository?: string | undefined;
@@ -1240,14 +1242,12 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1240
1242
  branch?: string | undefined;
1241
1243
  preid?: string | undefined;
1242
1244
  owner?: string | undefined;
1243
- mode?: "development" | "staging" | "production" | undefined;
1244
1245
  workspaceRoot?: string | undefined;
1245
1246
  externalPackagePatterns?: string[] | undefined;
1246
1247
  skipCache?: boolean | undefined;
1247
1248
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1248
1249
  timezone?: string | undefined;
1249
1250
  locale?: string | undefined;
1250
- logLevel?: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1251
1251
  skipConfigLogging?: boolean | undefined;
1252
1252
  registry?: {
1253
1253
  github?: string | undefined;
package/dist/types.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
- import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
3
- import { BuildOptions, OutputFile, Metafile, BuildResult, Format } from 'esbuild';
2
+ import { TypeScriptBuildResolvedOptions, TypeScriptBuildOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
3
+ import { BuildOptions, OutputFile, Metafile, Format, BuildResult } from 'esbuild';
4
4
  import { SourceMap } from 'rollup';
5
5
  import { RawSourceMap } from 'source-map';
6
6
 
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProjectGraph, ProjectsConfigurations } from '@nx/devkit';
2
- import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
3
- import { BuildOptions, OutputFile, Metafile, BuildResult, Format } from 'esbuild';
2
+ import { TypeScriptBuildResolvedOptions, TypeScriptBuildOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
3
+ import { BuildOptions, OutputFile, Metafile, Format, BuildResult } from 'esbuild';
4
4
  import { SourceMap } from 'rollup';
5
5
  import { RawSourceMap } from 'source-map';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/esbuild",
3
- "version": "0.31.40",
3
+ "version": "0.31.41",
4
4
  "type": "module",
5
5
  "description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -172,9 +172,9 @@
172
172
  "@microsoft/api-extractor": "^7.48.1",
173
173
  "@nx/devkit": "20.6.0",
174
174
  "@nx/js": "20.6.0",
175
- "@storm-software/build-tools": "0.143.31",
176
- "@storm-software/config": "1.112.11",
177
- "@storm-software/config-tools": "1.162.5",
175
+ "@storm-software/build-tools": "0.143.32",
176
+ "@storm-software/config": "1.112.12",
177
+ "@storm-software/config-tools": "1.162.6",
178
178
  "@types/node": "^22.10.2",
179
179
  "rollup": "^4.29.1",
180
180
  "spdx-exceptions": "^2.5.0",