@visulima/pail 4.0.0-alpha.1 → 4.0.0-alpha.11

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 (91) hide show
  1. package/CHANGELOG.md +204 -0
  2. package/LICENSE.md +434 -52
  3. package/README.md +323 -0
  4. package/dist/error.d.ts +104 -0
  5. package/dist/error.js +76 -0
  6. package/dist/index.browser.d.ts +3 -1
  7. package/dist/index.browser.js +1490 -3
  8. package/dist/index.server.d.ts +3 -5
  9. package/dist/index.server.js +2380 -110
  10. package/dist/middleware/elysia.d.ts +71 -0
  11. package/dist/middleware/elysia.js +70 -0
  12. package/dist/middleware/express.d.ts +86 -0
  13. package/dist/middleware/express.js +29 -0
  14. package/dist/middleware/fastify.d.ts +81 -0
  15. package/dist/middleware/fastify.js +46 -0
  16. package/dist/middleware/hono.d.ts +85 -0
  17. package/dist/middleware/hono.js +33 -0
  18. package/dist/middleware/next/handler.d.ts +36 -0
  19. package/dist/middleware/next/handler.js +53 -0
  20. package/dist/middleware/next/middleware.d.ts +59 -0
  21. package/dist/middleware/next/storage.d.ts +14 -0
  22. package/dist/middleware/shared/create-middleware-logger.d.ts +82 -0
  23. package/dist/middleware/shared/headers.d.ts +14 -0
  24. package/dist/middleware/shared/routes.d.ts +30 -0
  25. package/dist/middleware/shared/storage.d.ts +29 -0
  26. package/dist/middleware/sveltekit.d.ts +123 -0
  27. package/dist/middleware/sveltekit.js +43 -0
  28. package/dist/object-tree.d.ts +2 -2
  29. package/dist/object-tree.js +7 -7
  30. package/dist/packem_shared/{AbstractJsonReporter-BaZ33PlE.js → AbstractJsonReporter-BO8Calb4.js} +112 -32
  31. package/dist/packem_shared/AbstractJsonReporter-nOj0Ft1F.js +284 -0
  32. package/dist/packem_shared/{JsonReporter-BRw4skd5.js → JsonReporter-CCmj7oYL.js} +2 -2
  33. package/dist/packem_shared/{JsonReporter-VzgyLEYz.js → JsonReporter-Ck2PIAEw.js} +2 -2
  34. package/dist/packem_shared/PrettyReporter-BCvyNzXO.js +2720 -0
  35. package/dist/packem_shared/{PrettyReporter-DySIXBjQ.js → PrettyReporter-BtTr13Ha.js} +55 -11
  36. package/dist/packem_shared/abstract-pretty-reporter-CXAKYCb8.js +2635 -0
  37. package/dist/packem_shared/constants-B1RjD_ps.js +99 -0
  38. package/dist/packem_shared/createPailError-B_sgL0nF.js +76 -0
  39. package/dist/packem_shared/headers-BxHWM6KI.js +127 -0
  40. package/dist/packem_shared/{index-BomQ3E6J.js → index-Bx3-C0j9.js} +29 -21
  41. package/dist/packem_shared/pailMiddleware-Ci88geIF.js +24 -0
  42. package/dist/packem_shared/storage-D0vqz8OX.js +36 -0
  43. package/dist/packem_shared/{InteractiveStreamHook-DiSubbJ1.js → useLogger-D0rU3lcX.js} +13 -1
  44. package/dist/packem_shared/{write-console-log-based-on-level-DBmRYXpj.js → write-console-log-based-on-level-ree2lDPw.js} +5 -4
  45. package/dist/packem_shared/{write-stream-BG8fhcs3.js → write-stream-MDqyXmc_.js} +1 -1
  46. package/dist/pail.browser.d.ts +1 -1
  47. package/dist/pail.server.d.ts +1 -76
  48. package/dist/processor/caller/caller-processor.js +1 -1
  49. package/dist/processor/environment-processor.d.ts +124 -0
  50. package/dist/processor/environment-processor.js +89 -0
  51. package/dist/processor/message-formatter-processor.d.ts +2 -3
  52. package/dist/processor/message-formatter-processor.js +654 -5
  53. package/dist/processor/opentelemetry-processor.js +4 -4
  54. package/dist/processor/redact-processor.d.ts +1 -1
  55. package/dist/processor/redact-processor.js +2 -1
  56. package/dist/processor/sampling-processor.d.ts +111 -0
  57. package/dist/processor/sampling-processor.js +59 -0
  58. package/dist/reporter/file/json-file-reporter.js +1 -1
  59. package/dist/reporter/http/abstract-http-reporter.js +23 -26
  60. package/dist/reporter/http/http-reporter.edge-light.js +134 -57
  61. package/dist/reporter/json/abstract-json-reporter.d.ts +1 -1
  62. package/dist/reporter/json/index.browser.js +2 -2
  63. package/dist/reporter/json/index.js +2 -2
  64. package/dist/reporter/pretty/index.browser.js +1 -1
  65. package/dist/reporter/pretty/index.js +1 -1
  66. package/dist/reporter/pretty/pretty-reporter.server.d.ts +1 -1
  67. package/dist/reporter/raw/raw-reporter.server.d.ts +1 -1
  68. package/dist/reporter/simple/simple-reporter.server.d.ts +1 -1
  69. package/dist/reporter/simple/simple-reporter.server.js +8 -12
  70. package/dist/types.d.ts +4 -4
  71. package/dist/utils/write-console-log-based-on-level.d.ts +1 -1
  72. package/dist/wide-event.d.ts +300 -0
  73. package/dist/wide-event.js +284 -0
  74. package/package.json +73 -20
  75. package/dist/interactive/index.d.ts +0 -2
  76. package/dist/interactive/index.js +0 -2
  77. package/dist/interactive/interactive-manager.d.ts +0 -108
  78. package/dist/interactive/interactive-stream-hook.d.ts +0 -68
  79. package/dist/packem_shared/InteractiveManager-CZ85hGNW.js +0 -172
  80. package/dist/packem_shared/PrettyReporter-DgZB2eBG.js +0 -222
  81. package/dist/packem_shared/abstract-pretty-reporter-Di_sdm2r.js +0 -50
  82. package/dist/packem_shared/format-label-De49vNPd.js +0 -1193
  83. package/dist/packem_shared/get-longest-label-C9PWeyKq.js +0 -9
  84. package/dist/packem_shared/index-DqKWykfa.js +0 -1146
  85. package/dist/packem_shared/interactive-stream-hook-DG4BtN12.js +0 -141
  86. package/dist/packem_shared/pail.browser-u2CSR_af.js +0 -1427
  87. package/dist/progress-bar.d.ts +0 -136
  88. package/dist/progress-bar.js +0 -404
  89. package/dist/spinner.d.ts +0 -220
  90. package/dist/spinner.js +0 -2150
  91. package/dist/utils/ansi-escapes.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,207 @@
