Draftjs Filters Versions Save

Filter Draft.js content to preserve only the formatting you allow

v3.0.1

1 year ago

3.0.1 (2022-06-06)

Bug Fixes

  • package: make sure to include .d.ts files in published package (0f77134)

v3.0.0

1 year ago

3.0.0 (2022-06-06)

Features

  • api: convert filters API to TypeScript (1dfbf00)
  • filters: add opt-in condenseBlocks filter to support single-line copy-paste (82778c2)
  • support: remove support for legacy browsers (501901a)

BREAKING CHANGES

  • support: The package no longer supports IE11 and other legacy browsers.

Support can still be achieved by transpiling to ES5 syntax, and including needed polyfills.

  • api: The filters are now written in TypeScript.

Flow types are no longer available, and TypeScript types are built-in.

v2.5.0

3 years ago

2.5.0 (2020-11-21)

Features

  • api: deprecate whitelist config option, use allowlist instead (4d48cba)

v2.4.0

3 years ago

2.4.0 (2020-11-20)

Features

  • deps: proactively declare support for Draft.js v0.12.0 (382e537)

v2.3.0

4 years ago

2.3.0 (2020-01-03)

Features

  • api: add blockTextRules parameter to options. Fix #65 (#127) (2850d72)

v2.2.4

4 years ago

2.2.4 (2019-10-11)

Bug Fixes

  • deps: allow draft-js ^0.11.0 as a peer dependency (#78) (81ae721)

v2.2.3

5 years ago

2.2.3 (2019-01-25)

Bug Fixes

  • api: allow entities to only provide a type attr in Flow types (f4c918c)

v2.2.2

5 years ago

2.2.2 (2019-01-25)

Bug Fixes

  • api: use more precise Flow types for public APIs. Fix #30 (f274aaa)

v2.2.1

5 years ago

2.2.1 (2019-01-23)

Bug Fixes

  • api: auto-generate documentation using flow types. Fix #19 (#26) (a2da323)
  • api: auto-update API docs in README (aa40707)

v2.2.0

5 years ago

2.2.0 (2019-01-22)

Bug Fixes

  • filters: handle removal of all blocks, inserting one unstyled (652750f)
  • filters: move selection after filtering. Fix #27 (df3b8a6)

Features

  • api: expose applyContentWithSelection in the package API (25d1983)