From ba18d31af33756ae6f58201cc7ab48f27abca71e Mon Sep 17 00:00:00 2001 From: Bastien Caudan Date: Sun, 20 Sep 2020 11:14:09 +0200 Subject: [PATCH] prepare changelog --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e3f485f..3807a53a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +# 6.0.0 + +## Feature + +* Use colors/safe [#538](https://github.com/bcaudan/jasmine-spec-reporter/pull/538) + +## Breaking change + +String prototype does not contain color properties anymore, colors must now be applied with the new `theme` component available as a field in [custom display processors](docs/customize-output.md). + +**Before:** +```ts +class MyProcessor extends DisplayProcessor { + public displaySuccessfulSpec(spec: CustomReporterResult, log: string): string { + return "OK ".successful + log; + } +} +``` + +**Now:** +```ts +class MyProcessor extends DisplayProcessor { + public displaySuccessfulSpec(spec: CustomReporterResult, log: string): string { + return this.theme.successful("OK ") + log; + } +} +``` + # 5.0.2 ## Bugfix