Skip to content

Commit

Permalink
chore(release): v2.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# [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
thibaudcolas authored and semantic-release-bot committed Nov 19, 2020
1 parent 3703b2f commit b969699
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ 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.0.0](https://github.com/thibaudcolas/draftjs-conductor/compare/v1.2.0...v2.0.0) (2020-11-19)

### Features

- **api:** replace list nesting APIs with a single getListNestingStyles ([3703b2f](https://github.com/thibaudcolas/draftjs-conductor/commit/3703b2fae1a5e83946041f72b107f58f3b59038b))
- **deps:** proactively declare support with Draft.js v0.12.0 ([586b385](https://github.com/thibaudcolas/draftjs-conductor/commit/586b38511fa6ca7a32a16d16340640b3d9fc60fd))

### 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.

# [1.2.0](https://github.com/thibaudcolas/draftjs-conductor/compare/v1.1.0...v1.2.0) (2020-11-19)

### Features
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-conductor",
"version": "1.2.0",
"version": "2.0.0",
"description": "📝✨ Little Draft.js helpers to make rich text editors “just work”",
"author": "Thibaud Colas",
"license": "MIT",
Expand Down

0 comments on commit b969699

Please sign in to comment.