New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mobx-state-tree

Package Overview
Dependencies
Maintainers
5
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 3.16.0 to 3.17.1

45

dist/core/flow.d.ts

@@ -19,1 +19,46 @@ /**

export declare function castFlowReturn<T>(val: T): T;
/**
* @experimental
* experimental api - might change on minor/patch releases
*
* Convert a promise-returning function to a generator-returning one.
* This is intended to allow for usage of `yield*` in async actions to
* retain the promise return type.
*
* Example:
* ```ts
* function getDataAsync(input: string): Promise<number> { ... }
* const getDataGen = toGeneratorFunction(getDataAsync);
*
* const someModel.actions(self => ({
* someAction: flow(function*() {
* // value is typed as number
* const value = yield* getDataGen("input value");
* ...
* })
* }))
* ```
*/
export declare function toGeneratorFunction<R, Args extends any[]>(p: (...args: Args) => Promise<R>): (...args: Args) => Generator<Promise<R>, R, R>;
/**
* @experimental
* experimental api - might change on minor/patch releases
*
* Convert a promise to a generator yielding that promise
* This is intended to allow for usage of `yield*` in async actions to
* retain the promise return type.
*
* Example:
* ```ts
* function getDataAsync(input: string): Promise<number> { ... }
*
* const someModel.actions(self => ({
* someAction: flow(function*() {
* // value is typed as number
* const value = yield* toGenerator(getDataAsync("input value"));
* ...
* })
* }))
* ```
*/
export declare function toGenerator<R>(p: Promise<R>): Generator<Promise<R>, R, R>;

2

