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

mobx-rest

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-rest - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

9

CHANGELOG.md
# Changelog
## `3.0.5`
- Rollback default `patch` flag value to `true`.
## `3.0.0`
New features 🎩:
- Reimplemented `mustFind` and `mustGet` methods in Collection.

@@ -10,2 +16,3 @@ - Brought back the `request` attribute in Model. The attribute tracks the last issued request.

Solved bugs 🐛:
- Fix https://github.com/masylum/mobx-rest/issues/47

@@ -15,2 +22,3 @@ - Fix https://github.com/masylum/mobx-rest/issues/41

What's changed 💅:
- Migrated to Typescript

@@ -20,2 +28,3 @@ - Made RPC label optional with a default `fetching` value

Breaking changes ☢️:
- Migrated to Mobx 5+

@@ -22,0 +31,0 @@ - Rollback default `keepChanges` flag value to `false`.

2

lib/index.js

@@ -409,3 +409,3 @@ 'use strict';

if (_a === void 0) { _a = {}; }
var _b = _a.optimistic, optimistic = _b === void 0 ? true : _b, _c = _a.patch, patch = _c === void 0 ? false : _c, _d = _a.keepChanges, keepChanges = _d === void 0 ? false : _d, otherOptions = __rest(_a, ["optimistic", "patch", "keepChanges"]);
var _b = _a.optimistic, optimistic = _b === void 0 ? true : _b, _c = _a.patch, patch = _c === void 0 ? true : _c, _d = _a.keepChanges, keepChanges = _d === void 0 ? false : _d, otherOptions = __rest(_a, ["optimistic", "patch", "keepChanges"]);
var currentAttributes = this.toJS();

@@ -412,0 +412,0 @@ var label = this.isNew ? 'creating' : 'updating';

{
"name": "mobx-rest",
"version": "3.0.4",
"version": "3.0.5",
"description": "REST conventions for mobx.",

@@ -5,0 +5,0 @@ "jest": {

@@ -285,2 +285,3 @@ # mobx-rest

only the changed attributes instead of the whole resource down the wire.
- `keepChanges = false` Whether we want to keep the changes after the response from the API.

@@ -287,0 +288,0 @@ Example:

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