1
+ ## @visulima/pail [4.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.10...@visulima/pail@4.0.0-alpha.11) (2026-04-22)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * **pail:** Removed createSpinner(), createMultiSpinner(),
6
+ createProgressBar(), createMultiProgressBar() methods and the
7
+ ./spinner, ./progress-bar, ./interactive exports. Use the standalone
8
+ packages @visulima/spinner, @visulima/progress-bar, and
9
+ @visulima/interactive-manager instead. See MIGRATION-GUIDE.md for
10
+ details.
11
+
12
+ Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
13
+
14
+ ### Features
15
+
16
+ * **pail:** remove spinner, progress-bar, and interactive from pail ([b600f82](https://github.com/visulima/visulima/commit/b600f82876330d55ba98c090b3cf37745ee1e5ed))
17
+
18
+ ### Bug Fixes
19
+
20
+ * **error-debugging:** resolve eslint and type-safety issues ([886dbff](https://github.com/visulima/visulima/commit/886dbffe3f744c9493fcc54e781de3fd21eebf78))
21
+ * fixed package version ([710e732](https://github.com/visulima/visulima/commit/710e73235b82699c511cfcc2482c491c767b2376))
22
+ * **pail, boxen:** resolve eslint unsafe type issues ([d6e852e](https://github.com/visulima/visulima/commit/d6e852e63f4572a12c31ac44a4ae687c743cf7db))
23
+ * **pail:** disable noUncheckedIndexedAccess and fix middleware return types ([0e94d32](https://github.com/visulima/visulima/commit/0e94d32a6315008e17633374c6e916bc625bc617))
24
+ * **pail:** resolve eslint and formatting issues ([3697233](https://github.com/visulima/visulima/commit/3697233aecdeac382774e5c00a0ad0e8e83b2397))
25
+ * **pail:** resolve eslint issues with terminal-size and interactive-manager ([0776deb](https://github.com/visulima/visulima/commit/0776debc2c2031cb1c13c1958a3188cecae60e8e))
26
+ * **pail:** resolve typescript-eslint strict lint errors ([a0e6b1f](https://github.com/visulima/visulima/commit/a0e6b1f3ce6518450488d4c5385333534cd22b71))
27
+ * Remove JSR configuration generation script and generated jsr.json files ([#616](https://github.com/visulima/visulima/issues/616)) ([533744b](https://github.com/visulima/visulima/commit/533744b103b74896941db5b727173e617a27a63b))
28
+
29
+ ### Miscellaneous Chores
30
+
31
+ * **api-platform:** apply pending lint and source updates ([3fb0043](https://github.com/visulima/visulima/commit/3fb0043a4cf35f752ca89a09a077100ae0142da8))
32
+ * bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
33
+ * fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
34
+ * **pail:** apply formatter and lint fixes ([73e4e1f](https://github.com/visulima/visulima/commit/73e4e1fbdf4c7541fb6fa6419dfe43f0c6225ac9))
35
+ * **pail:** apply formatter and lint fixes ([367292b](https://github.com/visulima/visulima/commit/367292bb3bf0effc94ec9828a85e926e84acd1f9))
36
+ * **pail:** apply pending changes ([e777058](https://github.com/visulima/visulima/commit/e7770582a222e586bf3f84d2c10989a26e95451d))
37
+ * **pail:** apply pending lint and source updates ([e71aa5b](https://github.com/visulima/visulima/commit/e71aa5b970e596a5b3099825d0007a9bf63425f8))
38
+ * **pail:** apply pending lint and source updates ([4c0069a](https://github.com/visulima/visulima/commit/4c0069aac50254a3329bf7f5627a9fd807f5fbca))
39
+ * **pail:** enforce curly braces and apply lint fixes ([08945a9](https://github.com/visulima/visulima/commit/08945a91e090abf6ccd5e687525ed791abb2f5c7))
40
+
41
+ ## @visulima/pail [4.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.9...@visulima/pail@4.0.0-alpha.10) (2026-04-08)
42
+
43
+ ### Features
44
+
45
+ * **pail:** add braille progress bar style with rounded caps and peak marker ([8302d7f](https://github.com/visulima/visulima/commit/8302d7faeab02ce9bb02beec706158685ab5a2dd))
46
+
47
+ ### Bug Fixes
48
+
49
+ * **pail:** properly fix eslint errors in code ([31e1eba](https://github.com/visulima/visulima/commit/31e1ebac710bbadee4167278ac6b0ada83d3408b))
50
+ * **pail:** remove remaining eslint suppressions with proper code fixes ([ea50721](https://github.com/visulima/visulima/commit/ea50721882ba2848dd60f29d02fc5eff5b885757))
51
+ * **pail:** resolve eslint errors ([966eabe](https://github.com/visulima/visulima/commit/966eabe1d8d4bd3109665dea6dea792c69b23f39))
52
+
53
+ ### Miscellaneous Chores
54
+
55
+ * apply linting and formatting fixes across packages ([5d150a5](https://github.com/visulima/visulima/commit/5d150a578f9ce861c791843c683deeb849b774a9))
56
+ * **error-debugging:** remove empty dependency objects from package.json ([7eb7c8e](https://github.com/visulima/visulima/commit/7eb7c8eba1394e515fa77c0f56baf41c0810de2e))
57
+ * **pail:** add tsconfig.eslint.json for type-aware linting ([273fb33](https://github.com/visulima/visulima/commit/273fb33273641c6a69678bdb1645da5c414958fb))
58
+ * **pail:** apply prettier formatting ([0416b36](https://github.com/visulima/visulima/commit/0416b3644faee118c4be0090d431aa5ca1249559))
59
+ * **pail:** migrate .prettierrc.cjs to prettier.config.js ([4787521](https://github.com/visulima/visulima/commit/47875216a2841d9d99a78e8f15a2c5cb5ad5850a))
60
+ * update bundled dependency licenses ([6ace4c6](https://github.com/visulima/visulima/commit/6ace4c69d41fc1fd0a744fbca8ca219ba631b4ab))
61
+
62
+
63
+ ### Dependencies
64
+
65
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.8
66
+ * **@visulima/error:** upgraded to 6.0.0-alpha.8
67
+ * **@visulima/fmt:** upgraded to 2.0.0-alpha.8
68
+ * **@visulima/inspector:** upgraded to 2.0.0-alpha.7
69
+ * **@visulima/redact:** upgraded to 3.0.0-alpha.8
70
+ * **@visulima/string:** upgraded to 3.0.0-alpha.9
71
+
72
+ ## @visulima/pail [4.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.8...@visulima/pail@4.0.0-alpha.9) (2026-03-26)
73
+
74
+ ### Features
75
+
76
+ * **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
77
+
78
+ ### Miscellaneous Chores
79
+
80
+ * update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
81
+
82
+
83
+ ### Dependencies
84
+
85
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.7
86
+ * **@visulima/error:** upgraded to 6.0.0-alpha.7
87
+ * **@visulima/fmt:** upgraded to 2.0.0-alpha.7
88
+ * **@visulima/inspector:** upgraded to 2.0.0-alpha.6
89
+ * **@visulima/redact:** upgraded to 3.0.0-alpha.7
90
+ * **@visulima/string:** upgraded to 3.0.0-alpha.8
91
+
92
+ ## @visulima/pail [4.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.7...@visulima/pail@4.0.0-alpha.8) (2026-03-26)
93
+
94
+ ### Bug Fixes
95
+
96
+ * **pail:** use workspace:* for internal [@visulima](https://github.com/visulima) deps ([8423dd7](https://github.com/visulima/visulima/commit/8423dd779fbea0acff8f090e548a423e46d761fd))
97
+ * **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
98
+
99
+ ### Miscellaneous Chores
100
+
101
+ * **pail:** migrate deps to pnpm catalogs ([b2acd86](https://github.com/visulima/visulima/commit/b2acd864a40d0b2cc8eaf4e531cb2dedfd54181a))
102
+ * update license ([b2d306c](https://github.com/visulima/visulima/commit/b2d306cfeb1eabfd9e24880cb9198f6360724d82))
103
+
104
+
105
+ ### Dependencies
106
+
107
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.6
108
+ * **@visulima/error:** upgraded to 6.0.0-alpha.6
109
+ * **@visulima/fmt:** upgraded to 2.0.0-alpha.6
110
+ * **@visulima/inspector:** upgraded to 2.0.0-alpha.5
111
+ * **@visulima/redact:** upgraded to 3.0.0-alpha.6
112
+ * **@visulima/string:** upgraded to 3.0.0-alpha.7
113
+
114
+ ## @visulima/pail [4.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.6...@visulima/pail@4.0.0-alpha.7) (2026-03-16)
115
+
116
+ ### Features
117
+
118
+ * **pail:** add self-documenting errors, sampling processor, and environment processor ([3ec79de](https://github.com/visulima/visulima/commit/3ec79de3034cee4d1514dc93e78da2d05df4f9a7))
119
+ * **pail:** add wide events, framework middleware, tests, and docs ([6d1a4f3](https://github.com/visulima/visulima/commit/6d1a4f3ef4455da78371b8754cdbca9c939bc8b4))
120
+
121
+ ### Miscellaneous Chores
122
+
123
+ * **pail:** update dependencies ([72b9561](https://github.com/visulima/visulima/commit/72b9561a3416a121198ea47cdcbe0202c0d8cbef))
124
+ * remove exit 0 ([b6d2408](https://github.com/visulima/visulima/commit/b6d2408fab8b5299a5ae902021b229909c84f184))
125
+ * visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
126
+
127
+ ## @visulima/pail [4.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.5...@visulima/pail@4.0.0-alpha.6) (2026-03-06)
128
+
129
+ ### Bug Fixes
130
+
131
+ * **pail:** update packem to 2.0.0-alpha.54 ([100f545](https://github.com/visulima/visulima/commit/100f54587dca2c89aa70867d9a398d56ffb86ada))
132
+
133
+ ### Miscellaneous Chores
134
+
135
+ * **error-debugging:** update dependencies ([6002ece](https://github.com/visulima/visulima/commit/6002ece1803b2ba8261cff42a362dd6e8ddcc3ee))
136
+ * **pail:** update dependencies ([5e4bf79](https://github.com/visulima/visulima/commit/5e4bf79575b61d2a299fcd45957fa3ea782f8194))
137
+ * **pail:** update dependencies ([4cc1e2a](https://github.com/visulima/visulima/commit/4cc1e2a48881684296d88a7f2107bd29f8457a25))
138
+ * update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
139
+ * year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
140
+
141
+
142
+ ### Dependencies
143
+
144
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.5
145
+ * **@visulima/error:** upgraded to 6.0.0-alpha.5
146
+ * **@visulima/fmt:** upgraded to 2.0.0-alpha.5
147
+ * **@visulima/inspector:** upgraded to 2.0.0-alpha.4
148
+ * **@visulima/redact:** upgraded to 3.0.0-alpha.5
149
+ * **@visulima/string:** upgraded to 3.0.0-alpha.6
150
+
151
+ ## @visulima/pail [4.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.4...@visulima/pail@4.0.0-alpha.5) (2025-12-27)
152
+
153
+ ### Bug Fixes
154
+
155
+ * **pail:** update package files ([7797567](https://github.com/visulima/visulima/commit/779756772379e8044b0dfa35815518450eff5cf6))
156
+
157
+
158
+ ### Dependencies
159
+
160
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.4
161
+ * **@visulima/error:** upgraded to 6.0.0-alpha.3
162
+ * **@visulima/fmt:** upgraded to 2.0.0-alpha.4
163
+ * **@visulima/inspector:** upgraded to 2.0.0-alpha.3
164
+ * **@visulima/redact:** upgraded to 3.0.0-alpha.4
165
+ * **@visulima/string:** upgraded to 3.0.0-alpha.5
166
+
167
+ ## @visulima/pail [4.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.3...@visulima/pail@4.0.0-alpha.4) (2025-12-13)
168
+
169
+ ### Miscellaneous Chores
170
+
171
+ * fixed project.json names and schema path ([964722f](https://github.com/visulima/visulima/commit/964722f691db205c7edb9aa6db29e849a647500b))
172
+
173
+
174
+ ### Dependencies
175
+
176
+ * **@visulima/string:** upgraded to 3.0.0-alpha.4
177
+
178
+ ## @visulima/pail [4.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.2...@visulima/pail@4.0.0-alpha.3) (2025-12-11)
179
+
180
+ ### Bug Fixes
181
+
182
+ * update package OG images across multiple packages ([f08e4dd](https://github.com/visulima/visulima/commit/f08e4dd2b105ccb29c8412020a9c2be36d6c1e9e))
183
+
184
+ ### Miscellaneous Chores
185
+
186
+ * update package dependencies and improve configuration ([4ed22d6](https://github.com/visulima/visulima/commit/4ed22d6511aa8150dcd4ba7b9dccf05dbe2d6adc))
187
+
188
+
189
+ ### Dependencies
190
+
191
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.3
192
+ * **@visulima/error:** upgraded to 6.0.0-alpha.2
193
+ * **@visulima/fmt:** upgraded to 2.0.0-alpha.3
194
+ * **@visulima/inspector:** upgraded to 2.0.0-alpha.2
195
+ * **@visulima/redact:** upgraded to 3.0.0-alpha.3
196
+ * **@visulima/string:** upgraded to 3.0.0-alpha.3
197
+
198
+ ## @visulima/pail [4.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.1...@visulima/pail@4.0.0-alpha.2) (2025-12-08)
199
+
200
+
201
+ ### Dependencies
202
+
203
+ * **@visulima/string:** upgraded to 3.0.0-alpha.2
204
+
1
205
  ## @visulima/pail [4.0.0-alpha.1](https://github.com/visulima/visulima/compare/@visulima/pail@3.2.2...@visulima/pail@4.0.0-alpha.1) (2025-12-07)
2
206
 
3
207
  ### ⚠ BREAKING CHANGES