From: Justin Wind Date: Wed, 19 Jul 2023 19:35:06 +0000 (-0700) Subject: deprecate common.ensureLoggerLevels and no longer use X-Git-Tag: v1.2.10~3 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1e7aa924e0c1081558235e54854f1fdd99940346;p=squeep-api-dingus deprecate common.ensureLoggerLevels and no longer use --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a69b5c..a173576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,37 @@ Releases and notable changes to this project are documented here. ## [Unreleased] +- matched route path stored on ctx is now string, not array +- minor cleanups +- no longer add missing log levels to logger objects, that is a logger problem +- updated devDependencies + +## [v1.2.9] - 2022-09-16 + +### Added + +- updated dependencies + +## [v1.2.8] - 2022-06-10 + +### Added + +- updated devDependencies + +## [v1.2.7] - 2022-05-06 + +### Added + +- updated devDependencies + +## [v1.2.6] - 2022-04-29 + +### Added + +- simplified some logging, other minor refactors +- bodyData can now return a buffer +- updated dependencies + ## [v1.2.5] - 2022-03-12 ### Added @@ -58,7 +89,11 @@ Releases and notable changes to this project are documented here. --- -[Unreleased]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=HEAD;hp=v1.2.5 +[Unreleased]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=HEAD;hp=v1.2.9 +[v1.2.9]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.9;hp=v1.2.8 +[v1.2.8]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.8;hp=v1.2.7 +[v1.2.7]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.7;hp=v1.2.6 +[v1.2.6]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.6;hp=v1.2.5 [v1.2.5]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.5;hp=v1.2.4 [v1.2.4]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.4;hp=v1.2.3 [v1.2.3]: https://git.squeep.com/?p=squeep-api-dingus;a=commitdiff;h=v1.2.3;hp=v1.2.2 diff --git a/lib/common.js b/lib/common.js index 60e0d20..d1abf3e 100644 --- a/lib/common.js +++ b/lib/common.js @@ -289,6 +289,7 @@ const nullLogger = { * Populates any absent logger level functions on a logger object. * @param {Object} logger * @returns {Object} + * @deprecated after v1.2.9 (this is not our responsibility) */ const ensureLoggerLevels = (logger = {}) => { for (const level in nullLogger) { diff --git a/lib/dingus.js b/lib/dingus.js index 943aa2f..f55ad06 100644 --- a/lib/dingus.js +++ b/lib/dingus.js @@ -60,7 +60,6 @@ class Dingus { ]; this.logger = logger; - common.ensureLoggerLevels(this.logger); } diff --git a/test/lib/dingus.js b/test/lib/dingus.js index ab61256..12f40e8 100644 --- a/test/lib/dingus.js +++ b/test/lib/dingus.js @@ -25,7 +25,6 @@ describe('Dingus', function () { it('covers', function () { const d = new Dingus({}, {}); assert(d); - assert('log' in d.logger); }); }); // constructor @@ -1026,4 +1025,4 @@ Content-Type: image/sgi assert(dingus.serveFile.called); }); }); // handlerGetStaticFile -}); \ No newline at end of file +});