Socket
Socket
Sign inDemoInstall

mobx-utils

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-utils - npm Package Compare versions

Comparing version 6.0.3 to 6.0.4

lib/whenValue.d.ts

14

CHANGELOG.md

@@ -0,1 +1,15 @@

# 6.0.4
* [ObservableGroupMap.ts: remove console.log #289](https://github.com/mobxjs/mobx-utils/pull/289)
* [Make observable promise's values safer type wise #295](https://github.com/mobxjs/mobx-utils/pull/295) Closes [Typing IRejectedPromise and IPendingPromise to hold an unknown value](https://github.com/mobxjs/mobx-utils/issues/291) Users of fromPromise may get new compile errors for invalid code. See PR for details.
# 6.0.3
* Fixed [#214](https://github.com/mobxjs/mobx-utils/issues/214) createViewModel doesn't work correctly with setters for computed values. ([#286](https://github.com/mobxjs/mobx-utils/pull/286))
* Use computedFn name if explicitly set in options [#277](https://github.com/mobxjs/mobx-utils/pull/277).
# 6.0.2
* skipped
# 6.0.1

@@ -2,0 +16,0 @@

6

lib/from-promise.d.ts

@@ -6,3 +6,3 @@ export declare type PromiseState = "pending" | "fulfilled" | "rejected";

declare type CaseHandlers<U, T> = {
pending?: (t?: T) => U;
pending?: (t?: unknown) => U;
fulfilled?: (t: T) => U;

@@ -17,3 +17,3 @@ rejected?: (e: any) => U;

readonly state: "pending";
readonly value: any;
readonly value: unknown;
};

@@ -26,3 +26,3 @@ export declare type IFulfilledPromise<T> = {

readonly state: "rejected";
readonly value: any;
readonly value: unknown;
};

@@ -29,0 +29,0 @@ export declare type IPromiseBasedObservable<T> = IBasePromiseBasedObservable<T> & (IPendingPromise | IFulfilledPromise<T> | IRejectedPromise);

@@ -215,3 +215,2 @@ var __extends = (this && this.__extends) || (function () {

reaction: reaction(function () { return _this._groupBy(item); }, function (newGroupByValue, _r) {
console.log("new group by value ", newGroupByValue);
var grouperItemInfo = item[_this._ogmInfoKey];

@@ -218,0 +217,0 @@ _this._removeFromGroupArr(grouperItemInfo.groupByValue, grouperItemInfo.groupArrIndex);

{
"name": "mobx-utils",
"version": "6.0.3",
"version": "6.0.4",
"description": "Utility functions and common patterns for MobX",

@@ -5,0 +5,0 @@ "main": "mobx-utils.umd.js",

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