@zuplo/cli 6.70.29 → 6.70.31

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 (162) hide show
  1. package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  2. package/node_modules/@protobufjs/fetch/index.d.ts +7 -7
  3. package/node_modules/@protobufjs/fetch/index.js +4 -7
  4. package/node_modules/@protobufjs/fetch/package.json +7 -5
  5. package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  6. package/node_modules/@protobufjs/fetch/tests/index.js +150 -8
  7. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  8. package/node_modules/@protobufjs/inquire/CHANGELOG.md +8 -0
  9. package/node_modules/@protobufjs/inquire/index.d.ts +1 -0
  10. package/node_modules/@protobufjs/inquire/index.js +1 -0
  11. package/node_modules/@protobufjs/inquire/package.json +1 -1
  12. package/node_modules/@zuplo/core/package.json +1 -1
  13. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +21 -17
  14. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
  15. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js +65 -35
  16. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
  17. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
  18. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
  19. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -1
  20. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
  21. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -1
  22. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts +21 -17
  23. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
  24. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js +65 -35
  25. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
  26. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  27. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
  28. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts +21 -17
  29. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
  30. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js +65 -35
  31. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
  32. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
  33. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
  34. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -1
  35. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
  36. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -1
  37. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -1
  38. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
  39. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -1
  40. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts +21 -17
  41. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
  42. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js +65 -35
  43. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
  44. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
  45. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
  46. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -1
  47. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
  48. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -1
  49. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts +21 -17
  50. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
  51. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js +65 -35
  52. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js.map +1 -1
  53. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  54. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
  55. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts +21 -17
  56. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
  57. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js +65 -35
  58. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
  59. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
  60. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
  61. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -1
  62. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
  63. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -1
  64. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -1
  65. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js +1 -2
  66. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js.map +1 -1
  67. package/node_modules/@zuplo/editor/node_modules/lru-cache/package.json +8 -8
  68. package/node_modules/@zuplo/graphql/package.json +1 -1
  69. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  70. package/node_modules/@zuplo/otel/package.json +1 -1
  71. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +21 -21
  72. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  73. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +2 -1
  74. package/node_modules/@zuplo/runtime/package.json +1 -1
  75. package/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -1
  76. package/node_modules/pg-protocol/dist/serializer.d.ts +1 -0
  77. package/node_modules/pg-protocol/package.json +4 -4
  78. package/node_modules/pg-protocol/src/buffer-reader.ts +1 -1
  79. package/node_modules/protobufjs/dist/light/protobuf.js +187 -153
  80. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  81. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  82. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  83. package/node_modules/protobufjs/dist/minimal/protobuf.js +14 -5
  84. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  85. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  86. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  87. package/node_modules/protobufjs/dist/protobuf.js +207 -173
  88. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  89. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  90. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  91. package/node_modules/protobufjs/package.json +6 -3
  92. package/node_modules/protobufjs/src/util/fs.js +11 -0
  93. package/node_modules/protobufjs/src/util/minimal.js +10 -2
  94. package/node_modules/protobufjs/src/util.js +1 -1
  95. package/node_modules/qs/CHANGELOG.md +10 -0
  96. package/node_modules/qs/README.md +1 -1
  97. package/node_modules/qs/dist/qs.js +15 -15
  98. package/node_modules/qs/eslint.config.mjs +1 -0
  99. package/node_modules/qs/lib/parse.js +52 -22
  100. package/node_modules/qs/lib/stringify.js +11 -4
  101. package/node_modules/qs/package.json +2 -2
  102. package/node_modules/qs/test/parse.js +49 -0
  103. package/node_modules/qs/test/stringify.js +129 -0
  104. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +21 -17
  105. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
  106. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js +65 -35
  107. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
  108. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
  109. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
  110. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -1
  111. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
  112. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -1
  113. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +21 -17
  114. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
  115. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +65 -35
  116. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
  117. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  118. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
  119. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts +21 -17
  120. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
  121. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js +65 -35
  122. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
  123. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
  124. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
  125. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -1
  126. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
  127. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -1
  128. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -1
  129. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
  130. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -1
  131. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts +21 -17
  132. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
  133. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js +65 -35
  134. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
  135. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
  136. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
  137. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -1
  138. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
  139. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -1
  140. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +21 -17
  141. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
  142. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +65 -35
  143. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +1 -1
  144. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  145. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
  146. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts +21 -17
  147. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
  148. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js +65 -35
  149. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
  150. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
  151. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
  152. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -1
  153. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
  154. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -1
  155. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -1
  156. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js +1 -2
  157. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js.map +1 -1
  158. package/node_modules/rimraf/node_modules/lru-cache/package.json +8 -8
  159. package/node_modules/toad-cache/dist/toad-cache.cjs +185 -185
  160. package/node_modules/toad-cache/dist/toad-cache.mjs +181 -181
  161. package/node_modules/toad-cache/package.json +33 -31
  162. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../../src/perf.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,MAAM,CAAA;CAAE,CAAA;AACxC,eAAO,MAAM,WAAW,EAAE,IASlB,CAAA"}
