@thi.ng/atom
Advanced tools
Comparing version 0.8.0 to 0.9.0
17
api.d.ts
@@ -6,2 +6,7 @@ import * as api from "@thi.ng/api/api"; | ||
export declare type ViewTransform<T> = (x: any) => T; | ||
export declare type InterceptorFn = (state: any, e: Event) => any; | ||
export declare type InterceptorPredicate = (state: any, e: Event) => boolean; | ||
export declare type SideEffect = (x: any) => void; | ||
export declare type EventDef = Interceptor | Interceptor[] | InterceptorFn | InterceptorFn[]; | ||
export declare type EffectDef = [SideEffect, number]; | ||
export interface ReadonlyAtom<T> extends api.IDeref<T>, api.IWatch<T> { | ||
@@ -27,1 +32,13 @@ } | ||
} | ||
export interface Event extends Array<any> { | ||
[0]: string; | ||
[1]?: any; | ||
} | ||
export interface Interceptor { | ||
pre?: InterceptorFn; | ||
post?: InterceptorFn; | ||
} | ||
export declare const FX_STATE = "state"; | ||
export declare const FX_DISPACH_NOW = "dispatch-now"; | ||
export declare const FX_DISPATCH = "dispatch"; | ||
export declare const FX_CANCEL = "cancel"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
; | ||
exports.FX_STATE = "state"; | ||
exports.FX_DISPACH_NOW = "dispatch-now"; | ||
exports.FX_DISPATCH = "dispatch"; | ||
exports.FX_CANCEL = "cancel"; |
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.9.0"></a> | ||
# [0.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@0.8.0...@thi.ng/atom@0.9.0) (2018-03-07) | ||
### Features | ||
* **atom:** re-add refactored EventBus & interceptor handling ([e01bf73](https://github.com/thi-ng/umbrella/commit/e01bf73)) | ||
<a name="0.8.0"></a> | ||
@@ -8,0 +19,0 @@ # [0.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/atom@0.7.3...@thi.ng/atom@0.8.0) (2018-03-05) |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./api")); | ||
__export(require("./atom")); | ||
@@ -8,0 +9,0 @@ __export(require("./cursor")); |
{ | ||
"name": "@thi.ng/atom", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "Mutable wrapper for a immutable values", | ||
@@ -29,3 +29,4 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@thi.ng/api": "^2.0.3" | ||
"@thi.ng/api": "^2.0.3", | ||
"@thi.ng/dcons": "0.1.13" | ||
}, | ||
@@ -32,0 +33,0 @@ "keywords": [ |
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
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
66425
22
1157
2
+ Added@thi.ng/dcons@0.1.13
+ Added@thi.ng/dcons@0.1.13(transitive)