Skip to content

Latest commit

 

History

History
196 lines (118 loc) · 12.5 KB

CHANGELOG.md

File metadata and controls

196 lines (118 loc) · 12.5 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning, enforced with semantic-release.

3.0.1 (2022-06-06)

Bug Fixes

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

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.

2.5.0 (2020-11-21)

Features

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

2.4.0 (2020-11-20)

Features

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

2.3.0 (2020-01-03)

Features

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

2.2.4 (2019-10-11)

Bug Fixes

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

2.2.3 (2019-01-25)

Bug Fixes

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

2.2.2 (2019-01-25)

Bug Fixes

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

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)

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)

2.1.0 (2018-10-26)

Features

  • release: mark package as side-effects-free for Webpack (#25) (38f1aa0)

2.0.1 (2018-09-28)

Bug Fixes

  • release: make sure released package does not contain archive (#22) (c678b03)

2.0.0 (2018-09-28)

Features

  • api: publish package with Flow annotations built in (7a813cc)

BREAKING CHANGES

  • api: The Draft.js filters now come with Flow annotations. For projects that do not use Flow this has no impact. For Flow users, please make sure you correctly type your code so Flow doesn't raise issues because of conflicts with this package's type definitions.

1.0.0 (2018-03-01)

This release is functionally identical to v0.7.0.

The project has reached a high-enough level of stability to be used in production, and breaking changes will now be reflected via major version changes.

0.7.0 (2018-02-09)

Features

  • api: add preserveBlockByText to exposed filters (077e008)
  • filters: add first implementation of preserveBlockByText (ed27ca7)
  • filters: add preserveBlockByText to filterEditorState (0c52d72)
  • filters: add special case to preserveBlockByText for entities (21583de)
  • filters: change atomic block check to convert camera emoji + space (9249033)
  • filters: filterBlockTypes now also resets block depth to 0 (33c337d)
  • filters: remove matched prefix when preserving list items (059bf9e)

0.6.1 (2018-01-26)

Bug Fixes

  • release: replace prepublish script with prepublishOnly (2d5e01f)

0.6.0 (2018-01-26)

Features

  • api: add cloneEntities to the API (bdcd15c)
  • filters: add cloneEntities to filterEditorState (812bb57)
  • filters: add cloneEntity to ensure entity uniqueness. Fix #10 (9bda5ba)

0.5.0 (2018-01-17)

Features

  • filters: add better way to filter/keep based on undefined attr (f836563)

0.4.0 (2018-01-17)

Features

  • api: add ability for allowlist to filter by undefined attribute (a4af845)

0.3.0 (2018-01-15)

Bug Fixes

  • filters: fix bug preventing atomic block text reset (6807077)
  • filters: fix filterEditorState discarding updated state (cec872e)
  • filters: stop preserveAtomicBlocks resetting blocks with text (04d0554)

Features

  • api: add blockEntities opt for preserveAtomicBlocks (a2fc941)
  • api: add enableLineBreak option to filterEditorState (6c334b3)
  • api: change filterEditorState to separate options & input (32a4586)
  • api: change filterEditorState to take object as param, with keys (cbac155)
  • api: entity data filter keeps all data if no allowlist is defined (83199dd)
  • api: expose all filters to package consumers (606f8a0)
  • api: expose new whitespaceCharacters method to the API (9b3057d)
  • api: filter by attr should keep entity if there is no allowlist (514e093)
  • api: refactor all filters to work on ContentState (6c7fbaf)
  • api: refactor entity filters to iterator + callback pattern (1e6d3f2)
  • api: remove enableHorizontalRule - use entities instead (4603a36)
  • api: rename entityTypes option to entities (38ae203)
  • api: rename filterEntityAttributes to filterEntityData (9403ca2)
  • api: replace enableLineBreak with whitespacedCharacters (a0c7745)
  • filters: add filterEntityAttributes to filterEditorState (ab0a30e)
  • filters: add new filterEntityAttributes filter w/ allowlist (745ba09)
  • filters: add new whitespaceCharacters method (6fde9ee)
  • filters: add removeInvalidDepthBlocks method to API (5139451)
  • filters: implement entity filtering by attribute (ae76945)
  • filters: preserve atomic blocks based on image emoji (fba9880)
  • filters: remove atomic blocks instead of making them unstyled (31b7664)
  • filters: remove tabs as part of filterEditorState (9fd0005)
  • filters: start updating filter methods to work on ContentState (e716dd9)
  • filters: update whitespaceCharacters to operate on ContentState (62fef11)

0.2.2 (2018-01-10)

Identical to 0.1.0.

0.1.0 (2018-01-10)

Features

  • add normalize code from Draftail (c2fdc87)
  • add type annotations to current normalize API (7d432c9)
  • refactor normalize API to use separate ES6 exports (030e458)