From 2bde7150bf1d414416d66d3378c4dc3ce669a05a Mon Sep 17 00:00:00 2001 From: zhouhongxuan Date: Sat, 19 Jun 2021 14:49:58 +0800 Subject: [PATCH] chore: update version and changelog --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- test/api.spec.ts | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d916be3..e8992f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # CHANGELOG +## v0.7.3 + +### Fix + +- highlight wrapper inside another wrapper not get updated when deleting [#80](https://github.com/alienzhou/web-highlighter/pull/80) +- make the className the latest one when wrapping a partial or an overlap node [#82](https://github.com/alienzhou/web-highlighter/pull/82) + +### Improvement + +- better typings for event emitter [#81](https://github.com/alienzhou/web-highlighter/pull/81) +- tsconfig path alias and npm scripts [#84](https://github.com/alienzhou/web-highlighter/pull/84) + ## v0.7.2 ### Fix diff --git a/package.json b/package.json index e87eb91..d08d16b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-highlighter", - "version": "0.7.2", + "version": "0.7.3", "description": "✨A no-runtime dependency lib for text highlighting & persistence on any website ✨🖍️", "main": "dist/web-highlighter.min.js", "types": "dist/index.d.ts", diff --git a/test/api.spec.ts b/test/api.spec.ts index 8ca332d..b438028 100644 --- a/test/api.spec.ts +++ b/test/api.spec.ts @@ -490,7 +490,7 @@ describe('Highlighter API', function () { }); }); - describe('complicated use cases', () => { + describe('changing className by .setOption', () => { it('should get updated after deleting when the highlight wrapper is inside another wrapper', () => { // https://github.com/alienzhou/web-highlighter/pull/80 const defaultClassName = getDefaultOptions().style.className;