Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [2.0.0](v1.2.0...v2.0.0) (2020-11-19) ### Features * **api:** replace list nesting APIs with a single getListNestingStyles ([3703b2f](3703b2f)) * **deps:** proactively declare support with Draft.js v0.12.0 ([586b385](586b385)) ### BREAKING CHANGES * **api:** The `<ListNestingStyles max={6} />` component has been removed, and the `generateListNestingStyles` method is now deprecated and will be removed in a future release. Both are replaced with a `getListNestingStyles` method, which works exactly the same as `generateListNestingStyles`, but with a different parameter order, and with default values: ```js export const getListNestingStyles = ( maxDepth: number, minDepth: number = DRAFT_DEFAULT_MAX_DEPTH + 1, selectorPrefix: string = DRAFT_DEFAULT_DEPTH_CLASS, ) => { return generateListNestingStyles(selectorPrefix, minDepth, maxDepth); } ``` This small breaking change allows us to remove this package’s peerDependency on React, making it easier to upgrade to React 17, and other versions in the future.
- Loading branch information