Skip to content

Commit

Permalink
chore(release): v2.2.2 [skip ci]
Browse files Browse the repository at this point in the history
## [2.2.2](v2.2.1...v2.2.2) (2019-01-25)

### Bug Fixes

* **api:** use more precise Flow types for public APIs. Fix [#30](#30) ([f274aaa](f274aaa))
  • Loading branch information
thibaudcolas authored and semantic-release-bot committed Jan 25, 2019
1 parent c3b6e24 commit fc58294
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 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.2.2](https://github.com/thibaudcolas/draftjs-filters/compare/v2.2.1...v2.2.2) (2019-01-25)

### Bug Fixes

- **api:** use more precise Flow types for public APIs. Fix [#30](https://github.com/thibaudcolas/draftjs-filters/issues/30) ([f274aaa](https://github.com/thibaudcolas/draftjs-filters/commit/f274aaa))

## [2.2.1](https://github.com/thibaudcolas/draftjs-filters/compare/v2.2.0...v2.2.1) (2019-01-23)

### Bug Fixes
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Removes atomic blocks for which the entity isn't whitelisted.

###### Parameters

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

##### removeInvalidDepthBlocks
Expand All @@ -146,7 +146,7 @@ ends up in the text. Other use cases may not be well covered.

###### Parameters

- `rules` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<{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 @@ -165,7 +165,7 @@ Also sets depth to 0 (for potentially nested list items).

###### Parameters

- `whitelist` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[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 @@ -174,7 +174,7 @@ Removes all styles not present in the whitelist.

###### Parameters

- `whitelist` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[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 @@ -204,7 +204,7 @@ Keeps all entity types (images, links, documents, embeds) that are enabled.

###### Parameters

- `whitelist` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>**
- `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 @@ -223,9 +223,9 @@ Filters entities based on the data they contain.

###### Parameters

- `entityTypes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>**
- `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` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
- `data` **{}**

##### filterEntityData

Expand All @@ -235,7 +235,7 @@ of unneeded attributes (width, height, etc).

###### Parameters

- `entityTypes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>**
- `entityTypes` **$ReadOnlyArray<{type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), attributes: $ReadOnlyArray<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>}>**
- `content` **ContentState**

##### replaceTextBySpaces
Expand All @@ -244,7 +244,7 @@ Replaces the given characters by their equivalent length of spaces, in all block

###### Parameters

- `characters` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[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.2.1",
"version": "2.2.2",
"description": "Filter Draft.js content to preserve only the formatting you allow",
"author": "Thibaud Colas",
"license": "MIT",
Expand Down

0 comments on commit fc58294

Please sign in to comment.