UNPKG

nightingale-formatter

Version:
740 lines (280 loc) 21.2 kB
# Changelog All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [18.1.0](https://github.com/christophehurpeau/nightingale/compare/v18.0.0...v18.1.0) (2025-11-18) Version bump for dependency: nightingale ## [18.0.0](https://github.com/christophehurpeau/nightingale/compare/v17.0.1...v18.0.0) (2025-11-15) ### ⚠ BREAKING CHANGES * drop node 20 ### Features * update dependencies Version bump for dependency: nightingale ## [17.0.1](https://github.com/christophehurpeau/nightingale/compare/v17.0.0...v17.0.1) (2025-10-22) Version bump for dependency: nightingale ## [17.0.0](https://github.com/christophehurpeau/nightingale/compare/v16.2.0...v17.0.0) (2025-10-20) Version bump for dependency: nightingale ## [16.2.0](https://github.com/christophehurpeau/nightingale/compare/v16.1.0...v16.2.0) (2025-03-30) Version bump for dependency: nightingale ## [16.1.0](https://github.com/christophehurpeau/nightingale/compare/v16.0.0...v16.1.0) (2025-03-30) Version bump for dependency: nightingale ## [16.0.0](https://github.com/christophehurpeau/nightingale/compare/v15.0.0...v16.0.0) (2025-03-30) ### ⚠ BREAKING CHANGES * drop node 18 ### Features * drop node 18 ([1b11a55](https://github.com/christophehurpeau/nightingale/commit/1b11a55dd24c9435be50519a748316079f554414)) ### Bug Fixes * fix lib exports ([5b562b2](https://github.com/christophehurpeau/nightingale/commit/5b562b245aac1aa86b728a9433f3c9d28c62fe04)) Version bump for dependency: nightingale ## [15.0.0](https://github.com/christophehurpeau/nightingale/compare/v14.2.1...v15.0.0) (2023-12-25) ### ⚠ BREAKING CHANGES * update babel and drop browser modern version ### Features * update babel and drop browser modern version ([5c76abc](https://github.com/christophehurpeau/nightingale/commit/5c76abc8bfb595a617fc4c8b795dae7e674ea664)) Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-types ## [14.2.1](https://github.com/christophehurpeau/nightingale/compare/v14.2.0...v14.2.1) (2023-11-05) Note: no notable changes Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-types ## [14.2.0](https://github.com/christophehurpeau/nightingale/compare/v14.1.0...v14.2.0) (2023-11-04) ### Bug Fixes * **nightingale-formatter:** fix duplicate name and message in error stack ([bf4faf6](https://github.com/christophehurpeau/nightingale/commit/bf4faf655afd80ae0040f8627ad1bff1ff558f90)) Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-types ## [14.1.0](https://github.com/christophehurpeau/nightingale/compare/v14.0.2...v14.1.0) (2023-07-27) **Note:** Version bump only for package nightingale-formatter ## [14.0.2](https://github.com/christophehurpeau/nightingale/compare/v14.0.1...v14.0.2) (2023-06-30) ### Bug Fixes * typo types for typescript exports ([1eb20e4](https://github.com/christophehurpeau/nightingale/commit/1eb20e47ea18a3d015146da4efe58c32df066e97)) ## [14.0.1](https://github.com/christophehurpeau/nightingale/compare/v14.0.0...v14.0.1) (2023-06-30) ### Bug Fixes * add missing type in exports for latest typescript ([8897fd6](https://github.com/christophehurpeau/nightingale/commit/8897fd6fcbd25975482fd1549277b73ed725e53c)) ## [14.0.0](https://github.com/christophehurpeau/nightingale/compare/v13.0.0...v14.0.0) (2023-06-30) ### ⚠ BREAKING CHANGES * **deps:** require node 18 * requires node 18 ### Features * requires node 18 ([4452b11](https://github.com/christophehurpeau/nightingale/commit/4452b116188e58c293be85e462e04922f7ad51f0)) ### Miscellaneous Chores * **deps:** update dependency @pob/root to v8 ([#760](https://github.com/christophehurpeau/nightingale/issues/760)) ([22dc3cc](https://github.com/christophehurpeau/nightingale/commit/22dc3cceabdfd465d04ee36fec8fdac31febab69)) # [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19) ### Code Refactoring * drop node 14 and cjs ([9a8ca06](https://github.com/christophehurpeau/nightingale/commit/9a8ca064449ddc0d69e26543e21c2d522536c50a)) ### Features * build for node 16 ([30ae3e9](https://github.com/christophehurpeau/nightingale/commit/30ae3e9c455dbad793c2f704b9d860069dc80c32)) ### BREAKING CHANGES * dropped node 14 and cjs * drop node 14 ## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05) ### Bug Fixes * cjs build ([2e24ac5](https://github.com/christophehurpeau/nightingale/commit/2e24ac5753ee386c5be9ca56796194ee598f10ff)) ## [12.1.3](https://github.com/christophehurpeau/nightingale/compare/v12.1.2...v12.1.3) (2022-01-15) **Note:** Version bump only for package nightingale-formatter ## [12.1.2](https://github.com/christophehurpeau/nightingale/compare/v12.1.1...v12.1.2) (2022-01-02) ### Bug Fixes * main esm for jest which supports esm but not exports ([98789fa](https://github.com/christophehurpeau/nightingale/commit/98789fa490e723840fccc443584189b6905d871b)) ## [12.1.1](https://github.com/christophehurpeau/nightingale/compare/v12.1.0...v12.1.1) (2022-01-01) ### Bug Fixes * properly configure package type ([2e0cbf5](https://github.com/christophehurpeau/nightingale/commit/2e0cbf555bd3b9fa3c3851025452937f64408aa8)) # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15) **Note:** Version bump only for package nightingale-formatter ## [12.0.1](https://github.com/christophehurpeau/nightingale/compare/v12.0.0...v12.0.1) (2021-12-12) **Note:** Version bump only for package nightingale-formatter # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11) ### Build System * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f)) ### Features * **nightingale-formatter:** remove deprecated styleToHtmlStyle export ([24e7391](https://github.com/christophehurpeau/nightingale/commit/24e73919fe1bdcd746deefab4f07506a6d83f567)) ### BREAKING CHANGES * **nightingale-formatter:** removed deprecated styleToHtmlStyle export * requires node 14 ## [11.7.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27) ### Bug Fixes * build all packages ([dbb4785](https://github.com/christophehurpeau/nightingale/commit/dbb4785cbb8c75942935c4a5935df32fd2e93690)) ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27) ### Bug Fixes * support formatting symbol and bigint ([f4205b0](https://github.com/christophehurpeau/nightingale/commit/f4205b0add9d570e470f93ac525db1adbfacf1db)) ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29) ### Bug Fixes * update pob-babel to bring back webpack 4 support ([4887431](https://github.com/christophehurpeau/nightingale/commit/4887431b3b272496511f879af022638723b9056e)) # [11.7.0](https://github.com/christophehurpeau/nightingale/compare/v11.6.0...v11.7.0) (2021-03-29) **Note:** Version bump only for package nightingale-formatter # [11.6.0](https://github.com/christophehurpeau/nightingale/compare/v11.5.4...v11.6.0) (2021-03-21) ### Features * update dependencies and browserlist config ([81d2340](https://github.com/christophehurpeau/nightingale/commit/81d234069412c746ebc99faed778092790f332ca)) ## [11.5.2](https://github.com/christophehurpeau/nightingale/compare/v11.5.1...v11.5.2) (2021-02-14) **Note:** Version bump only for package nightingale-formatter # [11.3.0](https://github.com/christophehurpeau/nightingale/compare/v11.2.0...v11.3.0) (2021-02-06) **Note:** Version bump only for package nightingale-formatter # [11.2.0](https://github.com/christophehurpeau/nightingale/compare/v11.1.1...v11.2.0) (2021-02-04) ### Bug Fixes * missing "browser" in package.json ([cce81cb](https://github.com/christophehurpeau/nightingale/commit/cce81cb3f8f52f18049f0a2f49944920ee027fad)) ### Features * prefer named exports and deprecate some default exports ([4697828](https://github.com/christophehurpeau/nightingale/commit/4697828a3a22b95a978e90001046337f8efd7d0c)) ## [11.1.1](https://github.com/christophehurpeau/nightingale/compare/v11.1.0...v11.1.1) (2021-01-31) ### Bug Fixes * use currentcolor instead of initial to format html ([53182bc](https://github.com/christophehurpeau/nightingale/commit/53182bc3f2f51335085e290ae605cfbdbb02624a)) # [11.1.0](https://github.com/christophehurpeau/nightingale/compare/v11.0.5...v11.1.0) (2021-01-31) ### Features * **nightingale-formatter:** create dark theme for html ([b0ae0cd](https://github.com/christophehurpeau/nightingale/commit/b0ae0cdc32e702fb2f9d5eb4cc8da93bbec759b2)) ## [11.0.5](https://github.com/christophehurpeau/nightingale/compare/v11.0.4...v11.0.5) (2021-01-18) ### Bug Fixes * update pob-babel for better support ([44119b7](https://github.com/christophehurpeau/nightingale/commit/44119b72437e0572757a118985c7a205cb9d2e0a)) ## [11.0.3](https://github.com/christophehurpeau/nightingale/compare/v11.0.2...v11.0.3) (2021-01-18) ### Bug Fixes * import browser path ([d4469d4](https://github.com/christophehurpeau/nightingale/commit/d4469d400db56a8dc22838ae6308fdd607375566)) ## [11.0.1](https://github.com/christophehurpeau/nightingale/compare/v11.0.0...v11.0.1) (2021-01-18) ### Bug Fixes * bring back support for webpack 4 ([9134da3](https://github.com/christophehurpeau/nightingale/commit/9134da3b85fb46da826c4f59631942373b51f592)) # [11.0.0](https://github.com/christophehurpeau/nightingale/compare/v10.0.1...v11.0.0) (2020-12-12) ### Bug Fixes * add missing def files ([a6c0b82](https://github.com/christophehurpeau/nightingale/commit/a6c0b82277c4f9e31f983b6fd9a307535200fcbd)) * update devdeps and fix lerna config ([79e97dd](https://github.com/christophehurpeau/nightingale/commit/79e97dd8ad0750a2e5871d9fdeee49de1668bf77)) ### Code Refactoring * use yarn 2, requires node 12 ([73a85dd](https://github.com/christophehurpeau/nightingale/commit/73a85ddc37dbfe53b80fd6feea6cbd31874ea771)) ### BREAKING CHANGES * drop support for node 10 ## [10.0.1](https://github.com/christophehurpeau/nightingale/compare/v10.0.0...v10.0.1) (2020-05-23) **Note:** Version bump only for package nightingale-formatter # 10.0.0 (2020-05-23) ### Bug Fixes * colors works on firefox black background or chrome white background ([45d6652](https://github.com/christophehurpeau/nightingale/commit/45d6652)) * eslint errors ([c3feb87](https://github.com/christophehurpeau/nightingale/commit/c3feb87)) * node 4 ([a66b546](https://github.com/christophehurpeau/nightingale/commit/a66b546)) * node 6.10 ([5d48e54](https://github.com/christophehurpeau/nightingale/commit/5d48e54)) * show error with stack ([c03ddc7](https://github.com/christophehurpeau/nightingale/commit/c03ddc7)) * show error with toString instead of stack ([7914652](https://github.com/christophehurpeau/nightingale/commit/7914652)) * support Map, WeakMap, Set, WeakSet ([475ccb9](https://github.com/christophehurpeau/nightingale/commit/475ccb9)) * update dependencies and deprecate Record for LogRecord ([2d0a758](https://github.com/christophehurpeau/nightingale/commit/2d0a758)) ### Code Refactoring * use typescript ([2e465c6](https://github.com/christophehurpeau/nightingale/commit/2e465c6)) ### Features * better display strings: transforms \n into real new line ([884263d](https://github.com/christophehurpeau/nightingale/commit/884263d)) * drop node 6 ([e09773c](https://github.com/christophehurpeau/nightingale/commit/e09773c)) * lerna, rollup ([08f73b6](https://github.com/christophehurpeau/nightingale/commit/08f73b6)) * pob update ([8eb74d9](https://github.com/christophehurpeau/nightingale/commit/8eb74d9)) * pob upgrade ([79af44c](https://github.com/christophehurpeau/nightingale/commit/79af44c)) * update dependencies ([08e82b5](https://github.com/christophehurpeau/nightingale/commit/08e82b5)) * update dependencies ([e2e8ef5](https://github.com/christophehurpeau/nightingale/commit/e2e8ef5)) * update dependencies ([a185796](https://github.com/christophehurpeau/nightingale/commit/a185796)) ### BREAKING CHANGES * requires node 10 * node 6 no longer supported * node 4 is no longer supported * remove deprecated dot support ## [5.2.2](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@5.2.1...nightingale-formatter@5.2.2) (2019-05-01) **Note:** Version bump only for package nightingale-formatter ## [5.2.1](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@5.2.0...nightingale-formatter@5.2.1) (2019-04-05) **Note:** Version bump only for package nightingale-formatter # [5.2.0](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@5.1.0...nightingale-formatter@5.2.0) (2019-04-05) ### Features * update dependencies ([e2e8ef5](https://github.com/christophehurpeau/nightingale/commit/e2e8ef5)) # [5.1.0](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@5.0.1...nightingale-formatter@5.1.0) (2019-02-24) ### Bug Fixes * update dependencies and deprecate Record for LogRecord ([2d0a758](https://github.com/christophehurpeau/nightingale/commit/2d0a758)) ### Features * update dependencies ([a185796](https://github.com/christophehurpeau/nightingale/commit/a185796)) ## [5.0.1](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@5.0.0...nightingale-formatter@5.0.1) (2018-12-03) **Note:** Version bump only for package nightingale-formatter # [5.0.0](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.6...nightingale-formatter@5.0.0) (2018-12-03) ### Features * drop node 6 ([e09773c](https://github.com/christophehurpeau/nightingale/commit/e09773c)) ### BREAKING CHANGES * node 6 no longer supported <a name="4.0.6"></a> ## [4.0.6](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.5...nightingale-formatter@4.0.6) (2018-06-28) **Note:** Version bump only for package nightingale-formatter <a name="4.0.5"></a> ## [4.0.5](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.4...nightingale-formatter@4.0.5) (2018-06-17) ### Bug Fixes * eslint errors ([c3feb87](https://github.com/christophehurpeau/nightingale/commit/c3feb87)) <a name="4.0.4"></a> ## [4.0.4](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.3...nightingale-formatter@4.0.4) (2018-06-17) **Note:** Version bump only for package nightingale-formatter <a name="4.0.3"></a> ## [4.0.3](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.2...nightingale-formatter@4.0.3) (2018-05-26) **Note:** Version bump only for package nightingale-formatter <a name="4.0.2"></a> ## [4.0.2](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.1...nightingale-formatter@4.0.2) (2018-05-26) **Note:** Version bump only for package nightingale-formatter <a name="4.0.1"></a> ## [4.0.1](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@4.0.0...nightingale-formatter@4.0.1) (2018-05-10) **Note:** Version bump only for package nightingale-formatter <a name="4.0.0"></a> # [4.0.0](https://github.com/christophehurpeau/nightingale/compare/nightingale-formatter@3.0.0...nightingale-formatter@4.0.0) (2018-04-21) ### Code Refactoring * use typescript ([2e465c6](https://github.com/christophehurpeau/nightingale/commit/2e465c6)) ### BREAKING CHANGES * node 4 is no longer supported <a name="3.0.0"></a> # 3.0.0 (2018-03-18) ### Bug Fixes * colors works on firefox black background or chrome white background ([45d6652](https://github.com/christophehurpeau/nightingale/commit/45d6652)) * node 4 ([a66b546](https://github.com/christophehurpeau/nightingale/commit/a66b546)) * node 6.10 ([5d48e54](https://github.com/christophehurpeau/nightingale/commit/5d48e54)) * show error with stack ([c03ddc7](https://github.com/christophehurpeau/nightingale/commit/c03ddc7)) * show error with toString instead of stack ([7914652](https://github.com/christophehurpeau/nightingale/commit/7914652)) * support Map, WeakMap, Set, WeakSet ([475ccb9](https://github.com/christophehurpeau/nightingale/commit/475ccb9)) ### Features * better display strings: transforms into real new line ([884263d](https://github.com/christophehurpeau/nightingale/commit/884263d)) * lerna, rollup ([08f73b6](https://github.com/christophehurpeau/nightingale/commit/08f73b6)) * pob upgrade ([79af44c](https://github.com/christophehurpeau/nightingale/commit/79af44c)) ### BREAKING CHANGES * remove deprecated dot support <a name="2.3.0"></a> # [2.3.0](https://github.com/nightingalejs/nightingale-formatter/compare/v2.2.5...v2.3.0) (2017-09-07) ### Features * better display strings: transforms into real new line ([5107c5c](https://github.com/nightingalejs/nightingale-formatter/commit/5107c5c)) <a name="2.2.5"></a> ## [2.2.5](https://github.com/nightingalejs/nightingale-formatter/compare/v2.2.4...v2.2.5) (2017-08-12) ### Bug Fixes * support Map, WeakMap, Set, WeakSet ([807ba52](https://github.com/nightingalejs/nightingale-formatter/commit/807ba52)) <a name="2.2.4"></a> ## [2.2.4](https://github.com/nightingalejs/nightingale-formatter/compare/v2.2.3...v2.2.4) (2017-07-26) ### Bug Fixes * show error with stack ([eceb062](https://github.com/nightingalejs/nightingale-formatter/commit/eceb062)) <a name="2.2.3"></a> ## [2.2.3](https://github.com/nightingalejs/nightingale-formatter/compare/v2.2.2...v2.2.3) (2017-07-26) ### Bug Fixes * show error with toString instead of stack ([2a0c823](https://github.com/nightingalejs/nightingale-formatter/commit/2a0c823)) <a name="2.2.2"></a> ## [2.2.2](https://github.com/nightingalejs/nightingale-formatter/compare/v2.2.1...v2.2.2) (2017-03-21) ### Bug Fixes * node 6.10 ([a488aed](https://github.com/nightingalejs/nightingale-formatter/commit/a488aed)) <a name="2.2.1"></a> ## [2.2.1](https://github.com/nightingalejs/nightingale-formatter/compare/v2.2.0...v2.2.1) (2017-03-21) <a name="2.2.0"></a> # [2.2.0](https://github.com/nightingalejs/nightingale-formatter/compare/v2.1.1...v2.2.0) (2017-03-21) <a name="2.1.1"></a> ## [2.1.1](https://github.com/nightingalejs/nightingale-formatter/compare/v2.1.0...v2.1.1) (2017-03-06) ### Bug Fixes * node 4 ([5ab0e84](https://github.com/nightingalejs/nightingale-formatter/commit/5ab0e84)) <a name="2.1.0"></a> # [2.1.0](https://github.com/nightingalejs/nightingale-formatter/compare/v2.0.2...v2.1.0) (2017-02-28) ### Features * pob upgrade ([9b438a6](https://github.com/nightingalejs/nightingale-formatter/commit/9b438a6)) ### v2.0.2 - [`a336f00`](https://github.com/nightingalejs/nightingale-formatter/commit/a336f00301fcf33bb0f6beedbc22ca2ce2fe9131) fix: colors works on firefox black background or chrome white background (Christophe Hurpeau) ### v2.0.1 ### v2.0.1-beta.1 - [`3086736`](https://github.com/nightingalejs/nightingale-formatter/commit/30867367ad5339f37ed04502d928bef0a5357484) fix(formatObject) fixes for browser-formatter (Christophe Hurpeau) ### v2.0.0 - [`a2cdb66`](https://github.com/nightingalejs/nightingale-formatter/commit/a2cdb66fc5fcaee91b76d675d140626656f70f33) chore(package): komet-karma@^0.2.3 (Christophe Hurpeau) - [`cc1cb0d`](https://github.com/nightingalejs/nightingale-formatter/commit/cc1cb0da61c22df40de71be176ca050e39a261a7) chore(package): pob-release@^2.2.2 (Christophe Hurpeau) - [`28977d8`](https://github.com/nightingalejs/nightingale-formatter/commit/28977d86fb3ae2e0d943a337b08d370de1a75068) refactor: breaking: style to html styl open/close and remove reset (Christophe Hurpeau) ### v1.4.0 - [`fc58a2a`](https://github.com/nightingalejs/nightingale-formatter/commit/fc58a2a226bc286135e0ebdcdae6e83703b17816) refactor: pob update (Christophe Hurpeau) c### v1.3.1 - [`a3c941d`](https://github.com/nightingalejs/nightingale-formatter/commit/a3c941d91fedbeb6fa980360450bd11b8f506de3) increase default maxDepth (Christophe Hurpeau) ### v1.3.0 - [`714bffc`](https://github.com/nightingalejs/nightingale-formatter/commit/714bffca41bedfeb93975237efa19d2dcc881e30) pob, rewrite, handle circular dependencies, tests (Christophe Hurpeau) ### v1.2.2 - [`882342a`](https://github.com/nightingalejs/nightingale-formatter/commit/882342a66de2e6b7839009564135c3c590f79b5c) fix in formatObject when value is undefined (Christophe Hurpeau) ### v1.2.1 - [`72c68ec`](https://github.com/nightingalejs/nightingale-formatter/commit/72c68ecd654b21123a066d4b75b49933a3a3f55b) fix in formatObject when value is undefined (Christophe Hurpeau) ### v1.2.0 - [`58af7d6`](https://github.com/nightingalejs/nightingale-formatter/commit/58af7d61ac518d0f28d26d969d183c465daa6fde) warn is in yellow (Christophe Hurpeau) ### v1.1.0 formatRecordToString