@storm-software/esbuild 0.31.39 → 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.38-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 -->
@@ -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 ESBuild Package](#storm-esbuild-package)
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/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.39",
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.10",
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",