@s-libs/app-state
Advanced tools
Comparing version 15.2.0 to 16.0.0-next.0
@@ -0,0 +0,0 @@ /** |
import { RootStore, Store } from './index'; | ||
export declare function buildChild(getRootStore: () => RootStore<object>, parent: Store<any>, key: any): Store<unknown>; | ||
export declare class ChildStore<T> extends Store<T> { | ||
@@ -3,0 +4,0 @@ private parent; |
export { Store } from './store'; | ||
export { RootStore } from './root-store'; | ||
export { ChildStore } from './child-store'; |
@@ -0,0 +0,0 @@ import { Store } from './index'; |
import { CallableObject } from '@s-libs/js-core'; | ||
import { Observable, Subscriber } from 'rxjs'; | ||
import { buildChild } from './child-store'; | ||
import { ChildStore, RootStore } from './index'; | ||
declare type GetSlice<T> = <K extends keyof T>(attr: K) => Store<T[K]>; | ||
type GetSlice<T> = <K extends keyof T>(attr: K) => Store<T[K]>; | ||
export interface Store<T> extends GetSlice<T> { | ||
@@ -21,3 +22,3 @@ /** | ||
private lastKnownStateChanged; | ||
constructor(getRootStore: () => RootStore<object>); | ||
constructor(getRootStore: () => RootStore<object>, makeChild: typeof buildChild); | ||
/** | ||
@@ -24,0 +25,0 @@ * Assigns the given values to state of this store object. The resulting state will be like `Object.assign(store.state(), value)`. |
@@ -0,0 +0,0 @@ export { PersistentStore, PersistenceCodec } from './persistent-store'; |
import { MigrationManager, VersionedObject } from '@s-libs/js-core'; | ||
import { RootStore } from '../root-store'; | ||
import { RootStore } from '../index'; | ||
export interface PersistenceCodec<State, Persisted> { | ||
@@ -4,0 +4,0 @@ /** |
@@ -0,0 +0,0 @@ import { Store } from '../index'; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
import { Observable } from 'rxjs'; | ||
import { Store } from '../index'; | ||
export declare type UndoOrRedo = 'redo' | 'undo'; | ||
export type UndoOrRedo = 'redo' | 'undo'; | ||
export declare abstract class UndoManager<StateType, UndoStateType> { | ||
@@ -5,0 +5,0 @@ protected readonly store: Store<StateType>; |
{ | ||
"name": "@s-libs/app-state", | ||
"version": "15.2.0", | ||
"version": "16.0.0-next.0", | ||
"author": "Simonton Software", | ||
@@ -13,5 +13,5 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@s-libs/js-core": "^15.2.0", | ||
"@s-libs/micro-dash": "^15.2.0", | ||
"@s-libs/rxjs-core": "^15.2.0" | ||
"@s-libs/js-core": "^16.0.0-next.0", | ||
"@s-libs/micro-dash": "^16.0.0-next.0", | ||
"@s-libs/rxjs-core": "^16.0.0-next.0" | ||
}, | ||
@@ -21,7 +21,4 @@ "dependencies": { | ||
}, | ||
"module": "fesm2015/app-state.mjs", | ||
"es2020": "fesm2020/app-state.mjs", | ||
"esm2020": "esm2020/app-state.mjs", | ||
"fesm2020": "fesm2020/app-state.mjs", | ||
"fesm2015": "fesm2015/app-state.mjs", | ||
"sideEffects": false, | ||
"module": "fesm2022/app-state.mjs", | ||
"typings": "index.d.ts", | ||
@@ -34,10 +31,7 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/app-state.mjs", | ||
"es2020": "./fesm2020/app-state.mjs", | ||
"es2015": "./fesm2015/app-state.mjs", | ||
"node": "./fesm2015/app-state.mjs", | ||
"default": "./fesm2020/app-state.mjs" | ||
"esm2022": "./esm2022/app-state.mjs", | ||
"esm": "./esm2022/app-state.mjs", | ||
"default": "./fesm2022/app-state.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} | ||
} |
export { Store, RootStore } from './lib/index'; | ||
export * from './lib/utils'; |
@@ -28,7 +28,3 @@ An observable state management library. Think of it like Redux, but without actions or reducers. That makes it a natural fit for anyone who wants the benefits of centralized state management, without adopting a function style of programming. | ||
```shell script | ||
npm install --save @s-libs/app-state @s-libs/ng-core @s-libs/rxjs-core @s-libs/js-core @s-libs/micro-dash | ||
# OR | ||
yarn add @s-libs/app-state @s-libs/ng-core @s-libs/rxjs-core @s-libs/js-core @s-libs/micro-dash | ||
npm install @s-libs/app-state @s-libs/ng-core @s-libs/rxjs-core @s-libs/js-core @s-libs/micro-dash | ||
``` | ||
@@ -35,0 +31,0 @@ |
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
166768
28
1649
2
173
1