diff --git a/package.json b/package.json index 23b7f0b..df50446 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/index.js b/src/index.js index 938ffaf..024cf19 100644 --- a/src/index.js +++ b/src/index.js @@ -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.') + return () => true +} +// /distinctState + // includeAction helper export function includeAction (rawActions) { const actions = parseActions(rawActions)