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

mobx-state-tree

Package Overview
Dependencies
Maintainers
8
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-state-tree - npm Package Compare versions

Comparing version 5.1.8 to 5.2.0-alpha.1

dist/types/utility-types/lazy.d.ts

4

dist/core/action.d.ts

@@ -15,2 +15,6 @@ import { IDisposer, IAnyStateTreeNode, IActionContext } from "../internal";

}
export interface FunctionWithFlag extends Function {
_isMSTAction?: boolean;
_isFlowAction?: boolean;
}
export declare type IMiddlewareHandler = (actionCall: IMiddlewareEvent, next: (actionCall: IMiddlewareEvent, callback?: (value: any) => any) => void, abort: (value: any) => void) => any;

@@ -17,0 +21,0 @@ /**

@@ -375,6 +375,14 @@ import { IAnyStateTreeNode, IType, IAnyModelType, IStateTreeNode, IJsonPatch, IDisposer, IAnyType, ReferenceIdentifier, TypeOfValue, IActionContext, IAnyComplexType } from "../internal";

volatile: string[];
flowActions: string[];
}
/**
* Returns a reflection of the model node, including name, properties, views, volatile and actions.
* Returns a reflection of the model node, including name, properties, views, volatile state,
* and actions. `flowActions` is also provided as a separate array of names for any action that
* came from a flow generator as well.
*
* In the case where a model has two actions: `doSomething` and `doSomethingWithFlow`, where
* `doSomethingWithFlow` is a flow generator, the `actions` array will contain both actions,
* i.e. ["doSomething", "doSomethingWithFlow"], and the `flowActions` array will contain only
* the flow action, i.e. ["doSomethingWithFlow"].
*
* @param target

@@ -381,0 +389,0 @@ * @returns

@@ -33,2 +33,3 @@ export * from "./core/node/livelinessChecking";

export * from "./types/utility-types/late";
export * from "./types/utility-types/lazy";
export * from "./types/utility-types/frozen";

@@ -35,0 +36,0 @@ export * from "./types/utility-types/reference";

4

dist/types/complex-types/model.d.ts

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

import { IAnyType, IType, _CustomOrOther, _NotCustomized, Instance } from "../../internal";
import { IAnyType, IType, _CustomOrOther, _NotCustomized, Instance, FunctionWithFlag } from "../../internal";
/** @hidden */

@@ -78,3 +78,3 @@ export interface ModelProperties {

export interface ModelActions {
[key: string]: Function;
[key: string]: FunctionWithFlag;
}

@@ -81,0 +81,0 @@ export interface IModelType<PROPS extends ModelProperties, OTHERS, CustomC = _NotCustomized, CustomS = _NotCustomized> extends IType<ModelCreationType2<PROPS, CustomC>, ModelSnapshotType2<PROPS, CustomS>, ModelInstanceType<PROPS, OTHERS>> {

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

import { enumeration, model, compose, custom, reference, safeReference, union, optional, literal, maybe, maybeNull, refinement, map, array, frozen, late, snapshotProcessor } from "../internal";
import { enumeration, model, compose, custom, reference, safeReference, union, optional, literal, maybe, maybeNull, refinement, map, array, frozen, late, lazy, snapshotProcessor } from "../internal";
export declare const types: {

@@ -19,2 +19,4 @@ enumeration: typeof enumeration;

integer: import("../internal").ISimpleType<number>;
float: import("../internal").ISimpleType<number>;
finite: import("../internal").ISimpleType<number>;
Date: import("../internal").IType<number | Date, number, Date>;

@@ -27,2 +29,3 @@ map: typeof map;

late: typeof late;
lazy: typeof lazy;
undefined: import("../internal").ISimpleType<undefined>;

@@ -29,0 +32,0 @@ null: import("../internal").ISimpleType<null>;

@@ -30,3 +30,2 @@ import { ISimpleType, IType } from "../internal";

* `types.integer` - Creates a type that can only contain an integer value.
* This type is used for integer values by default
*

@@ -43,2 +42,26 @@ * Example:

/**
* `types.float` - Creates a type that can only contain an float value.
*
* Example:
* ```ts
* const Size = types.model({
* width: types.float,
* height: 10
* })
* ```
*/
export declare const float: ISimpleType<number>;
/**
* `types.finite` - Creates a type that can only contain an finite value.
*
* Example:
* ```ts
* const Size = types.model({
* width: types.finite,
* height: 10
* })
* ```
*/
export declare const finite: ISimpleType<number>;
/**
* `types.boolean` - Creates a type that can only contain a boolean value.

@@ -45,0 +68,0 @@ * This type is used for boolean values by default

{
"name": "mobx-state-tree",
"version": "5.1.8",
"version": "5.2.0-alpha.1",
"description": "Opinionated, transactional, MobX powered state container",

@@ -89,3 +89,3 @@ "main": "dist/mobx-state-tree.js",

],
"gitHead": "50e6df954da72fd2875bffb14bda0d59e134c792"
"gitHead": "27ec7ac0b0743a367fb01a7f40192f3042bd91f2"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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