From 46ca05282f839e901b14bc7b038ced00592e6cfb Mon Sep 17 00:00:00 2001 From: Thibaud Date: Fri, 20 Nov 2020 19:56:21 +0000 Subject: [PATCH] chore(release): v2.4.0 [skip ci] # [2.4.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.3.0...v2.4.0) (2020-11-20) ### Features * **deps:** proactively declare support for Draft.js v0.12.0 ([382e537](https://github.com/thibaudcolas/draftjs-filters/commit/382e5370ec45794642c45d4fa7e5ece9abc6f560)) --- CHANGELOG.md | 6 ++++++ README.md | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c780408..1441008b 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.4.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.3.0...v2.4.0) (2020-11-20) + +### Features + +- **deps:** proactively declare support for Draft.js v0.12.0 ([382e537](https://github.com/thibaudcolas/draftjs-filters/commit/382e5370ec45794642c45d4fa7e5ece9abc6f560)) + # [2.3.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.2.4...v2.3.0) (2020-01-03) ### Features diff --git a/README.md b/README.md index 45db308b..3e73a094 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Removes atomic blocks for which the entity isn't whitelisted. ###### Parameters -- `whitelist` **\$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** +- `whitelist` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** - `content` **ContentState** ##### removeInvalidDepthBlocks @@ -160,7 +160,7 @@ ends up in the text. Other use cases may not be well covered. ###### Parameters -- `rules` **\$ReadOnlyArray<{test: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), depth: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)}>** +- `rules` **$ReadOnlyArray<{test: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), depth: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)}>** - `content` **ContentState** ##### limitBlockDepth @@ -179,7 +179,7 @@ Also sets depth to 0 (for potentially nested list items). ###### Parameters -- `whitelist` **\$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** +- `whitelist` **$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** - `content` **ContentState** ##### filterInlineStyles @@ -188,7 +188,7 @@ Removes all styles not present in the whitelist. ###### Parameters -- `whitelist` **\$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** +- `whitelist` **$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** - `content` **ContentState** ##### cloneEntities @@ -218,7 +218,7 @@ Keeps all entity types (images, links, documents, embeds) that are enabled. ###### Parameters -- `whitelist` **\$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** +- `whitelist` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** - `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** ##### shouldRemoveImageEntity @@ -237,7 +237,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), whitelist: {}?}>** +- `entityTypes` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), whitelist: {}?}>** - `entityType` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** - `data` **{}** @@ -258,7 +258,7 @@ Replaces the given characters by their equivalent length of spaces, in all block ###### Parameters -- `characters` **\$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** +- `characters` **$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** - `content` **ContentState** ##### applyContentWithSelection diff --git a/package-lock.json b/package-lock.json index a9f88c3f..7db7d351 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "draftjs-filters", - "version": "2.3.0", + "version": "2.4.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index eb98e86d..dff7a8f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "draftjs-filters", - "version": "2.3.0", + "version": "2.4.0", "description": "Filter Draft.js content to preserve only the formatting you allow", "author": "Thibaud Colas", "license": "MIT",