@rx-signals/angular-provider
Advanced tools
Comparing version 1.0.0 to 3.0.0-rc1
@@ -0,8 +1,25 @@ | ||
import { ModuleWithProviders } from '@angular/core'; | ||
import { Store } from '@rx-signals/store'; | ||
export declare type WithStoreCallback = (store: Store) => void; | ||
export declare const withStore: (cb: WithStoreCallback) => import("rxjs").Subscription; | ||
export declare const testWithStore: (cb: WithStoreCallback) => void; | ||
import * as i0 from "@angular/core"; | ||
export declare class RxSignalsStoreModule { | ||
private store; | ||
constructor(store: Store, self?: RxSignalsStoreModule); | ||
/** | ||
* Use withRootStore, if you need the root store that shares the lifecycle of the whole application. | ||
* Also lazy-loaded feature modules will receive the same root-store instance, if you use withRootStore. | ||
* This should be the standard case. | ||
* | ||
* @param {function} setup - optional callback that receives the store and performs setup | ||
* @returns {ModuleWithProviders<RxSignalsStoreModule>} the module providing the root-store | ||
*/ | ||
static withRootStore(setup?: (store: Store) => void): ModuleWithProviders<RxSignalsStoreModule>; | ||
/** | ||
* Use withChildStore, if you need a child store that is derived from the root-store. | ||
* See store.createChildStore() for further documentation on child stores. | ||
* | ||
* @param {function} setup - optional callback that receives the child-store and performs setup | ||
* @returns {ModuleWithProviders<RxSignalsStoreModule>} the module providing the child-store | ||
*/ | ||
static withChildStore(setup?: (store: Store) => void): ModuleWithProviders<RxSignalsStoreModule>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<RxSignalsStoreModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<RxSignalsStoreModule, never, never, never>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<RxSignalsStoreModule>; | ||
} |
{ | ||
"name": "@rx-signals/angular-provider", | ||
"version": "1.0.0", | ||
"version": "3.0.0-rc1", | ||
"description": "angular module for an opinionated @rx-signals/store integration", | ||
@@ -29,4 +29,3 @@ "author": "Gerd Neudert", | ||
"@angular/core": ">=10.0.0", | ||
"@rx-signals/store": "^2.2.2", | ||
"rxjs": "^6.4.0" | ||
"@rx-signals/store": ">=3.0.0-rc14" | ||
}, | ||
@@ -36,10 +35,22 @@ "dependencies": { | ||
}, | ||
"main": "bundles/rx-signals-angular-provider.umd.js", | ||
"module": "fesm2015/rx-signals-angular-provider.js", | ||
"es2015": "fesm2015/rx-signals-angular-provider.js", | ||
"esm2015": "esm2015/rx-signals-angular-provider.js", | ||
"fesm2015": "fesm2015/rx-signals-angular-provider.js", | ||
"module": "fesm2015/rx-signals-angular-provider.mjs", | ||
"es2020": "fesm2020/rx-signals-angular-provider.mjs", | ||
"esm2020": "esm2020/rx-signals-angular-provider.mjs", | ||
"fesm2020": "fesm2020/rx-signals-angular-provider.mjs", | ||
"fesm2015": "fesm2015/rx-signals-angular-provider.mjs", | ||
"typings": "rx-signals-angular-provider.d.ts", | ||
"metadata": "rx-signals-angular-provider.metadata.json", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./rx-signals-angular-provider.d.ts", | ||
"esm2020": "./esm2020/rx-signals-angular-provider.mjs", | ||
"es2020": "./fesm2020/rx-signals-angular-provider.mjs", | ||
"es2015": "./fesm2015/rx-signals-angular-provider.mjs", | ||
"node": "./fesm2015/rx-signals-angular-provider.mjs", | ||
"default": "./fesm2020/rx-signals-angular-provider.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="@rx-signals/angular-provider" /> | ||
export * from './public-api'; |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
24204
4
208
13
1