@procore-canary/redux-modules
Advanced tools
Comparing version 2.0.1-canary.680.f5fb8ab.0 to 2.0.1-canary.683.5cd5b63.0
@@ -0,2 +1,5 @@ | ||
/** | ||
* @deprecated | ||
*/ | ||
export default function connectModule(...args: any[]): any; | ||
//# sourceMappingURL=connectModule.d.ts.map |
@@ -24,3 +24,7 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
function connectModule(...args) { | ||
console.warn(`WARNING! Obsolete function called. Function connectModule has been deprecated with no replacement.`); | ||
if (args.length === 1) { | ||
@@ -27,0 +31,0 @@ const [module] = args; |
@@ -10,2 +10,5 @@ interface CreateModuleOptions { | ||
} | ||
/** | ||
* @deprecated Function createModule has been deprecated, please use the new createSlice function instead! | ||
*/ | ||
export default function createModule({ composes, initialState, middleware: moduleMiddleware, name, reducerEnhancer, selector, transformations, }: CreateModuleOptions): { | ||
@@ -12,0 +15,0 @@ actions: { |
@@ -35,3 +35,7 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated Function createModule has been deprecated, please use the new createSlice function instead! | ||
*/ | ||
function createModule({ composes = [], initialState, middleware: moduleMiddleware = [], name, reducerEnhancer, selector, transformations, }) { | ||
console.warn(`WARNING! Obsolete function called. Function createModule has been deprecated, please use the new createSlice function instead!`); | ||
const parsedTransformations = lodash_1.map(transformations, parseTransformation); | ||
@@ -38,0 +42,0 @@ const actions = {}; |
export { default as createModule } from "./createModule"; | ||
export { default as createSlice } from "./createSlice"; | ||
export { default as connectModule } from "./connectModule"; | ||
export { default as ModuleProvider } from "./ModuleProvider"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,4 @@ "use strict"; | ||
Object.defineProperty(exports, "createModule", { enumerable: true, get: function () { return createModule_1.default; } }); | ||
var createSlice_1 = require("./createSlice"); | ||
Object.defineProperty(exports, "createSlice", { enumerable: true, get: function () { return createSlice_1.default; } }); | ||
var connectModule_1 = require("./connectModule"); | ||
@@ -7,0 +9,0 @@ Object.defineProperty(exports, "connectModule", { enumerable: true, get: function () { return connectModule_1.default; } }); |
@@ -11,2 +11,5 @@ import { Component } from "react"; | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
export default class ModuleProvider<ReduxState> extends Component<ModuleProviderProps<ReduxState>> { | ||
@@ -13,0 +16,0 @@ static propTypes: { |
@@ -9,4 +9,8 @@ "use strict"; | ||
const createRegisterModule_1 = __importDefault(require("./createRegisterModule")); | ||
/** | ||
* @deprecated | ||
*/ | ||
class ModuleProvider extends react_1.Component { | ||
constructor(props) { | ||
console.warn(`WARNING! Obsolete component called. Component 'ModuleProvider has been deprecated with no replacement`); | ||
super(props); | ||
@@ -13,0 +17,0 @@ this.store = props.store; |
{ | ||
"name": "@procore-canary/redux-modules", | ||
"version": "2.0.1-canary.680.f5fb8ab.0", | ||
"version": "2.0.1-canary.683.5cd5b63.0", | ||
"description": "A library for defining clear, boilerplate free Redux reducers.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86618
1043