dist/index.d.ts
export { IModelType, IAnyModelType, IDisposer, IMSTMap, IMapType, IMSTArray, IArrayType, IType, IAnyType, ModelPrimitive, ISimpleType, IComplexType, IAnyComplexType, IReferenceType, _CustomCSProcessor, _CustomOrOther, _CustomJoin, _NotCustomized, typecheck, escapeJsonPath, unescapeJsonPath, joinJsonPath, splitJsonPath, IJsonPatch, IReversibleJsonPatch, decorate, addMiddleware, IMiddlewareEvent, IActionTrackingMiddleware2Call, IMiddlewareHandler, IMiddlewareEventType, IActionTrackingMiddlewareHooks, IActionTrackingMiddleware2Hooks, process, isStateTreeNode, IStateTreeNode, IAnyStateTreeNode, flow, castFlowReturn, applyAction, onAction, IActionRecorder, ISerializedActionCall, recordActions, createActionTrackingMiddleware, createActionTrackingMiddleware2, setLivelinessChecking, getLivelinessChecking, LivelinessMode, setLivelynessChecking, // to be deprecated
LivelynessMode, // to be deprecated
ModelSnapshotType, ModelCreationType, ModelSnapshotType2, ModelCreationType2, ModelInstanceType, ModelInstanceTypeProps, ModelPropertiesDeclarationToProperties, ModelProperties, ModelPropertiesDeclaration, ModelActions, ITypeUnion, CustomTypeOptions, UnionOptions, Instance, SnapshotIn, SnapshotOut, SnapshotOrInstance, TypeOrStateTreeNodeToStateTreeNode, UnionStringArray, getType, getChildType, onPatch, onSnapshot, applyPatch, IPatchRecorder, recordPatches, protect, unprotect, isProtected, applySnapshot, getSnapshot, hasParent, getParent, hasParentOfType, getParentOfType, getRoot, getPath, getPathParts, isRoot, resolvePath, resolveIdentifier, getIdentifier, tryResolve, getRelativePath, clone, detach, destroy, isAlive, addDisposer, getEnv, walk, IModelReflectionData, IModelReflectionPropertiesData, IMaybeIType, IMaybe, IMaybeNull, IOptionalIType, OptionalDefaultValueOrFunction, ValidOptionalValue, ValidOptionalValues, getMembers, getPropertyMembers, TypeOfValue, cast, castToSnapshot, castToReferenceSnapshot, isType, isArrayType, isFrozenType, isIdentifierType, isLateType, isLiteralType, isMapType, isModelType, isOptionalType, isPrimitiveType, isReferenceType, isRefinementType, isUnionType, tryReference, isValidReference, OnReferenceInvalidated, OnReferenceInvalidatedEvent, ReferenceOptions, ReferenceOptionsGetSet, ReferenceOptionsOnInvalidated, ReferenceIdentifier, ISnapshotProcessor, ISnapshotProcessors, getNodeId, IActionContext, getRunningActionContext, isActionContextChildOf, isActionContextThisOrChildOf, types } from "./internal";
ModelSnapshotType, ModelCreationType, ModelSnapshotType2, ModelCreationType2, ModelInstanceType, ModelInstanceTypeProps, ModelPropertiesDeclarationToProperties, ModelProperties, ModelPropertiesDeclaration, ModelActions, ITypeUnion, CustomTypeOptions, UnionOptions, Instance, SnapshotIn, SnapshotOut, SnapshotOrInstance, TypeOrStateTreeNodeToStateTreeNode, UnionStringArray, getType, getChildType, onPatch, onSnapshot, applyPatch, IPatchRecorder, recordPatches, protect, unprotect, isProtected, applySnapshot, getSnapshot, hasParent, getParent, hasParentOfType, getParentOfType, getRoot, getPath, getPathParts, isRoot, resolvePath, resolveIdentifier, getIdentifier, tryResolve, getRelativePath, clone, detach, destroy, isAlive, addDisposer, getEnv, walk, IModelReflectionData, IModelReflectionPropertiesData, IMaybeIType, IMaybe, IMaybeNull, IOptionalIType, OptionalDefaultValueOrFunction, ValidOptionalValue, ValidOptionalValues, getMembers, getPropertyMembers, TypeOfValue, cast, castToSnapshot, castToReferenceSnapshot, isType, isArrayType, isFrozenType, isIdentifierType, isLateType, isLiteralType, isMapType, isModelType, isOptionalType, isPrimitiveType, isReferenceType, isRefinementType, isUnionType, tryReference, isValidReference, OnReferenceInvalidated, OnReferenceInvalidatedEvent, ReferenceOptions, ReferenceOptionsGetSet, ReferenceOptionsOnInvalidated, ReferenceIdentifier, ISnapshotProcessor, ISnapshotProcessors, getNodeId, IActionContext, getRunningActionContext, isActionContextChildOf, isActionContextThisOrChildOf, types, toGeneratorFunction, toGenerator } from "./internal";
{
"name": "mobx-state-tree",
"version": "3.16.0",
"version": "3.17.1",
"description": "Opinionated, transactional, MobX powered state container",

@@ -51,25 +51,25 @@ "main": "dist/mobx-state-tree.js",

"devDependencies": {
"@types/jest": "^24.0.11",
"@types/jest": "^26.0.3",
"@types/node": "^12.0.2",
"concat": "^1.0.3",
"coveralls": "^3.0.3",
"coveralls": "^3.1.0",
"cpr": "^3.0.1",
"cross-env": "^6.0.3",
"jest": "^24.5.0",
"jest-junit": "^8.0.0",
"cross-env": "^7.0.2",
"jest": "^26.1.0",
"jest-junit": "^11.0.1",
"lerna": "^3.13.1",
"mobx": "^5.13.0",
"rollup": "^1.6.0",
"rollup": "^2.18.1",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-filesize": "^6.0.1",
"rollup-plugin-filesize": "^9.0.1",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-terser": "^5.0.0",
"rollup-plugin-terser": "^6.1.0",
"shx": "^0.3.2",
"size-limit": "^2.1.6",
"size-limit": "^4.5.2",
"spec.ts": "^1.1.3",
"ts-jest": "^24.0.0",
"ts-node": "^8.0.3",
"tslib": "^1.9.3",
"tslint": "^5.14.0",
"ts-jest": "^26.1.1",
"ts-node": "^8.10.2",
"tslib": "^2.0.0",
"tslint": "^6.1.2",
"typedoc": "^0.15.0",

@@ -91,3 +91,3 @@ "typedoc-plugin-markdown": "^2.0.10",

],
"gitHead": "19012c2c0f50a8b89cecdd045cb5ce98db950287"
"gitHead": "409b348575df0bbe9bcf80257c56c979232505d9"
}

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