Skip to content

Commit

Permalink
Deprecate distinctState filter with warning message. Bump version to
Browse files Browse the repository at this point in the history
beta5.
  • Loading branch information
pl12133 committed Mar 31, 2016
1 parent d6dca65 commit 93f6d03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-undo",
"version": "1.0.0-beta4",
"version": "1.0.0-beta5",
"description": "simple undo/redo functionality for redux state containers",
"main": "lib/index.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ export function isHistory (history) {
}
// /isHistory

// distinctState helper
export function distinctState () {
console.warning('distinctState is deprecated in beta4 and newer. The distinctState behavior is now default, which means only actions resulting in a new state are recorded. See https://github.com/omnidan/redux-undo#filtering-actions for more details.')

This comment has been minimized.

Copy link
@stantoncbradley

stantoncbradley Mar 31, 2016

getting TypeError: console.warning is not a function
should this be console.warn()?

This comment has been minimized.

Copy link
@pl12133

pl12133 Mar 31, 2016

Author Collaborator

Yup, that was an error on my part and a fix will be pushed shortly.

This comment has been minimized.

Copy link
@omnidan

omnidan Mar 31, 2016

Owner

@stantoncbradley thanks for testing/noticing so quickly, should be fine in beta6 😊

This comment has been minimized.

Copy link
@stantoncbradley

stantoncbradley Mar 31, 2016

just in the right place at the right time haha. thanks for the quick fix!

return () => true
}
// /distinctState

// includeAction helper
export function includeAction (rawActions) {
const actions = parseActions(rawActions)
Expand Down

0 comments on commit 93f6d03

Please sign in to comment.