diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cdc5e73..40e6bc4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with [semantic-release](https://github.com/semantic-release/semantic-release). +# [2.5.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.4.0...v2.5.0) (2020-11-21) + +### Features + +- **api:** deprecate whitelist config option, use allowlist instead ([4d48cba](https://github.com/thibaudcolas/draftjs-filters/commit/4d48cba583e21df69cbd86035068deadbe2802c8)) + # [2.4.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.3.0...v2.4.0) (2020-11-20) ### Features diff --git a/README.md b/README.md index 24bc97f5..62722993 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ Filters entities based on the data they contain. ###### Parameters -- `entityTypes` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), allowlist: {}?}>** +- `entityTypes` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), allowlist: {}?, whitelist: {}?}>** - `entityType` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** - `data` **{}** diff --git a/package-lock.json b/package-lock.json index 88185286..ca7d8852 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "draftjs-filters", - "version": "2.4.0", + "version": "2.5.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 74869b44..fa9da73a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "draftjs-filters", - "version": "2.4.0", + "version": "2.5.0", "description": "Filter Draft.js content to preserve only the formatting you allow", "author": "Thibaud Colas", "license": "MIT",