Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngrx/effects

Package Overview
Dependencies
Maintainers
4
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/effects - npm Package Compare versions

Comparing version 14.3.2 to 15.0.0-beta.0

migrations/15_0_0-beta/index.js

6

migrations/13_0_0/index.js

@@ -39,3 +39,3 @@ "use strict";

return clas.members.filter(ts.isPropertyDeclaration).filter(function (property) {
var decorators = (0, schematics_core_1.getNodeDecorators)(property);
var decorators = ts.getDecorators(property);
return decorators && decorators.some(isEffectDecorator);

@@ -58,3 +58,3 @@ });

}
var decorator = ((0, schematics_core_1.getNodeDecorators)(effect) || []).find(isEffectDecorator);
var decorator = (ts.getDecorators(effect) || []).find(isEffectDecorator);
if (!decorator) {

@@ -75,3 +75,3 @@ return [];

var removes = effects
.map(function (effect) { return (0, schematics_core_1.getNodeDecorators)(effect); })
.map(function (effect) { return ts.getDecorators(effect); })
.map(function (decorators) {

@@ -78,0 +78,0 @@ if (!decorators) {

@@ -18,4 +18,9 @@ {

"factory": "./13_0_0/index"
},
"ngrx-effects-migration-15-beta": {
"description": "The road to v15 beta",
"version": "15-beta",
"factory": "./15_0_0-beta/index"
}
}
}
{
"name": "@ngrx/effects",
"version": "14.3.2",
"version": "15.0.0-beta.0",
"description": "Side effect model for @ngrx/store",

@@ -24,4 +24,4 @@ "repository": {

"peerDependencies": {
"@angular/core": "^14.0.0",
"@ngrx/store": "14.3.2",
"@angular/core": "^15.0.0-rc.0",
"@ngrx/store": "15.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.5.0"

@@ -28,0 +28,0 @@ },

@@ -14,3 +14,3 @@ "use strict";

exports.__esModule = true;
exports.getNodeDecorators = 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;
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");

@@ -89,4 +89,2 @@ var ast_utils_1 = require("./utility/ast-utils");

__createBinding(exports, visitors_1, "visitTemplates");
var decorators_1 = require("./utility/decorators");
__createBinding(exports, decorators_1, "getNodeDecorators");
//# sourceMappingURL=index.js.map
"use strict";
exports.__esModule = true;
exports.platformVersion = void 0;
exports.platformVersion = '^14.3.2';
exports.platformVersion = '^15.0.0-beta.0';
//# sourceMappingURL=libs-version.js.map

@@ -60,3 +60,2 @@ "use strict";

var core_1 = require("@angular-devkit/core");
var decorators_1 = require("./decorators");
function visitTSSourceFiles(tree, visitor) {

@@ -161,3 +160,3 @@ var e_1, _a;

var classDeclarationNode = node;
var decorators = (0, decorators_1.getNodeDecorators)(classDeclarationNode);
var decorators = ts.getDecorators(classDeclarationNode);
if (!decorators || !decorators.length) {

@@ -164,0 +163,0 @@ return;

@@ -43,5 +43,3 @@ import { Observable } from 'rxjs';

export declare function createEffect<C extends EffectConfig, DT extends DispatchType<C>, OT extends ObservableType<DT, OT>, R extends EffectResult<OT>>(source: () => R & ConditionallyDisallowActionCreator<DT, R>, config?: Partial<C>): R & CreateEffectMetadata;
export declare function getCreateEffectMetadata<T extends {
[props in keyof T]: Object;
}>(instance: T): EffectMetadata<T>[];
export declare function getCreateEffectMetadata<T extends Record<keyof T, Object>>(instance: T): EffectMetadata<T>[];
export {};
import { EffectMetadata, EffectsMetadata } from './models';
export declare function getEffectsMetadata<T extends Object>(instance: T): EffectsMetadata<T>;
export declare function getSourceMetadata<T extends Object>(instance: T): EffectMetadata<T>[];
export declare function getEffectsMetadata<T extends Record<keyof T, Object>>(instance: T): EffectsMetadata<T>;
export declare function getSourceMetadata<T extends {
[props in keyof T]: object;
}>(instance: T): EffectMetadata<T>[];

@@ -1,9 +0,8 @@

import { Injector, ModuleWithProviders, Type } from '@angular/core';
import { ModuleWithProviders, Type } from '@angular/core';
import { EffectsFeatureModule } from './effects_feature_module';
import { EffectsRootModule } from './effects_root_module';
import { EffectsRunner } from './effects_runner';
import * as i0 from "@angular/core";
export declare class EffectsModule {
static forFeature(featureEffects?: Type<any>[]): ModuleWithProviders<EffectsFeatureModule>;
static forRoot(rootEffects?: Type<any>[]): ModuleWithProviders<EffectsRootModule>;
static forFeature(featureEffects?: Type<unknown>[]): ModuleWithProviders<EffectsFeatureModule>;
static forRoot(rootEffects?: Type<unknown>[]): ModuleWithProviders<EffectsRootModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<EffectsModule, never>;

@@ -13,4 +12,1 @@ static ɵmod: i0.ɵɵNgModuleDeclaration<EffectsModule, never, never, never>;

}
export declare function createEffects(injector: Injector, effectGroups: Type<any>[][], userProvidedEffectGroups: Type<any>[][]): any[];
export declare function createEffectInstances(injector: Injector, effects: Type<any>[]): any[];
export declare function _provideForRootGuard(runner: EffectsRunner, rootEffects: any[][]): any;
export { createEffect } from './effect_creator';
export { EffectConfig } from './models';
export { Effect } from './effect_decorator';
export { getEffectsMetadata } from './effects_metadata';

@@ -5,0 +4,0 @@ export { mergeEffects } from './effects_resolver';

@@ -20,8 +20,8 @@ /**

}
export declare type EffectPropertyKey<T extends Object> = Exclude<keyof T, keyof Object>;
export interface EffectMetadata<T extends Object> extends Required<EffectConfig> {
export declare type EffectPropertyKey<T extends Record<keyof T, Object>> = Exclude<keyof T, keyof Object>;
export interface EffectMetadata<T extends Record<keyof T, Object>> extends Required<EffectConfig> {
propertyName: EffectPropertyKey<T>;
}
export declare type EffectsMetadata<T extends Object> = {
export declare type EffectsMetadata<T extends Record<keyof T, Object>> = {
[Key in EffectPropertyKey<T>]?: EffectConfig;
};

@@ -1,3 +0,2 @@

import { Type } from '@angular/core';
import { EnvironmentProviders } from '@ngrx/store';
import { EnvironmentProviders, Type } from '@angular/core';
/**

@@ -13,3 +12,3 @@ * Runs the provided effects.

* bootstrapApplication(AppComponent, {
* providers: [provideEffects([RouterEffects])],
* providers: [provideEffects(RouterEffects]],
* });

@@ -24,3 +23,3 @@ * ```

* path: '',
* providers: [provideEffects([BooksApiEffects])],
* providers: [provideEffects(BooksApiEffects)],
* children: [

@@ -34,2 +33,2 @@ * { path: '', component: BookListComponent },

*/
export declare function provideEffects(effects: Type<unknown>[]): EnvironmentProviders;
export declare function provideEffects(...effects: Type<unknown>[]): EnvironmentProviders;

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc