Skip to content

Commit

Permalink
chore(release): v2.4.0 [skip ci]
Browse files Browse the repository at this point in the history
# [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))
  • Loading branch information
thibaudcolas authored and semantic-release-bot committed Nov 20, 2020
1 parent 39ed81e commit 46ca052
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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` **{}**

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 46ca052

Please sign in to comment.