Skip to content

Commit 46ca052

Browse files
thibaudcolassemantic-release-bot
authored andcommitted
chore(release): v2.4.0 [skip ci]
# [2.4.0](v2.3.0...v2.4.0) (2020-11-20) ### Features * **deps:** proactively declare support for Draft.js v0.12.0 ([382e537](382e537))
1 parent 39ed81e commit 46ca052

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

7+
# [2.4.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.3.0...v2.4.0) (2020-11-20)
8+
9+
### Features
10+
11+
- **deps:** proactively declare support for Draft.js v0.12.0 ([382e537](https://github.com/thibaudcolas/draftjs-filters/commit/382e5370ec45794642c45d4fa7e5ece9abc6f560))
12+
713
# [2.3.0](https://github.com/thibaudcolas/draftjs-filters/compare/v2.2.4...v2.3.0) (2020-01-03)
814

915
### Features

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Removes atomic blocks for which the entity isn't whitelisted.
138138

139139
###### Parameters
140140

141-
- `whitelist` **\$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
141+
- `whitelist` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
142142
- `content` **ContentState**
143143

144144
##### removeInvalidDepthBlocks
@@ -160,7 +160,7 @@ ends up in the text. Other use cases may not be well covered.
160160

161161
###### Parameters
162162

163-
- `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)}>**
163+
- `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)}>**
164164
- `content` **ContentState**
165165

166166
##### limitBlockDepth
@@ -179,7 +179,7 @@ Also sets depth to 0 (for potentially nested list items).
179179

180180
###### Parameters
181181

182-
- `whitelist` **\$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
182+
- `whitelist` **$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
183183
- `content` **ContentState**
184184

185185
##### filterInlineStyles
@@ -188,7 +188,7 @@ Removes all styles not present in the whitelist.
188188

189189
###### Parameters
190190

191-
- `whitelist` **\$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
191+
- `whitelist` **$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
192192
- `content` **ContentState**
193193

194194
##### cloneEntities
@@ -218,7 +218,7 @@ Keeps all entity types (images, links, documents, embeds) that are enabled.
218218

219219
###### Parameters
220220

221-
- `whitelist` **\$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
221+
- `whitelist` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>**
222222
- `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
223223

224224
##### shouldRemoveImageEntity
@@ -237,7 +237,7 @@ Filters entities based on the data they contain.
237237

238238
###### Parameters
239239

240-
- `entityTypes` **\$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), whitelist: {}?}>**
240+
- `entityTypes` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), whitelist: {}?}>**
241241
- `entityType` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
242242
- `data` **{}**
243243

@@ -258,7 +258,7 @@ Replaces the given characters by their equivalent length of spaces, in all block
258258

259259
###### Parameters
260260

261-
- `characters` **\$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
261+
- `characters` **$ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
262262
- `content` **ContentState**
263263

264264
##### applyContentWithSelection

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "draftjs-filters",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"description": "Filter Draft.js content to preserve only the formatting you allow",
55
"author": "Thibaud Colas",
66
"license": "MIT",

0 commit comments

Comments
 (0)