@ngrx/store
Advanced tools
Comparing version 15.4.0 to 16.0.0-beta.0
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -45,3 +45,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -65,3 +65,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -49,3 +49,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var schematics_core_1 = require("../../schematics-core"); | ||
@@ -7,3 +7,3 @@ function default_1() { | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
@@ -31,3 +31,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -54,3 +54,3 @@ var core_1 = require("@angular-devkit/core"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
function findMetaReducersImportStatements(sourceFile, createChange, logger) { | ||
@@ -57,0 +57,0 @@ var canRunSchematics = false; |
@@ -27,3 +27,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -64,3 +64,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
function removeUsages(sourceFile, tree, ngrxStoreFreezeIsUsed) { | ||
@@ -67,0 +67,0 @@ if (sourceFile.fileName.endsWith('.spec.ts') || |
@@ -33,4 +33,9 @@ { | ||
"factory": "./15_2_0/index" | ||
}, | ||
"ngrx-store-migration-16-0-0-beta": { | ||
"description": "The road to v16.0-beta", | ||
"version": "16.0.0-beta", | ||
"factory": "./16_0_0-beta/index" | ||
} | ||
} | ||
} |
{ | ||
"name": "@ngrx/store", | ||
"version": "15.4.0", | ||
"version": "16.0.0-beta.0", | ||
"description": "RxJS powered Redux for Angular apps", | ||
@@ -24,3 +24,3 @@ "repository": { | ||
"peerDependencies": { | ||
"@angular/core": "^15.0.0", | ||
"@angular/core": "^16.0.0-next.0", | ||
"rxjs": "^6.5.3 || ^7.5.0" | ||
@@ -48,7 +48,3 @@ }, | ||
}, | ||
"module": "fesm2015/ngrx-store.mjs", | ||
"es2020": "fesm2020/ngrx-store.mjs", | ||
"esm2020": "esm2020/ngrx-store.mjs", | ||
"fesm2020": "fesm2020/ngrx-store.mjs", | ||
"fesm2015": "fesm2015/ngrx-store.mjs", | ||
"module": "fesm2022/ngrx-store.mjs", | ||
"typings": "index.d.ts", | ||
@@ -61,17 +57,13 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/ngrx-store.mjs", | ||
"es2020": "./fesm2020/ngrx-store.mjs", | ||
"es2015": "./fesm2015/ngrx-store.mjs", | ||
"node": "./fesm2015/ngrx-store.mjs", | ||
"default": "./fesm2020/ngrx-store.mjs" | ||
"esm2022": "./esm2022/ngrx-store.mjs", | ||
"esm": "./esm2022/ngrx-store.mjs", | ||
"default": "./fesm2022/ngrx-store.mjs" | ||
}, | ||
"./testing": { | ||
"types": "./testing/index.d.ts", | ||
"esm2020": "./esm2020/testing/ngrx-store-testing.mjs", | ||
"es2020": "./fesm2020/ngrx-store-testing.mjs", | ||
"es2015": "./fesm2015/ngrx-store-testing.mjs", | ||
"node": "./fesm2015/ngrx-store-testing.mjs", | ||
"default": "./fesm2020/ngrx-store-testing.mjs" | ||
"esm2022": "./esm2022/testing/ngrx-store-testing.mjs", | ||
"esm": "./esm2022/testing/ngrx-store-testing.mjs", | ||
"default": "./fesm2022/ngrx-store-testing.mjs" | ||
} | ||
} | ||
} |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitTemplates = exports.visitNgModules = exports.visitDecorator = exports.visitComponents = exports.visitNgModuleExports = exports.visitNgModuleImports = exports.visitTSSourceFiles = exports.platformVersion = exports.addPackageToPackageJson = exports.parseName = exports.updatePackage = exports.stringUtils = exports.isLib = exports.getProject = exports.getProjectPath = exports.getPrefix = exports.omit = exports.addReducerToActionReducerMap = exports.addReducerImportToNgModule = exports.addReducerToStateInterface = exports.addReducerToState = exports.findPropertyInAstObject = exports.buildRelativePath = exports.findModuleFromOptions = exports.findModule = exports.findComponentFromOptions = exports.getWorkspacePath = exports.getWorkspace = exports.commitChanges = exports.createChangeRecorder = exports.createReplaceChange = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = exports.containsProperty = exports.replaceImport = exports.addProviderToModule = exports.addProviderToComponent = exports.addImportToModule = exports.addExportToModule = exports.addDeclarationToModule = exports.addBootstrapToModule = exports.insertImport = exports.insertAfterLastOccurrence = exports.getContentOfKeyLiteral = exports.getDecoratorMetadata = exports.getSourceNodes = exports.findNodes = void 0; | ||
var strings_1 = require("./utility/strings"); | ||
var ast_utils_1 = require("./utility/ast-utils"); | ||
__createBinding(exports, ast_utils_1, "findNodes"); | ||
__createBinding(exports, ast_utils_1, "getSourceNodes"); | ||
__createBinding(exports, ast_utils_1, "getDecoratorMetadata"); | ||
__createBinding(exports, ast_utils_1, "getContentOfKeyLiteral"); | ||
__createBinding(exports, ast_utils_1, "insertAfterLastOccurrence"); | ||
__createBinding(exports, ast_utils_1, "insertImport"); | ||
__createBinding(exports, ast_utils_1, "addBootstrapToModule"); | ||
__createBinding(exports, ast_utils_1, "addDeclarationToModule"); | ||
__createBinding(exports, ast_utils_1, "addExportToModule"); | ||
__createBinding(exports, ast_utils_1, "addImportToModule"); | ||
__createBinding(exports, ast_utils_1, "addProviderToComponent"); | ||
__createBinding(exports, ast_utils_1, "addProviderToModule"); | ||
__createBinding(exports, ast_utils_1, "replaceImport"); | ||
__createBinding(exports, ast_utils_1, "containsProperty"); | ||
Object.defineProperty(exports, "findNodes", { enumerable: true, get: function () { return ast_utils_1.findNodes; } }); | ||
Object.defineProperty(exports, "getSourceNodes", { enumerable: true, get: function () { return ast_utils_1.getSourceNodes; } }); | ||
Object.defineProperty(exports, "getDecoratorMetadata", { enumerable: true, get: function () { return ast_utils_1.getDecoratorMetadata; } }); | ||
Object.defineProperty(exports, "getContentOfKeyLiteral", { enumerable: true, get: function () { return ast_utils_1.getContentOfKeyLiteral; } }); | ||
Object.defineProperty(exports, "insertAfterLastOccurrence", { enumerable: true, get: function () { return ast_utils_1.insertAfterLastOccurrence; } }); | ||
Object.defineProperty(exports, "insertImport", { enumerable: true, get: function () { return ast_utils_1.insertImport; } }); | ||
Object.defineProperty(exports, "addBootstrapToModule", { enumerable: true, get: function () { return ast_utils_1.addBootstrapToModule; } }); | ||
Object.defineProperty(exports, "addDeclarationToModule", { enumerable: true, get: function () { return ast_utils_1.addDeclarationToModule; } }); | ||
Object.defineProperty(exports, "addExportToModule", { enumerable: true, get: function () { return ast_utils_1.addExportToModule; } }); | ||
Object.defineProperty(exports, "addImportToModule", { enumerable: true, get: function () { return ast_utils_1.addImportToModule; } }); | ||
Object.defineProperty(exports, "addProviderToComponent", { enumerable: true, get: function () { return ast_utils_1.addProviderToComponent; } }); | ||
Object.defineProperty(exports, "addProviderToModule", { enumerable: true, get: function () { return ast_utils_1.addProviderToModule; } }); | ||
Object.defineProperty(exports, "replaceImport", { enumerable: true, get: function () { return ast_utils_1.replaceImport; } }); | ||
Object.defineProperty(exports, "containsProperty", { enumerable: true, get: function () { return ast_utils_1.containsProperty; } }); | ||
var change_1 = require("./utility/change"); | ||
__createBinding(exports, change_1, "NoopChange"); | ||
__createBinding(exports, change_1, "InsertChange"); | ||
__createBinding(exports, change_1, "RemoveChange"); | ||
__createBinding(exports, change_1, "ReplaceChange"); | ||
__createBinding(exports, change_1, "createReplaceChange"); | ||
__createBinding(exports, change_1, "createChangeRecorder"); | ||
__createBinding(exports, change_1, "commitChanges"); | ||
Object.defineProperty(exports, "NoopChange", { enumerable: true, get: function () { return change_1.NoopChange; } }); | ||
Object.defineProperty(exports, "InsertChange", { enumerable: true, get: function () { return change_1.InsertChange; } }); | ||
Object.defineProperty(exports, "RemoveChange", { enumerable: true, get: function () { return change_1.RemoveChange; } }); | ||
Object.defineProperty(exports, "ReplaceChange", { enumerable: true, get: function () { return change_1.ReplaceChange; } }); | ||
Object.defineProperty(exports, "createReplaceChange", { enumerable: true, get: function () { return change_1.createReplaceChange; } }); | ||
Object.defineProperty(exports, "createChangeRecorder", { enumerable: true, get: function () { return change_1.createChangeRecorder; } }); | ||
Object.defineProperty(exports, "commitChanges", { enumerable: true, get: function () { return change_1.commitChanges; } }); | ||
var config_1 = require("./utility/config"); | ||
__createBinding(exports, config_1, "getWorkspace"); | ||
__createBinding(exports, config_1, "getWorkspacePath"); | ||
Object.defineProperty(exports, "getWorkspace", { enumerable: true, get: function () { return config_1.getWorkspace; } }); | ||
Object.defineProperty(exports, "getWorkspacePath", { enumerable: true, get: function () { return config_1.getWorkspacePath; } }); | ||
var find_component_1 = require("./utility/find-component"); | ||
__createBinding(exports, find_component_1, "findComponentFromOptions"); | ||
Object.defineProperty(exports, "findComponentFromOptions", { enumerable: true, get: function () { return find_component_1.findComponentFromOptions; } }); | ||
var find_module_1 = require("./utility/find-module"); | ||
__createBinding(exports, find_module_1, "findModule"); | ||
__createBinding(exports, find_module_1, "findModuleFromOptions"); | ||
__createBinding(exports, find_module_1, "buildRelativePath"); | ||
Object.defineProperty(exports, "findModule", { enumerable: true, get: function () { return find_module_1.findModule; } }); | ||
Object.defineProperty(exports, "findModuleFromOptions", { enumerable: true, get: function () { return find_module_1.findModuleFromOptions; } }); | ||
Object.defineProperty(exports, "buildRelativePath", { enumerable: true, get: function () { return find_module_1.buildRelativePath; } }); | ||
var json_utilts_1 = require("./utility/json-utilts"); | ||
__createBinding(exports, json_utilts_1, "findPropertyInAstObject"); | ||
Object.defineProperty(exports, "findPropertyInAstObject", { enumerable: true, get: function () { return json_utilts_1.findPropertyInAstObject; } }); | ||
var ngrx_utils_1 = require("./utility/ngrx-utils"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerToState"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerToStateInterface"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerImportToNgModule"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerToActionReducerMap"); | ||
__createBinding(exports, ngrx_utils_1, "omit"); | ||
__createBinding(exports, ngrx_utils_1, "getPrefix"); | ||
Object.defineProperty(exports, "addReducerToState", { enumerable: true, get: function () { return ngrx_utils_1.addReducerToState; } }); | ||
Object.defineProperty(exports, "addReducerToStateInterface", { enumerable: true, get: function () { return ngrx_utils_1.addReducerToStateInterface; } }); | ||
Object.defineProperty(exports, "addReducerImportToNgModule", { enumerable: true, get: function () { return ngrx_utils_1.addReducerImportToNgModule; } }); | ||
Object.defineProperty(exports, "addReducerToActionReducerMap", { enumerable: true, get: function () { return ngrx_utils_1.addReducerToActionReducerMap; } }); | ||
Object.defineProperty(exports, "omit", { enumerable: true, get: function () { return ngrx_utils_1.omit; } }); | ||
Object.defineProperty(exports, "getPrefix", { enumerable: true, get: function () { return ngrx_utils_1.getPrefix; } }); | ||
var project_1 = require("./utility/project"); | ||
__createBinding(exports, project_1, "getProjectPath"); | ||
__createBinding(exports, project_1, "getProject"); | ||
__createBinding(exports, project_1, "isLib"); | ||
Object.defineProperty(exports, "getProjectPath", { enumerable: true, get: function () { return project_1.getProjectPath; } }); | ||
Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return project_1.getProject; } }); | ||
Object.defineProperty(exports, "isLib", { enumerable: true, get: function () { return project_1.isLib; } }); | ||
exports.stringUtils = { | ||
@@ -70,20 +59,20 @@ dasherize: strings_1.dasherize, | ||
featurePath: strings_1.featurePath, | ||
pluralize: strings_1.pluralize | ||
pluralize: strings_1.pluralize, | ||
}; | ||
var update_1 = require("./utility/update"); | ||
__createBinding(exports, update_1, "updatePackage"); | ||
Object.defineProperty(exports, "updatePackage", { enumerable: true, get: function () { return update_1.updatePackage; } }); | ||
var parse_name_1 = require("./utility/parse-name"); | ||
__createBinding(exports, parse_name_1, "parseName"); | ||
Object.defineProperty(exports, "parseName", { enumerable: true, get: function () { return parse_name_1.parseName; } }); | ||
var package_1 = require("./utility/package"); | ||
__createBinding(exports, package_1, "addPackageToPackageJson"); | ||
Object.defineProperty(exports, "addPackageToPackageJson", { enumerable: true, get: function () { return package_1.addPackageToPackageJson; } }); | ||
var libs_version_1 = require("./utility/libs-version"); | ||
__createBinding(exports, libs_version_1, "platformVersion"); | ||
Object.defineProperty(exports, "platformVersion", { enumerable: true, get: function () { return libs_version_1.platformVersion; } }); | ||
var visitors_1 = require("./utility/visitors"); | ||
__createBinding(exports, visitors_1, "visitTSSourceFiles"); | ||
__createBinding(exports, visitors_1, "visitNgModuleImports"); | ||
__createBinding(exports, visitors_1, "visitNgModuleExports"); | ||
__createBinding(exports, visitors_1, "visitComponents"); | ||
__createBinding(exports, visitors_1, "visitDecorator"); | ||
__createBinding(exports, visitors_1, "visitNgModules"); | ||
__createBinding(exports, visitors_1, "visitTemplates"); | ||
Object.defineProperty(exports, "visitTSSourceFiles", { enumerable: true, get: function () { return visitors_1.visitTSSourceFiles; } }); | ||
Object.defineProperty(exports, "visitNgModuleImports", { enumerable: true, get: function () { return visitors_1.visitNgModuleImports; } }); | ||
Object.defineProperty(exports, "visitNgModuleExports", { enumerable: true, get: function () { return visitors_1.visitNgModuleExports; } }); | ||
Object.defineProperty(exports, "visitComponents", { enumerable: true, get: function () { return visitors_1.visitComponents; } }); | ||
Object.defineProperty(exports, "visitDecorator", { enumerable: true, get: function () { return visitors_1.visitDecorator; } }); | ||
Object.defineProperty(exports, "visitNgModules", { enumerable: true, get: function () { return visitors_1.visitNgModules; } }); | ||
Object.defineProperty(exports, "visitTemplates", { enumerable: true, get: function () { return visitors_1.visitTemplates; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -38,3 +38,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.containsProperty = exports.replaceImport = exports.insertImport = exports.addBootstrapToModule = exports.addExportToModule = exports.addProviderToComponent = exports.addProviderToModule = exports.addImportToModule = exports.addDeclarationToModule = exports.getDecoratorMetadata = exports.getContentOfKeyLiteral = exports.insertAfterLastOccurrence = exports.getSourceNodes = exports.findNodes = void 0; | ||
@@ -87,3 +87,3 @@ /* istanbul ignore file */ | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -226,3 +226,3 @@ finally { if (e_1) throw e_1.error; } | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -229,0 +229,0 @@ finally { if (e_2) throw e_2.error; } |
@@ -13,3 +13,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.commitChanges = exports.createChangeRecorder = exports.createRemoveChange = exports.createReplaceChange = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = void 0; | ||
@@ -147,3 +147,3 @@ /** | ||
try { | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1["return"])) _a.call(changes_1); | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1.return)) _a.call(changes_1); | ||
} | ||
@@ -150,0 +150,0 @@ finally { if (e_1) throw e_1.error; } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getWorkspace = exports.getWorkspacePath = void 0; | ||
@@ -4,0 +4,0 @@ var schematics_1 = require("@angular-devkit/schematics"); |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildRelativePath = exports.findComponent = exports.findComponentFromOptions = void 0; | ||
@@ -90,3 +90,3 @@ /** | ||
filename: filename, | ||
directory: directory | ||
directory: directory, | ||
}; | ||
@@ -93,0 +93,0 @@ } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildRelativePath = exports.findModule = exports.findModuleFromOptions = void 0; | ||
@@ -91,3 +91,3 @@ /** | ||
filename: filename, | ||
directory: directory | ||
directory: directory, | ||
}; | ||
@@ -94,0 +94,0 @@ } |
@@ -13,3 +13,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findPropertyInAstObject = void 0; | ||
@@ -31,3 +31,3 @@ // https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/json-utils.ts | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -34,0 +34,0 @@ finally { if (e_1) throw e_1.error; } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.platformVersion = void 0; | ||
exports.platformVersion = '^15.4.0'; | ||
exports.platformVersion = '^16.0.0-beta.0'; | ||
//# sourceMappingURL=libs-version.js.map |
@@ -38,3 +38,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPrefix = exports.omit = exports.addReducerImportToNgModule = exports.addReducerToActionReducerMap = exports.addReducerToStateInterface = exports.addReducerToState = void 0; | ||
@@ -86,3 +86,3 @@ var ts = require("typescript"); | ||
try { | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1["return"])) _a.call(changes_1); | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1.return)) _a.call(changes_1); | ||
} | ||
@@ -228,3 +228,3 @@ finally { if (e_1) throw e_1.error; } | ||
try { | ||
if (changes_2_1 && !changes_2_1.done && (_a = changes_2["return"])) _a.call(changes_2); | ||
if (changes_2_1 && !changes_2_1.done && (_a = changes_2.return)) _a.call(changes_2); | ||
} | ||
@@ -231,0 +231,0 @@ finally { if (e_2) throw e_2.error; } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addPackageToPackageJson = void 0; | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseName = void 0; | ||
@@ -10,3 +10,3 @@ var core_1 = require("@angular-devkit/core"); | ||
name: nameWithoutPath, | ||
path: (0, core_1.normalize)('/' + namePath) | ||
path: (0, core_1.normalize)('/' + namePath), | ||
}; | ||
@@ -13,0 +13,0 @@ } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isLib = exports.getProjectPath = exports.getProject = void 0; | ||
@@ -4,0 +4,0 @@ var config_1 = require("./config"); |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.featurePath = exports.group = exports.pluralize = exports.capitalize = exports.underscore = exports.classify = exports.camelize = exports.dasherize = exports.decamelize = void 0; | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.updatePackage = void 0; | ||
@@ -4,0 +4,0 @@ var schematics_1 = require("@angular-devkit/schematics"); |
@@ -8,3 +8,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -57,3 +57,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitDecorator = exports.visitNgModules = exports.visitComponents = exports.visitNgModuleExports = exports.visitNgModuleImports = exports.visitTemplates = exports.visitTSSourceFiles = void 0; | ||
@@ -74,3 +74,3 @@ var ts = require("typescript"); | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -96,3 +96,3 @@ finally { if (e_1) throw e_1.error; } | ||
inline: true, | ||
start: templateStartIdx | ||
start: templateStartIdx, | ||
}, tree); | ||
@@ -116,3 +116,3 @@ return; | ||
inline: false, | ||
start: 0 | ||
start: 0, | ||
}, tree); | ||
@@ -219,3 +219,3 @@ return; | ||
try { | ||
if (_b && !_b.done && (_e = _a["return"])) _e.call(_a); | ||
if (_b && !_b.done && (_e = _a.return)) _e.call(_a); | ||
} | ||
@@ -248,3 +248,3 @@ finally { if (e_2) throw e_2.error; } | ||
try { | ||
if (_d && !_d.done && (_f = _c["return"])) _f.call(_c); | ||
if (_d && !_d.done && (_f = _c.return)) _f.call(_c); | ||
} | ||
@@ -251,0 +251,0 @@ finally { if (e_3) throw e_3.error; } |
@@ -40,3 +40,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -91,3 +91,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
try { | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1["return"])) _a.call(changes_1); | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1.return)) _a.call(changes_1); | ||
} | ||
@@ -128,3 +128,3 @@ finally { if (e_1) throw e_1.error; } | ||
module: options.module, | ||
path: options.path | ||
path: options.path, | ||
}); | ||
@@ -147,3 +147,3 @@ } | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=schema.js.map |
import { ActionCreator, ActionCreatorProps, Creator, FunctionWithParametersType, NotAllowedCheck, TypedAction } from './models'; | ||
declare type Join<Str extends string, Separator extends string = ' '> = Str extends `${infer First}${Separator}${infer Rest}` ? Join<`${First}${Rest}`, Separator> : Str; | ||
declare type Trim<Str extends string> = Str extends ` ${infer S}` ? Trim<S> : Str extends `${infer S} ` ? Trim<S> : Str; | ||
declare type TitleCase<Str extends string> = Str extends `${infer First} ${infer Rest}` ? `${Capitalize<First>} ${TitleCase<Rest>}` : Capitalize<Str>; | ||
declare type ForbiddenCharactersStr = '/ \\ | < > [ ] { } ( ) . , ! ? # % ^ & * + - ~ \' " `'; | ||
declare type ForbiddenCharacters<Str extends string = ForbiddenCharactersStr> = Str extends `${infer First} ${infer Rest}` ? First | ForbiddenCharacters<Rest> : Str extends '' ? never : Str; | ||
declare type ForbiddenCharactersCheck<Str extends string, Name extends string> = Str extends `${infer _}${ForbiddenCharacters}${infer _}` ? `${Name} cannot contain the following characters: ${ForbiddenCharactersStr}` : unknown; | ||
declare type EmptyStringCheck<Str extends string, Name extends string> = Trim<Str> extends '' ? `${Name} cannot be an empty string or contain only spaces` : unknown; | ||
declare type StringLiteralCheck<Str extends string, Name extends string> = string extends Str ? `${Name} must be a string literal type` : unknown; | ||
declare type UniqueEventNameCheck<EventNames extends string, EventName extends string> = ActionName<EventName> extends ActionName<Exclude<EventNames, EventName>> ? `${ActionName<EventName>} action is already defined` : unknown; | ||
declare type NotAllowedEventPropsCheck<PropsCreator extends ActionCreatorProps<unknown> | Creator> = PropsCreator extends ActionCreatorProps<infer Props> ? Props extends void ? unknown : NotAllowedCheck<Props & object> : PropsCreator extends Creator<any, infer Result> ? NotAllowedCheck<Result> : unknown; | ||
declare type EventCreator<PropsCreator extends ActionCreatorProps<unknown> | Creator, Type extends string> = PropsCreator extends ActionCreatorProps<infer Props> ? void extends Props ? ActionCreator<Type, () => TypedAction<Type>> : ActionCreator<Type, (props: Props & NotAllowedCheck<Props & object>) => Props & TypedAction<Type>> : PropsCreator extends Creator<infer Props, infer Result> ? FunctionWithParametersType<Props, Result & NotAllowedCheck<Result> & TypedAction<Type>> & TypedAction<Type> : never; | ||
export declare type ActionName<EventName extends string> = Uncapitalize<Join<TitleCase<Lowercase<Trim<EventName>>>>>; | ||
type Join<Str extends string, Separator extends string = ' '> = Str extends `${infer First}${Separator}${infer Rest}` ? Join<`${First}${Rest}`, Separator> : Str; | ||
type CapitalizeWords<Str extends string> = Str extends `${infer First} ${infer Rest}` ? `${Capitalize<First>} ${CapitalizeWords<Rest>}` : Capitalize<Str>; | ||
type StringLiteralCheck<Str extends string, Name extends string> = string extends Str ? `${Name} must be a string literal type` : unknown; | ||
type UniqueEventNameCheck<EventNames extends string, EventName extends string> = ActionName<EventName> extends ActionName<Exclude<EventNames, EventName>> ? `${ActionName<EventName>} action is already defined` : unknown; | ||
type NotAllowedEventPropsCheck<PropsCreator extends ActionCreatorProps<unknown> | Creator> = PropsCreator extends ActionCreatorProps<infer Props> ? Props extends void ? unknown : NotAllowedCheck<Props & object> : PropsCreator extends Creator<any, infer Result> ? NotAllowedCheck<Result> : unknown; | ||
type EventCreator<PropsCreator extends ActionCreatorProps<unknown> | Creator, Type extends string> = PropsCreator extends ActionCreatorProps<infer Props> ? void extends Props ? ActionCreator<Type, () => TypedAction<Type>> : ActionCreator<Type, (props: Props & NotAllowedCheck<Props & object>) => Props & TypedAction<Type>> : PropsCreator extends Creator<infer Props, infer Result> ? FunctionWithParametersType<Props, Result & NotAllowedCheck<Result> & TypedAction<Type>> & TypedAction<Type> : never; | ||
export type ActionName<EventName extends string> = Uncapitalize<Join<CapitalizeWords<EventName>>>; | ||
export interface ActionGroupConfig<Source extends string, Events extends Record<string, ActionCreatorProps<unknown> | Creator>> { | ||
source: Source & StringLiteralCheck<Source, 'source'>; | ||
events: { | ||
[EventName in keyof Events]: Events[EventName] & EmptyStringCheck<EventName & string, 'event name'> & StringLiteralCheck<EventName & string, 'event name'> & ForbiddenCharactersCheck<EventName & string, 'event name'> & UniqueEventNameCheck<keyof Events & string, EventName & string> & NotAllowedEventPropsCheck<Events[EventName]>; | ||
events: Events & { | ||
[EventName in keyof Events]: StringLiteralCheck<EventName & string, 'event name'> & UniqueEventNameCheck<keyof Events & string, EventName & string> & NotAllowedEventPropsCheck<Events[EventName]>; | ||
}; | ||
} | ||
export declare type ActionGroup<Source extends string, Events extends Record<string, ActionCreatorProps<unknown> | Creator>> = { | ||
export type ActionGroup<Source extends string, Events extends Record<string, ActionCreatorProps<unknown> | Creator>> = { | ||
[EventName in keyof Events as ActionName<EventName & string>]: EventCreator<Events[EventName], `[${Source}] ${EventName & string}`>; | ||
}; | ||
export {}; |
import { MemoizedSelector } from './selector'; | ||
import { Primitive } from './models'; | ||
export declare type FeatureSelector<AppState extends Record<string, any>, FeatureName extends keyof AppState & string, FeatureState extends AppState[FeatureName]> = { | ||
[K in FeatureName as `select${Capitalize<K>}State`]: MemoizedSelector<AppState, FeatureState>; | ||
export type FeatureSelector<AppState extends Record<string, any>, FeatureName extends keyof AppState & string, FeatureState extends AppState[FeatureName]> = { | ||
[K in FeatureName as `select${Capitalize<K>}State`]: MemoizedSelector<AppState, FeatureState, (featureState: FeatureState) => FeatureState>; | ||
}; | ||
export declare type NestedSelectors<AppState extends Record<string, any>, FeatureState> = FeatureState extends Primitive | unknown[] | Date ? {} : { | ||
[K in keyof FeatureState & string as `select${Capitalize<K>}`]: MemoizedSelector<AppState, FeatureState[K]>; | ||
export type NestedSelectors<AppState extends Record<string, any>, FeatureState> = FeatureState extends Primitive | unknown[] | Date ? {} : { | ||
[K in keyof FeatureState & string as `select${Capitalize<K>}`]: MemoizedSelector<AppState, FeatureState[K], (featureState: FeatureState) => FeatureState[K]>; | ||
}; |
@@ -7,8 +7,8 @@ import { ActionReducer, Selector } from './models'; | ||
} | ||
declare type Feature<AppState extends Record<string, any>, FeatureName extends keyof AppState & string, FeatureState extends AppState[FeatureName]> = FeatureConfig<FeatureName, FeatureState> & BaseSelectors<AppState, FeatureName, FeatureState>; | ||
declare type FeatureWithExtraSelectors<FeatureName extends string, FeatureState, ExtraSelectors extends SelectorsDictionary> = string extends keyof ExtraSelectors ? Feature<Record<string, any>, FeatureName, FeatureState> : Omit<Feature<Record<string, any>, FeatureName, FeatureState>, keyof ExtraSelectors> & ExtraSelectors; | ||
declare type BaseSelectors<AppState extends Record<string, any>, FeatureName extends keyof AppState & string, FeatureState extends AppState[FeatureName]> = FeatureSelector<AppState, FeatureName, FeatureState> & NestedSelectors<AppState, FeatureState>; | ||
declare type SelectorsDictionary = Record<string, Selector<Record<string, any>, unknown> | ((...args: any[]) => Selector<Record<string, any>, unknown>)>; | ||
declare type ExtraSelectorsFactory<FeatureName extends string, FeatureState, ExtraSelectors extends SelectorsDictionary> = (baseSelectors: BaseSelectors<Record<string, any>, FeatureName, FeatureState>) => ExtraSelectors; | ||
declare type NotAllowedFeatureStateCheck<FeatureState> = FeatureState extends Required<FeatureState> ? unknown : 'optional properties are not allowed in the feature state'; | ||
type Feature<AppState extends Record<string, any>, FeatureName extends keyof AppState & string, FeatureState extends AppState[FeatureName]> = FeatureConfig<FeatureName, FeatureState> & BaseSelectors<AppState, FeatureName, FeatureState>; | ||
type FeatureWithExtraSelectors<FeatureName extends string, FeatureState, ExtraSelectors extends SelectorsDictionary> = string extends keyof ExtraSelectors ? Feature<Record<string, any>, FeatureName, FeatureState> : Omit<Feature<Record<string, any>, FeatureName, FeatureState>, keyof ExtraSelectors> & ExtraSelectors; | ||
type BaseSelectors<AppState extends Record<string, any>, FeatureName extends keyof AppState & string, FeatureState extends AppState[FeatureName]> = FeatureSelector<AppState, FeatureName, FeatureState> & NestedSelectors<AppState, FeatureState>; | ||
type SelectorsDictionary = Record<string, Selector<Record<string, any>, unknown> | ((...args: any[]) => Selector<Record<string, any>, unknown>)>; | ||
type ExtraSelectorsFactory<FeatureName extends string, FeatureState, ExtraSelectors extends SelectorsDictionary> = (baseSelectors: BaseSelectors<Record<string, any>, FeatureName, FeatureState>) => ExtraSelectors; | ||
type NotAllowedFeatureStateCheck<FeatureState> = FeatureState extends Required<FeatureState> ? unknown : 'optional properties are not allowed in the feature state'; | ||
/** | ||
@@ -35,7 +35,2 @@ * Creates a feature object with extra selectors. | ||
export declare function createFeature<FeatureName extends string, FeatureState>(featureConfig: FeatureConfig<FeatureName, FeatureState> & NotAllowedFeatureStateCheck<FeatureState>): Feature<Record<string, any>, FeatureName, FeatureState>; | ||
/** | ||
* @deprecated Use the `createFeature` signature without root state instead. | ||
* For more info see: https://github.com/ngrx/platform/issues/3737 | ||
*/ | ||
export declare function createFeature<AppState extends Record<string, any>, FeatureName extends keyof AppState & string = keyof AppState & string, FeatureState extends AppState[FeatureName] = AppState[FeatureName]>(featureConfig: FeatureConfig<FeatureName, FeatureState> & NotAllowedFeatureStateCheck<FeatureState>): Feature<AppState, FeatureName, FeatureState>; | ||
export {}; |
export declare function capitalize<T extends string>(text: T): Capitalize<T>; | ||
export declare function uncapitalize<T extends string>(text: T): Uncapitalize<T>; |
@@ -7,7 +7,7 @@ export interface Action { | ||
} | ||
export declare type ActionType<A> = A extends ActionCreator<infer T, infer C> ? ReturnType<C> & { | ||
export type ActionType<A> = A extends ActionCreator<infer T, infer C> ? ReturnType<C> & { | ||
type: T; | ||
} : never; | ||
export declare type TypeId<T> = () => T; | ||
export declare type InitialState<T> = Partial<T> | TypeId<Partial<T>> | void; | ||
export type TypeId<T> = () => T; | ||
export type InitialState<T> = Partial<T> | TypeId<Partial<T>> | void; | ||
/** | ||
@@ -20,3 +20,3 @@ * A function that takes an `Action` and a `State`, and returns a `State`. | ||
} | ||
export declare type ActionReducerMap<T, V extends Action = Action> = { | ||
export type ActionReducerMap<T, V extends Action = Action> = { | ||
[p in keyof T]: ActionReducer<T[p], V>; | ||
@@ -27,3 +27,3 @@ }; | ||
} | ||
export declare type MetaReducer<T = any, V extends Action = Action> = (reducer: ActionReducer<T, V>) => ActionReducer<T, V>; | ||
export type MetaReducer<T = any, V extends Action = Action> = (reducer: ActionReducer<T, V>) => ActionReducer<T, V>; | ||
export interface StoreFeature<T, V extends Action = Action> { | ||
@@ -36,31 +36,31 @@ key: string; | ||
} | ||
export declare type Selector<T, V> = (state: T) => V; | ||
export type Selector<T, V> = (state: T) => V; | ||
/** | ||
* @deprecated Selectors with props are deprecated, for more info see {@link https://github.com/ngrx/platform/issues/2980 Github Issue} | ||
*/ | ||
export declare type SelectorWithProps<State, Props, Result> = (state: State, props: Props) => Result; | ||
export type SelectorWithProps<State, Props, Result> = (state: State, props: Props) => Result; | ||
export declare const arraysAreNotAllowedMsg = "action creator cannot return an array"; | ||
declare type ArraysAreNotAllowed = typeof arraysAreNotAllowedMsg; | ||
type ArraysAreNotAllowed = typeof arraysAreNotAllowedMsg; | ||
export declare const typePropertyIsNotAllowedMsg = "action creator cannot return an object with a property named `type`"; | ||
declare type TypePropertyIsNotAllowed = typeof typePropertyIsNotAllowedMsg; | ||
type TypePropertyIsNotAllowed = typeof typePropertyIsNotAllowedMsg; | ||
export declare const emptyObjectsAreNotAllowedMsg = "action creator cannot return an empty object"; | ||
declare type EmptyObjectsAreNotAllowed = typeof emptyObjectsAreNotAllowedMsg; | ||
type EmptyObjectsAreNotAllowed = typeof emptyObjectsAreNotAllowedMsg; | ||
export declare const arraysAreNotAllowedInProps = "action creator props cannot be an array"; | ||
declare type ArraysAreNotAllowedInProps = typeof arraysAreNotAllowedInProps; | ||
type ArraysAreNotAllowedInProps = typeof arraysAreNotAllowedInProps; | ||
export declare const typePropertyIsNotAllowedInProps = "action creator props cannot have a property named `type`"; | ||
declare type TypePropertyIsNotAllowedInProps = typeof typePropertyIsNotAllowedInProps; | ||
type TypePropertyIsNotAllowedInProps = typeof typePropertyIsNotAllowedInProps; | ||
export declare const emptyObjectsAreNotAllowedInProps = "action creator props cannot be an empty object"; | ||
declare type EmptyObjectsAreNotAllowedInProps = typeof emptyObjectsAreNotAllowedInProps; | ||
type EmptyObjectsAreNotAllowedInProps = typeof emptyObjectsAreNotAllowedInProps; | ||
export declare const primitivesAreNotAllowedInProps = "action creator props cannot be a primitive value"; | ||
declare type PrimitivesAreNotAllowedInProps = typeof primitivesAreNotAllowedInProps; | ||
export declare type FunctionIsNotAllowed<T, ErrorMessage extends string> = T extends Function ? ErrorMessage : T; | ||
type PrimitivesAreNotAllowedInProps = typeof primitivesAreNotAllowedInProps; | ||
export type FunctionIsNotAllowed<T, ErrorMessage extends string> = T extends Function ? ErrorMessage : T; | ||
/** | ||
* A function that returns an object in the shape of the `Action` interface. Configured using `createAction`. | ||
*/ | ||
export declare type Creator<P extends any[] = any[], R extends object = object> = FunctionWithParametersType<P, R>; | ||
export declare type Primitive = string | number | bigint | boolean | symbol | null | undefined; | ||
export declare type NotAllowedCheck<T extends object> = T extends any[] ? ArraysAreNotAllowed : T extends { | ||
export type Creator<P extends any[] = any[], R extends object = object> = FunctionWithParametersType<P, R>; | ||
export type Primitive = string | number | bigint | boolean | symbol | null | undefined; | ||
export type NotAllowedCheck<T extends object> = T extends any[] ? ArraysAreNotAllowed : T extends { | ||
type: any; | ||
} ? TypePropertyIsNotAllowed : keyof T extends never ? EmptyObjectsAreNotAllowed : unknown; | ||
export declare type NotAllowedInPropsCheck<T> = T extends object ? T extends any[] ? ArraysAreNotAllowedInProps : T extends { | ||
export type NotAllowedInPropsCheck<T> = T extends object ? T extends any[] ? ArraysAreNotAllowedInProps : T extends { | ||
type: any; | ||
@@ -71,3 +71,3 @@ } ? TypePropertyIsNotAllowedInProps : keyof T extends never ? EmptyObjectsAreNotAllowedInProps : unknown : T extends Primitive ? PrimitivesAreNotAllowedInProps : never; | ||
*/ | ||
export declare type ActionCreator<T extends string = string, C extends Creator = Creator> = C & TypedAction<T>; | ||
export type ActionCreator<T extends string = string, C extends Creator = Creator> = C & TypedAction<T>; | ||
export interface ActionCreatorProps<T> { | ||
@@ -77,3 +77,3 @@ _as: 'props'; | ||
} | ||
export declare type FunctionWithParametersType<P extends unknown[], R = void> = (...args: P) => R; | ||
export type FunctionWithParametersType<P extends unknown[], R = void> = (...args: P) => R; | ||
export interface RuntimeChecks { | ||
@@ -80,0 +80,0 @@ /** |
import { ActionCreator, ActionReducer, ActionType, Action } from './models'; | ||
declare type ExtractActionTypes<Creators extends readonly ActionCreator[]> = { | ||
type ExtractActionTypes<Creators extends readonly ActionCreator[]> = { | ||
[Key in keyof Creators]: Creators[Key] extends ActionCreator<infer T> ? T : never; | ||
@@ -4,0 +4,0 @@ }; |
import { Selector, SelectorWithProps } from './models'; | ||
export declare type AnyFn = (...args: any[]) => any; | ||
export declare type MemoizedProjection = { | ||
export type AnyFn = (...args: any[]) => any; | ||
export type MemoizedProjection = { | ||
memoized: AnyFn; | ||
@@ -9,5 +9,5 @@ reset: () => void; | ||
}; | ||
export declare type MemoizeFn = (t: AnyFn) => MemoizedProjection; | ||
export declare type ComparatorFn = (a: any, b: any) => boolean; | ||
export declare type DefaultProjectorFn<T> = (...args: any[]) => T; | ||
export type MemoizeFn = (t: AnyFn) => MemoizedProjection; | ||
export type ComparatorFn = (a: any, b: any) => boolean; | ||
export type DefaultProjectorFn<T> = (...args: any[]) => T; | ||
export interface MemoizedSelector<State, Result, ProjectorFn = DefaultProjectorFn<Result>> extends Selector<State, Result> { | ||
@@ -160,3 +160,3 @@ release(): void; | ||
export declare function defaultStateFn(state: any, selectors: Selector<any, any>[] | SelectorWithProps<any, any, any>[], props: any, memoizedProjector: MemoizedProjection): any; | ||
export declare type SelectorFactoryConfig<T = any, V = any> = { | ||
export type SelectorFactoryConfig<T = any, V = any> = { | ||
stateFn: (state: T, selectors: Selector<any, any>[], props: any, memoizedProjector: MemoizedProjection) => V; | ||
@@ -163,0 +163,0 @@ }; |
@@ -18,3 +18,3 @@ import { OnDestroy, Provider } from '@angular/core'; | ||
} | ||
export declare type StateActionPair<T, V extends Action = Action> = { | ||
export type StateActionPair<T, V extends Action = Action> = { | ||
state: T | undefined; | ||
@@ -21,0 +21,0 @@ action?: V; |
@@ -1,2 +0,2 @@ | ||
import { Provider } from '@angular/core'; | ||
import { Provider, Signal } from '@angular/core'; | ||
import { Observable, Observer, Operator } from 'rxjs'; | ||
@@ -11,2 +11,3 @@ import { ActionsSubject } from './actions_subject'; | ||
private reducerManager; | ||
private readonly state; | ||
constructor(state$: StateObservable, actionsObserver: ActionsSubject, reducerManager: ReducerManager); | ||
@@ -25,2 +26,8 @@ select<K>(mapFn: (state: T) => K): Observable<K>; | ||
select<a extends keyof T, b extends keyof T[a], c extends keyof T[a][b], d extends keyof T[a][b][c], e extends keyof T[a][b][c][d], f extends keyof T[a][b][c][d][e], K = any>(key1: a, key2: b, key3: c, key4: d, key5: e, key6: f, ...paths: string[]): Observable<K>; | ||
/** | ||
* Returns a signal of the provided selector. | ||
* | ||
* @param selector selector function | ||
*/ | ||
selectSignal<K>(selector: (state: T) => K): Signal<K>; | ||
lift<R>(operator: Operator<T, R>): Store<R>; | ||
@@ -27,0 +34,0 @@ dispatch<V extends Action = Action>(action: V & FunctionIsNotAllowed<V, 'Functions are not allowed to be dispatched. Did you forget to call the action creator function?'>): void; |
@@ -20,7 +20,7 @@ import { InjectionToken } from '@angular/core'; | ||
*/ | ||
export declare const USER_PROVIDED_META_REDUCERS: InjectionToken<MetaReducer<any, import("./models").Action>[]>; | ||
export declare const USER_PROVIDED_META_REDUCERS: InjectionToken<MetaReducer[]>; | ||
/** | ||
* Meta reducers defined either internally by @ngrx/store or by library authors | ||
*/ | ||
export declare const META_REDUCERS: InjectionToken<MetaReducer<any, import("./models").Action>[]>; | ||
export declare const META_REDUCERS: InjectionToken<MetaReducer[]>; | ||
/** | ||
@@ -30,3 +30,3 @@ * Concats the user provided meta reducers and the meta reducers provided on the multi | ||
*/ | ||
export declare const _RESOLVED_META_REDUCERS: InjectionToken<MetaReducer<any, import("./models").Action>>; | ||
export declare const _RESOLVED_META_REDUCERS: InjectionToken<MetaReducer>; | ||
/** | ||
@@ -33,0 +33,0 @@ * Runtime checks defined by the user via an InjectionToken |
@@ -6,4 +6,4 @@ import { Observable } from 'rxjs'; | ||
import * as i0 from "@angular/core"; | ||
declare type OnlyMemoized<T, Result> = T extends string | MemoizedSelector<any, any> ? MemoizedSelector<any, Result> : T extends MemoizedSelectorWithProps<any, any, any> ? MemoizedSelectorWithProps<any, any, Result> : never; | ||
declare type Memoized<Result> = MemoizedSelector<any, Result> | MemoizedSelectorWithProps<any, any, Result>; | ||
type OnlyMemoized<T, Result> = T extends string | MemoizedSelector<any, any> ? MemoizedSelector<any, Result> : T extends MemoizedSelectorWithProps<any, any, any> ? MemoizedSelectorWithProps<any, any, Result> : never; | ||
type Memoized<Result> = MemoizedSelector<any, Result> | MemoizedSelectorWithProps<any, any, Result>; | ||
export declare class MockStore<T = object> extends Store<T> { | ||
@@ -10,0 +10,0 @@ private state$; |
@@ -62,9 +62,2 @@ import { ExistingProvider, FactoryProvider, ValueProvider } from '@angular/core'; | ||
/** | ||
* @deprecated This function is deprecated in favor of `createMockStore`. | ||
* If you are looking to get an existing mock store, you probably want to use `TestBed.inject(MockStore)` instead. | ||
* | ||
* For more info see: https://github.com/ngrx/platform/issues/3781 | ||
*/ | ||
export declare const getMockStore: typeof createMockStore; | ||
/** | ||
* @description | ||
@@ -71,0 +64,0 @@ * Creates mock store with all necessary dependencies outside of the `TestBed`. |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
861076
7455
1
1