immer-reducer
Advanced tools
Comparing version 0.7.10 to 0.7.11
@@ -77,3 +77,3 @@ import { Draft } from "immer"; | ||
*/ | ||
export declare function composeReducers<State>(...reducers: (Reducer<State | undefined>)[]): Reducer<State>; | ||
export declare function composeReducers<State>(...reducers: Reducer<State | undefined>[]): Reducer<State>; | ||
/** The actual ImmerReducer class */ | ||
@@ -80,0 +80,0 @@ export declare class ImmerReducer<T> { |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._clearKnownClasses = exports.setPrefix = exports.createReducerFunction = exports.createActionCreators = exports.ImmerReducer = exports.composeReducers = exports.isActionFrom = exports.isAction = void 0; | ||
var immer_1 = __importDefault(require("immer")); | ||
@@ -199,7 +200,7 @@ var actionTypePrefix = "IMMER_REDUCER"; | ||
} | ||
// Workaround typing changes in Immer 3.x. This does not actually | ||
return draftState; | ||
// Workaround typing changes in Immer 9.x. This does not actually | ||
// affect the exposed types by immer-reducer itself. | ||
// Also using immer internally with anys like this allow us to | ||
// support multiple versions of immer from 1.4 to 3.x | ||
return draftState; | ||
// support multiple versions of immer. | ||
}); | ||
@@ -206,0 +207,0 @@ }; |
{ | ||
"name": "immer-reducer", | ||
"version": "0.7.10", | ||
"version": "0.7.11", | ||
"description": "", | ||
@@ -32,4 +32,4 @@ "main": "lib/immer-reducer.js", | ||
"@types/redux": "^3.6.0", | ||
"dtslint": "^0.8.0", | ||
"jest": "^24.8.0", | ||
"dtslint": "^4.0.7", | ||
"jest": "^26.6.3", | ||
"prettier": "^1.18.2", | ||
@@ -39,8 +39,8 @@ "react": "^16.8.6", | ||
"redux": "^4.0.1", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "~3.5.2" | ||
"ts-jest": "^26.5.1", | ||
"typescript": "^3.9.9" | ||
}, | ||
"dependencies": { | ||
"immer": "^1.4.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" | ||
"immer": "^1.4.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^8.0.0 || ^9.0.0" | ||
} | ||
} |
@@ -150,6 +150,6 @@ # immer-reducer | ||
const ActionCreators = createActionCreators(ReducerClass); | ||
const reducerFuntion = createReducerFunction(ReducerClass); | ||
const reducerFunction = createReducerFunction(ReducerClass); | ||
function Hello() { | ||
const [state, dispatch] = React.useReducer(reducerFuntion, initialState); | ||
const [state, dispatch] = React.useReducer(reducerFunction, initialState); | ||
@@ -156,0 +156,0 @@ return ( |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29741
310
+ Addedimmer@9.0.21(transitive)
- Removedimmer@5.3.6(transitive)
Updatedimmer@^1.4.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^8.0.0 || ^9.0.0