@visulima/pail 4.0.0-alpha.18 → 4.0.0-alpha.19

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,3 +1,33 @@
1
+ ## @visulima/pail [4.0.0-alpha.19](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.18...@visulima/pail@4.0.0-alpha.19) (2026-05-29)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **pail:** create rotating-file-stream factory in immediate mode ([a72ac70](https://github.com/visulima/visulima/commit/a72ac70cfd6df3e738568f6479031265ebae95af))
6
+
7
+ ### Tests
8
+
9
+ * **pail:** cover browser logger scope, timers, groups, raw, and reporter paths ([7b1ba52](https://github.com/visulima/visulima/commit/7b1ba52e5c14bfd638870eac668e66f6015560e3))
10
+ * **pail:** cover browser pretty reporter console and DOM formatting paths ([f8c1742](https://github.com/visulima/visulima/commit/f8c17424e90a80aa1a51393cc2740c8a4e404bb2))
11
+ * **pail:** cover browser wrapConsole rewrap, processless exception, and throttle resolve ([b28e8fa](https://github.com/visulima/visulima/commit/b28e8fa3d7040d170a92d80435ea87df68ddaff6))
12
+ * **pail:** cover http reporter data/rest payload, force-send, and batch errors ([d00c4cc](https://github.com/visulima/visulima/commit/d00c4cc85e091fbcd54477e6299b1db2e68842a0))
13
+ * **pail:** cover http reporter error and batch edge paths ([fceb9f5](https://github.com/visulima/visulima/commit/fceb9f5daa72d922e2167ed462cbc98c73783726))
14
+ * **pail:** cover middleware fallbacks, storage throw, and reporter edge branches ([25cc807](https://github.com/visulima/visulima/commit/25cc807bc4f97f93a4e3316ffbb2bf2caa75120f))
15
+ * **pail:** cover middleware route glob patterns for mid and trailing ** ([9b5da54](https://github.com/visulima/visulima/commit/9b5da54e40fbb560e7f2590aa947333cfc5376b2))
16
+ * **pail:** cover next and elysia middleware exclude/include and emit guards ([c75e359](https://github.com/visulima/visulima/commit/c75e359c61c81e82fe770d355f9097bc48c93341))
17
+ * **pail:** cover object-tree option validation and safe stream handler ([3efeda2](https://github.com/visulima/visulima/commit/3efeda2b1137edb5c2715f670f4237cb4f17b1bc))
18
+ * **pail:** cover object-tree sort fallback branch ([6e7c68f](https://github.com/visulima/visulima/commit/6e7c68f8e131a0aef198788f07f11d902e26179d))
19
+ * **pail:** cover pretty browser date, badge, message, and context branches ([a05a7ba](https://github.com/visulima/visulima/commit/a05a7baafd981143b46c42df017ae560e6f93e9c))
20
+ * **pail:** cover pretty reporter interactive, context, error, and caller paths ([8fdd0cc](https://github.com/visulima/visulima/commit/8fdd0cce3b6f6277127009f24a696f3aeecbd704))
21
+ * **pail:** cover pretty server group, nameless file, and empty message ([0552536](https://github.com/visulima/visulima/commit/0552536137b80a94af8c4e8def14499a3b2a7385))
22
+ * **pail:** cover reporter utils, raw object/interactive paths, and json context ([f7e228c](https://github.com/visulima/visulima/commit/f7e228cefaa0b17e4b114779a7286dc1b9da3bee))
23
+ * **pail:** cover retry throws without onError for client and retryable errors ([776ab80](https://github.com/visulima/visulima/commit/776ab80c1c5d7c962329b46d0fca8678d4417474))
24
+ * **pail:** cover server child overrides and stream wrap ([2e30e6f](https://github.com/visulima/visulima/commit/2e30e6f8190873ef9e794d1ad2af5230a054ef6e))
25
+ * **pail:** cover server child scope, wrap/clear, and reporter extension paths ([c4abf3f](https://github.com/visulima/visulima/commit/c4abf3fc65265a9ba9d372922557d914f13ff0f8))
26
+ * **pail:** cover server/browser entry points and default log level resolution ([c1c34f6](https://github.com/visulima/visulima/commit/c1c34f66f5c29b52d46471d858cc6d0f75bb9384))
27
+ * **pail:** cover simple reporter and message formatter ([31d7d1e](https://github.com/visulima/visulima/commit/31d7d1e58406445093266ce89b1fb187da71ef92))
28
+ * **pail:** cover simple reporter interactive, context, error, and caller paths ([d75bd5f](https://github.com/visulima/visulima/commit/d75bd5fcae40e5a0c072871c2061cc034c608166))
29
+ * **pail:** cover wide-event duration seconds and stackless error ([56cf694](https://github.com/visulima/visulima/commit/56cf694a9011c40263d39a451f53b6940883807e))
30
+
1
31
  ## @visulima/pail [4.0.0-alpha.18](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.17...@visulima/pail@4.0.0-alpha.18) (2026-05-27)
2
32
 
3
33
  ### Bug Fixes
@@ -1,2 +1,2 @@
1
- var h=Object.defineProperty;var s=(e,t)=>h(e,"name",{value:t,configurable:!0});import{AbstractJsonReporter as n}from"../../packem_shared/AbstractJsonReporter-PVC4ONf2.js";var o=Object.defineProperty,c=s((e,t)=>o(e,"name",{value:t,configurable:!0}),"e");class l{static{s(this,"n")}static{c(this,"SafeStreamHandler")}#t=!0;#e;#r;constructor(t,r){this.#e=t,this.#r=r}write(t){this.writeStream(t)}end(...t){this.#e.end(...t)}get isReady(){return this.#t}writeStream(t){if(!this.#t){console.warn(`Stream busy: ${this.#r}. Write will be dropped: "${t}"`);return}this.#t=!1,this.#e.on("error",r=>{throw r}),this.#e.on("drain",()=>{this.#t=!0}),this.#e.on("finish",()=>{this.#t=!0}),this.#t=this.#e.write(t,()=>{})}}var u=Object.defineProperty,m=s((e,t)=>u(e,"name",{value:t,configurable:!0}),"r$1");class d{static{s(this,"o")}static{m(this,"RotatingFileStream")}#t;#e;#r;#s;#i;constructor(t,r=!1,i={}){if(this.#t=t,this.#e=r,this.#s=i,!this.#e){try{this.#i=require("rotating-file-stream").createStream}catch{throw new Error("The 'rotating-file-stream' package is missing. Make sure to install the 'rotating-file-stream' package.")}this.#r=this.#i(this.#t,i)}}write(t){let r=this.#r;this.#e&&(r=this.#i(this.#t,this.#s));const i=new l(r,this.#t);i.write(t),this.#e&&i.end()}end(){this.#r!==void 0&&this.#r.end()}}var f=Object.defineProperty,p=s((e,t)=>f(e,"name",{value:t,configurable:!0}),"r");class v extends n{static{s(this,"JsonFileReporter")}static{p(this,"JsonFileReporter")}stream;constructor(t){super();const{filePath:r,writeImmediately:i=!1,...a}=t;this.stream=new d(r,i,{compress:"gzip",interval:"1d",size:"10M",...a})}_log(t){this.stream.write(`${t}
1
+ var h=Object.defineProperty;var s=(e,t)=>h(e,"name",{value:t,configurable:!0});import{AbstractJsonReporter as n}from"../../packem_shared/AbstractJsonReporter-PVC4ONf2.js";var o=Object.defineProperty,c=s((e,t)=>o(e,"name",{value:t,configurable:!0}),"e");class l{static{s(this,"n")}static{c(this,"SafeStreamHandler")}#t=!0;#e;#r;constructor(t,r){this.#e=t,this.#r=r}write(t){this.writeStream(t)}end(...t){this.#e.end(...t)}get isReady(){return this.#t}writeStream(t){if(!this.#t){console.warn(`Stream busy: ${this.#r}. Write will be dropped: "${t}"`);return}this.#t=!1,this.#e.on("error",r=>{throw r}),this.#e.on("drain",()=>{this.#t=!0}),this.#e.on("finish",()=>{this.#t=!0}),this.#t=this.#e.write(t,()=>{})}}var u=Object.defineProperty,m=s((e,t)=>u(e,"name",{value:t,configurable:!0}),"r$1");class d{static{s(this,"o")}static{m(this,"RotatingFileStream")}#t;#e;#r;#s;#i;constructor(t,r=!1,i={}){this.#t=t,this.#e=r,this.#s=i;try{this.#i=require("rotating-file-stream").createStream}catch{throw new Error("The 'rotating-file-stream' package is missing. Make sure to install the 'rotating-file-stream' package.")}this.#e||(this.#r=this.#i(this.#t,i))}write(t){let r=this.#r;this.#e&&(r=this.#i(this.#t,this.#s));const i=new l(r,this.#t);i.write(t),this.#e&&i.end()}end(){this.#r!==void 0&&this.#r.end()}}var f=Object.defineProperty,p=s((e,t)=>f(e,"name",{value:t,configurable:!0}),"r");class v extends n{static{s(this,"JsonFileReporter")}static{p(this,"JsonFileReporter")}stream;constructor(t){super();const{filePath:r,writeImmediately:i=!1,...a}=t;this.stream=new d(r,i,{compress:"gzip",interval:"1d",size:"10M",...a})}_log(t){this.stream.write(`${t}
2
2
  `)}}export{v as JsonFileReporter};
@@ -1,7 +1,40 @@
1
- import { RenderErrorOptions } from '@visulima/error/error';
2
1
  import { L as LiteralUnion, D as DefaultLogTypes, c as LoggerTypesConfig, R as ReadonlyMeta, f as LoggerTypesAwareReporter, E as ExtendedRfc5424LogLevels, I as InteractiveStreamReporter } from "../../packem_shared/types.d-BeLumqgD.js";
3
2
  import { InteractiveManager } from '@visulima/interactive-manager';
4
3
  import '@visulima/colorize';
4
+ type ColorizeMethod = (value: string) => string;
5
+ type CodeFrameOptions = {
6
+ color?: {
7
+ gutter?: ColorizeMethod;
8
+ marker?: ColorizeMethod;
9
+ message?: ColorizeMethod;
10
+ };
11
+ linesAbove?: number;
12
+ linesBelow?: number;
13
+ message?: string;
14
+ prefix?: string;
15
+ showGutter?: boolean;
16
+ showLineNumbers?: boolean;
17
+ tabWidth?: number | false;
18
+ };
19
+ type Options$1 = Omit<CodeFrameOptions, "message | prefix"> & {
20
+ color: CodeFrameOptions["color"] & {
21
+ fileLine: ColorizeMethod;
22
+ hint: ColorizeMethod;
23
+ method: ColorizeMethod;
24
+ title: ColorizeMethod;
25
+ };
26
+ cwd: string;
27
+ displayShortPath: boolean;
28
+ filterStacktrace: ((line: string) => boolean) | undefined;
29
+ framesMaxLimit: number;
30
+ hideErrorCauseCodeView: boolean;
31
+ hideErrorCodeView: boolean;
32
+ hideErrorErrorsCodeView: boolean;
33
+ hideErrorTitle: boolean;
34
+ hideMessage: boolean;
35
+ indentation: number | " ";
36
+ prefix: string;
37
+ };
5
38
  interface Options {
6
39
  breakLength: number;
7
40
  customInspect: boolean;
@@ -89,7 +122,7 @@ type PrettyStyleOptions = {
89
122
  */
90
123
  type PrettyReporterOptions = PrettyStyleOptions & {
91
124
  /** Error rendering options */
92
- error: Partial<Omit<RenderErrorOptions, "color" | "prefix" | "indentation">>;
125
+ error: Partial<Omit<Options$1, "color" | "prefix" | "indentation">>;
93
126
  /** Object inspection options */
94
127
  inspect: Partial<Options>;
95
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/pail",
3
- "version": "4.0.0-alpha.18",
3
+ "version": "4.0.0-alpha.19",
4
4
  "description": "Highly configurable Logger for Node.js, Edge and Browser.",
5
5
  "keywords": [
6
6
  "anolilab",