From 9594f7a3d26833c22d461f9bdf544d5157f05788 Mon Sep 17 00:00:00 2001 From: Stijn de Witt Date: Wed, 27 Dec 2017 15:17:04 +0100 Subject: [PATCH] 2.0.0-beta.2: API improvements * Loggers are functions now. Supports debug-style API * Logger function defaults to level DEBUG * Logger function accepts a level name as first parameter * Added aliases 'verbose' and 'silly' for levels 'log' and 'trace', respectively * Ulog now supports hooks for logger extension and formatters * Ulog should now be a drop-in replacement for [debug](https://npmjs.com/package/debug) New in beta.2: In node version, file descriptor is exposed on console.fd so it can be used in extensions. ## Backward compatible v2 Should be a backward-compatible release. But possibly some (very) old browsers are no longer supported because of the use of Function.prototype.name. Tested on Internet Explorer 11, Edge 41, Opera 49, Chrome 63. Please test before upgrading and report any issues in the [issue tracker](https://github.com/download/ulog/issues). Not tested in Safari because I do not have access to a Mac. Help in testing welcome! --- README.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index db63d00..53acbee 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ulog v2.0.0-beta.1 +# ulog v2.0.0-beta.2 ### Microscopically small universal logging library [![npm](https://img.shields.io/npm/v/ulog.svg)](https://npmjs.com/package/ulog) @@ -19,8 +19,8 @@ Even with these extra features, ulog is still **very** small, weighing in just over 1 kB minified and gzipped. ## Download -* [ulog.umd.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.1/ulog.umd.js) (~3kB, source) -* [ulog.min.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.1/ulog.min.js) (~2kB, minified) +* [ulog.umd.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.2/ulog.umd.js) (~3kB, source) +* [ulog.min.js](https://cdn.rawgit.com/download/ulog/2.0.0-beta.2/ulog.min.js) (~2kB, minified) ## Install ```sh @@ -55,7 +55,7 @@ define(['ulog'], function(ulog){ ### Script tag ```html - + ``` ## Logging methods diff --git a/package.json b/package.json index 86b5a47..cca126c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ulog", - "version": "2.0.0-beta.1", + "version": "2.0.0-beta.2", "description": "Microscopically small universal logging library", "main": "node.js", "unpkg": "ulog.min.js",