1
+ {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../../src/perf.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,MAAM,CAAA;CAAE,CAAA;AACxC,eAAO,MAAM,WAAW,EAAE,IAQG,CAAA"}
@@ -3,6 +3,5 @@ export const defaultPerf = (typeof performance === 'object' &&
3
3
  typeof performance.now === 'function') ?
4
4
  /* c8 ignore start - this gets covered, but c8 gets confused */
5
5
  performance
6
- : /* c8 ignore stop */
7
- Date;
6
+ : /* c8 ignore stop */ Date;
8
7
  //# sourceMappingURL=perf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"perf.js","sourceRoot":"","sources":["../../../src/perf.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GACtB,CACE,OAAO,WAAW,KAAK,QAAQ;IAC/B,WAAW;IACX,OAAO,WAAW,CAAC,GAAG,KAAK,UAAU,CACtC,CAAC,CAAC;IACD,+DAA+D;IAC/D,WAAW;IACb,CAAC,CAAC,oBAAoB;QACpB,IAAI,CAAA","sourcesContent":["/**\n * this provides the default Perf object source, either the\n * `performance` global, or the `Date` constructor.\n *\n * it can be passed in via configuration to override it\n * for a single LRU object.\n */\nexport type Perf = { now: () => number }\nexport const defaultPerf: Perf =\n (\n typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ) ?\n /* c8 ignore start - this gets covered, but c8 gets confused */\n performance\n : /* c8 ignore stop */\n Date\n"]}
1
+ {"version":3,"file":"perf.js","sourceRoot":"","sources":["../../../src/perf.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GACtB,CACE,OAAO,WAAW,KAAK,QAAQ;IAC/B,WAAW;IACX,OAAO,WAAW,CAAC,GAAG,KAAK,UAAU,CACtC,CAAC,CAAC;IACD,+DAA+D;IAC/D,WAAW;IACb,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAA","sourcesContent":["/**\n * this provides the default Perf object source, either the\n * `performance` global, or the `Date` constructor.\n *\n * it can be passed in via configuration to override it\n * for a single LRU object.\n */\nexport type Perf = { now: () => number }\nexport const defaultPerf: Perf =\n (\n typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ) ?\n /* c8 ignore start - this gets covered, but c8 gets confused */\n performance\n : /* c8 ignore stop */ Date\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../src/perf.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,MAAM,CAAA;CAAE,CAAA;AACxC,eAAO,MAAM,WAAW,EAAE,IASlB,CAAA"}
1
+ {"version":3,"file":"perf.d.ts","sourceRoot":"","sources":["../../src/perf.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,MAAM,CAAA;CAAE,CAAA;AACxC,eAAO,MAAM,WAAW,EAAE,IAQG,CAAA"}
@@ -3,6 +3,5 @@ export const defaultPerf = (typeof performance === 'object' &&
3
3
  typeof performance.now === 'function') ?
4
4
  /* c8 ignore start - this gets covered, but c8 gets confused */
5
5
  performance
6
- : /* c8 ignore stop */
7
- Date;
6
+ : /* c8 ignore stop */ Date;
8
7
  //# sourceMappingURL=perf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"perf.js","sourceRoot":"","sources":["../../src/perf.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GACtB,CACE,OAAO,WAAW,KAAK,QAAQ;IAC/B,WAAW;IACX,OAAO,WAAW,CAAC,GAAG,KAAK,UAAU,CACtC,CAAC,CAAC;IACD,+DAA+D;IAC/D,WAAW;IACb,CAAC,CAAC,oBAAoB;QACpB,IAAI,CAAA","sourcesContent":["/**\n * this provides the default Perf object source, either the\n * `performance` global, or the `Date` constructor.\n *\n * it can be passed in via configuration to override it\n * for a single LRU object.\n */\nexport type Perf = { now: () => number }\nexport const defaultPerf: Perf =\n (\n typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ) ?\n /* c8 ignore start - this gets covered, but c8 gets confused */\n performance\n : /* c8 ignore stop */\n Date\n"]}
1
+ {"version":3,"file":"perf.js","sourceRoot":"","sources":["../../src/perf.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GACtB,CACE,OAAO,WAAW,KAAK,QAAQ;IAC/B,WAAW;IACX,OAAO,WAAW,CAAC,GAAG,KAAK,UAAU,CACtC,CAAC,CAAC;IACD,+DAA+D;IAC/D,WAAW;IACb,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAA","sourcesContent":["/**\n * this provides the default Perf object source, either the\n * `performance` global, or the `Date` constructor.\n *\n * it can be passed in via configuration to override it\n * for a single LRU object.\n */\nexport type Perf = { now: () => number }\nexport const defaultPerf: Perf =\n (\n typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ) ?\n /* c8 ignore start - this gets covered, but c8 gets confused */\n performance\n : /* c8 ignore stop */ Date\n"]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lru-cache",
3
3
  "description": "A cache object that deletes the least-recently-used items.",
4
- "version": "11.3.6",
4
+ "version": "11.4.0",
5
5
  "author": "Isaac Z. Schlueter <i@izs.me>",
6
6
  "keywords": [
7
7
  "mru",
@@ -78,15 +78,15 @@
78
78
  },
79
79
  "devDependencies": {
80
80
  "benchmark": "^2.1.4",
81
- "esbuild": "^0.25.9",
81
+ "esbuild": "^0.28.0",
82
82
  "marked": "^4.2.12",
83
83
  "mkdirp": "^3.0.1",
84
- "oxlint": "^1.58.0",
85
- "oxlint-tsgolint": "^0.19.0",
86
- "prettier": "^3.8.1",
87
- "tap": "^21.7.2",
88
- "tshy": "^4.1.1",
89
- "typedoc": "^0.28.18"
84
+ "oxlint": "^1.65.0",
85
+ "oxlint-tsgolint": "^0.22.1",
86
+ "prettier": "^3.8.3",
87
+ "tap": "^21.7.4",
88
+ "tshy": "^4.1.2",
89
+ "typedoc": "^0.28.19"
90
90
  },
91
91
  "license": "BlueOak-1.0.0",
92
92
  "files": [
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * toad-cache
3
3
  *
4
- * @copyright 2024 Igor Savin <kibertoad@gmail.com>
4
+ * @copyright 2026 Igor Savin <kibertoad@gmail.com>
5
5
  * @license MIT
6
6
  * @version 3.7.0
7
7
  */
@@ -148,6 +148,190 @@ class FifoMap {
148
148
  }
149
149
  }
150
150
 
151
+ class FifoObject {
152
+ constructor(max = 1000, ttlInMsecs = 0) {
153
+ if (isNaN(max) || max < 0) {
154
+ throw new Error('Invalid max value')
155
+ }
156
+
157
+ if (isNaN(ttlInMsecs) || ttlInMsecs < 0) {
158
+ throw new Error('Invalid ttl value')
159
+ }
160
+
161
+ this.first = null;
162
+ this.items = Object.create(null);
163
+ this.last = null;
164
+ this.size = 0;
165
+ this.max = max;
166
+ this.ttl = ttlInMsecs;
167
+ }
168
+
169
+ clear() {
170
+ this.items = Object.create(null);
171
+ this.first = null;
172
+ this.last = null;
173
+ this.size = 0;
174
+ }
175
+
176
+ delete(key) {
177
+ if (Object.prototype.hasOwnProperty.call(this.items, key)) {
178
+ const deletedItem = this.items[key];
179
+
180
+ delete this.items[key];
181
+ this.size--;
182
+
183
+ if (deletedItem.prev !== null) {
184
+ deletedItem.prev.next = deletedItem.next;
185
+ }
186
+
187
+ if (deletedItem.next !== null) {
188
+ deletedItem.next.prev = deletedItem.prev;
189
+ }
190
+
191
+ if (this.first === deletedItem) {
192
+ this.first = deletedItem.next;
193
+ }
194
+
195
+ if (this.last === deletedItem) {
196
+ this.last = deletedItem.prev;
197
+ }
198
+ }
199
+ }
200
+
201
+ deleteMany(keys) {
202
+ for (var i = 0; i < keys.length; i++) {
203
+ this.delete(keys[i]);
204
+ }
205
+ }
206
+
207
+ evict() {
208
+ if (this.size > 0) {
209
+ const item = this.first;
210
+
211
+ delete this.items[item.key];
212
+
213
+ if (--this.size === 0) {
214
+ this.first = null;
215
+ this.last = null;
216
+ } else {
217
+ this.first = item.next;
218
+ this.first.prev = null;
219
+ }
220
+ }
221
+ }
222
+
223
+ expiresAt(key) {
224
+ if (Object.prototype.hasOwnProperty.call(this.items, key)) {
225
+ return this.items[key].expiry
226
+ }
227
+ }
228
+
229
+ get(key) {
230
+ if (Object.prototype.hasOwnProperty.call(this.items, key)) {
231
+ const item = this.items[key];
232
+
233
+ if (this.ttl > 0 && item.expiry <= Date.now()) {
234
+ this.delete(key);
235
+ return
236
+ }
237
+
238
+ return item.value
239
+ }
240
+ }
241
+
242
+ getMany(keys) {
243
+ const result = [];
244
+
245
+ for (var i = 0; i < keys.length; i++) {
246
+ result.push(this.get(keys[i]));
247
+ }
248
+
249
+ return result
250
+ }
251
+
252
+ keys() {
253
+ return Object.keys(this.items)
254
+ }
255
+
256
+ set(key, value) {
257
+ // Replace existing item
258
+ if (Object.prototype.hasOwnProperty.call(this.items, key)) {
259
+ const item = this.items[key];
260
+ item.value = value;
261
+
262
+ item.expiry = this.ttl > 0 ? Date.now() + this.ttl : this.ttl;
263
+
264
+ return
265
+ }
266
+
267
+ // Add new item
268
+ if (this.max > 0 && this.size === this.max) {
269
+ this.evict();
270
+ }
271
+
272
+ const item = {
273
+ expiry: this.ttl > 0 ? Date.now() + this.ttl : this.ttl,
274
+ key: key,
275
+ prev: this.last,
276
+ next: null,
277
+ value,
278
+ };
279
+ this.items[key] = item;
280
+
281
+ if (++this.size === 1) {
282
+ this.first = item;
283
+ } else {
284
+ this.last.next = item;
285
+ }
286
+
287
+ this.last = item;
288
+ }
289
+ }
290
+
291
+ class HitStatisticsRecord {
292
+ constructor() {
293
+ this.records = {};
294
+ }
295
+
296
+ initForCache(cacheId, currentTimeStamp) {
297
+ this.records[cacheId] = {
298
+ [currentTimeStamp]: {
299
+ cacheSize: 0,
300
+ hits: 0,
301
+ falsyHits: 0,
302
+ emptyHits: 0,
303
+ misses: 0,
304
+ expirations: 0,
305
+ evictions: 0,
306
+ invalidateOne: 0,
307
+ invalidateAll: 0,
308
+ sets: 0,
309
+ },
310
+ };
311
+ }
312
+
313
+ resetForCache(cacheId) {
314
+ for (let key of Object.keys(this.records[cacheId])) {
315
+ this.records[cacheId][key] = {
316
+ cacheSize: 0,
317
+ hits: 0,
318
+ falsyHits: 0,
319
+ emptyHits: 0,
320
+ misses: 0,
321
+ expirations: 0,
322
+ evictions: 0,
323
+ invalidateOne: 0,
324
+ invalidateAll: 0,
325
+ sets: 0,
326
+ };
327
+ }
328
+ }
329
+
330
+ getStatistics() {
331
+ return this.records
332
+ }
333
+ }
334
+
151
335
  class LruMap {
152
336
  constructor(max = 1000, ttlInMsecs = 0) {
153
337
  if (isNaN(max) || max < 0) {
@@ -499,50 +683,6 @@ class LruObject {
499
683
  }
500
684
  }
501
685
 
502
- class HitStatisticsRecord {
503
- constructor() {
504
- this.records = {};
505
- }
506
-
507
- initForCache(cacheId, currentTimeStamp) {
508
- this.records[cacheId] = {
509
- [currentTimeStamp]: {
510
- cacheSize: 0,
511
- hits: 0,
512
- falsyHits: 0,
513
- emptyHits: 0,
514
- misses: 0,
515
- expirations: 0,
516
- evictions: 0,
517
- invalidateOne: 0,
518
- invalidateAll: 0,
519
- sets: 0,
520
- },
521
- };
522
- }
523
-
524
- resetForCache(cacheId) {
525
- for (let key of Object.keys(this.records[cacheId])) {
526
- this.records[cacheId][key] = {
527
- cacheSize: 0,
528
- hits: 0,
529
- falsyHits: 0,
530
- emptyHits: 0,
531
- misses: 0,
532
- expirations: 0,
533
- evictions: 0,
534
- invalidateOne: 0,
535
- invalidateAll: 0,
536
- sets: 0,
537
- };
538
- }
539
- }
540
-
541
- getStatistics() {
542
- return this.records
543
- }
544
- }
545
-
546
686
  /**
547
687
  *
548
688
  * @param {Date} date
@@ -727,146 +867,6 @@ class LruObjectHitStatistics extends LruObject {
727
867
  }
728
868
  }
729
869
 
730
- class FifoObject {
731
- constructor(max = 1000, ttlInMsecs = 0) {
732
- if (isNaN(max) || max < 0) {
733
- throw new Error('Invalid max value')
734
- }
735
-
736
- if (isNaN(ttlInMsecs) || ttlInMsecs < 0) {
737
- throw new Error('Invalid ttl value')
738
- }
739
-
740
- this.first = null;
741
- this.items = Object.create(null);
742
- this.last = null;
743
- this.size = 0;
744
- this.max = max;
745
- this.ttl = ttlInMsecs;
746
- }
747
-
748
- clear() {
749
- this.items = Object.create(null);
750
- this.first = null;
751
- this.last = null;
752
- this.size = 0;
753
- }
754
-
755
- delete(key) {
756
- if (Object.prototype.hasOwnProperty.call(this.items, key)) {
757
- const deletedItem = this.items[key];
758
-
759
- delete this.items[key];
760
- this.size--;
761
-
762
- if (deletedItem.prev !== null) {
763
- deletedItem.prev.next = deletedItem.next;
764
- }
765
-
766
- if (deletedItem.next !== null) {
767
- deletedItem.next.prev = deletedItem.prev;
768
- }
769
-
770
- if (this.first === deletedItem) {
771
- this.first = deletedItem.next;
772
- }
773
-
774
- if (this.last === deletedItem) {
775
- this.last = deletedItem.prev;
776
- }
777
- }
778
- }
779
-
780
- deleteMany(keys) {
781
- for (var i = 0; i < keys.length; i++) {
782
- this.delete(keys[i]);
783
- }
784
- }
785
-
786
- evict() {
787
- if (this.size > 0) {
788
- const item = this.first;
789
-
790
- delete this.items[item.key];
791
-
792
- if (--this.size === 0) {
793
- this.first = null;
794
- this.last = null;
795
- } else {
796
- this.first = item.next;
797
- this.first.prev = null;
798
- }
799
- }
800
- }
801
-
802
- expiresAt(key) {
803
- if (Object.prototype.hasOwnProperty.call(this.items, key)) {
804
- return this.items[key].expiry
805
- }
806
- }
807
-
808
- get(key) {
809
- if (Object.prototype.hasOwnProperty.call(this.items, key)) {
810
- const item = this.items[key];
811
-
812
- if (this.ttl > 0 && item.expiry <= Date.now()) {
813
- this.delete(key);
814
- return
815
- }
816
-
817
- return item.value
818
- }
819
- }
820
-
821
- getMany(keys) {
822
- const result = [];
823
-
824
- for (var i = 0; i < keys.length; i++) {
825
- result.push(this.get(keys[i]));
826
- }
827
-
828
- return result
829
- }
830
-
831
- keys() {
832
- return Object.keys(this.items)
833
- }
834
-
835
- set(key, value) {
836
- // Replace existing item
837
- if (Object.prototype.hasOwnProperty.call(this.items, key)) {
838
- const item = this.items[key];
839
- item.value = value;
840
-
841
- item.expiry = this.ttl > 0 ? Date.now() + this.ttl : this.ttl;
842
-
843
- return
844
- }
845
-
846
- // Add new item
847
- if (this.max > 0 && this.size === this.max) {
848
- this.evict();
849
- }
850
-
851
- const item = {
852
- expiry: this.ttl > 0 ? Date.now() + this.ttl : this.ttl,
853
- key: key,
854
- prev: this.last,
855
- next: null,
856
- value,
857
- };
858
- this.items[key] = item;
859
-
860
- if (++this.size === 1) {
861
- this.first = item;
862
- } else {
863
- this.last.next = item;
864
- }
865
-
866
- this.last = item;
867
- }
868
- }
869
-
870
870
  exports.Fifo = FifoObject;
871
871
  exports.FifoMap = FifoMap;
872
872
  exports.FifoObject = FifoObject;