Skip to content

Commit 93f6d03

Browse files
committed
Deprecate distinctState filter with warning message. Bump version to
beta5.
1 parent d6dca65 commit 93f6d03

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-undo",
3-
"version": "1.0.0-beta4",
3+
"version": "1.0.0-beta5",
44
"description": "simple undo/redo functionality for redux state containers",
55
"main": "lib/index.js",
66
"scripts": {

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,13 @@ export function isHistory (history) {
310310
}
311311
// /isHistory
312312

313+
// distinctState helper
314+
export function distinctState () {
315+
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.')
316+
return () => true
317+
}
318+
// /distinctState
319+
313320
// includeAction helper
314321
export function includeAction (rawActions) {
315322
const actions = parseActions(rawActions)

0 commit comments

Comments
 (0)