diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b0e145..eadcaad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [1.4.5](https://github.com/nuxt/consola/compare/v1.4.3...v1.4.5) (2018-11-04) + + +### Bug Fixes + +* **v1:** upward compatibility support to >= v2 ([5c64b0b](https://github.com/nuxt/consola/commit/5c64b0b)) +* add global.consola ([558cae5](https://github.com/nuxt/consola/commit/558cae5)) + + + ## [1.4.4](https://github.com/nuxt/consola/compare/v1.4.3...v1.4.4) (2018-10-13) diff --git a/package.json b/package.json index 3a060a72..e8d671fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "consola", - "version": "1.4.4", + "version": "1.4.5", "description": "Elegant Console Logger", "main": "./dist/consola.cjs.js", "module": "./src/index.js", diff --git a/src/consola.js b/src/consola.js index 55f3eda7..205b4ad5 100644 --- a/src/consola.js +++ b/src/consola.js @@ -81,3 +81,11 @@ export default class Consola { return this.withDefaults({ scope }) } } + +// Upward compatibility support to >= v2 +Consola.prototype.addReporter = Consola.prototype.add + +Consola.prototype.removeReporter = Consola.prototype.remove +Consola.prototype.removeReporter = Consola.prototype.clear + +Consola.prototype.withTag = Consola.prototype.withScope