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

@rimbu/actor

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/actor - npm Package Compare versions

Comparing version 0.5.9 to 0.6.0

6

dist/main/obs.js

@@ -148,3 +148,3 @@ "use strict";

var pureState = this.pureState;
var newState = deep_1.Patch(pureState).apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(patches)));
var newState = deep_1.patch(pureState).apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(patches)));
this.setState(newState);

@@ -207,3 +207,3 @@ };

var newParentState = deep_1.Path.patchValue(_this.state, pathInState, newChildState);
return deep_1.Literal(newParentState);
return deep_1.Literal.of(newParentState);
}, options);

@@ -271,3 +271,3 @@ };

var parentPatch = mapFrom(newCombinedState);
var _a = tslib_1.__read(deep_1.Patch([
var _a = tslib_1.__read(deep_1.patch([
_this.state,

@@ -274,0 +274,0 @@ other.state,

import { Eq } from '@rimbu/common';
import { Literal, Patch, Path } from '@rimbu/deep';
import { Literal, patch, Path } from '@rimbu/deep';
export var Obs;

@@ -109,3 +109,3 @@ (function (Obs) {

const pureState = this.pureState;
const newState = Patch(pureState)(...patches);
const newState = patch(pureState)(...patches);
this.setState(newState);

@@ -163,3 +163,3 @@ }

const newParentState = Path.patchValue(this.state, pathInState, newChildState);
return Literal(newParentState);
return Literal.of(newParentState);
}, options);

@@ -223,3 +223,3 @@ }

const parentPatch = mapFrom(newCombinedState);
const [newThisState, newOtherState] = Patch([
const [newThisState, newOtherState] = patch([
this.state,

@@ -226,0 +226,0 @@ other.state,

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

import { Obs } from './internal';
import type { Obs } from './internal';
/**

@@ -3,0 +3,0 @@ * Am `Actor` that has an `Obs` instance so that its state can be observed and modified. Its main aim is to allow

{
"name": "@rimbu/actor",
"version": "0.5.9",
"version": "0.6.0",
"description": "State management tools to create stateful logic that can be easily integrated in any framework",

@@ -42,2 +42,3 @@ "keywords": [

"build": "yarn clean && yarn bundle",
"build:deno": "rimraf deno_dist ../../deno_dist/actor && denoify && cp ../../config/mod_ts_template deno_dist/mod.ts && mv deno_dist ../../deno_dist/actor",
"bundle": "yarn bundle:main && yarn bundle:module && yarn bundle:types",

@@ -58,3 +59,3 @@ "bundle:main": "tsc --p tsconfig.main.json",

"dependencies": {
"@rimbu/deep": "^0.5.9"
"@rimbu/deep": "^0.6.0"
},

@@ -64,3 +65,6 @@ "publishConfig": {

},
"gitHead": "0158eaad0dec4503e92cb308af952869d68faad5"
"denoify": {
"replacer": "../../config/denoify-rimbu-replacer.js"
},
"gitHead": "dbcaad0cb6b1e31ffa64ca2739b9ddb0fc178ebc"
}
<p align="center">
<img src="../../assets/rimbu_logo.svg" />
<img src="https://github.com/rimbu-org/rimbu/raw/main/assets/rimbu_logo.svg" />
</p>

@@ -25,5 +25,3 @@

{
// ...
"compilerOptions": {
// ...
"skipLibCheck": true,

@@ -30,0 +28,0 @@ "noStrictGenericChecks": true

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

import { Obs } from './internal';
import type { Obs } from './internal';

@@ -3,0 +3,0 @@ /**

import { Eq } from '@rimbu/common';
import { Immutable, Literal, Patch, Path } from '@rimbu/deep';
import { Immutable, Literal, patch, Patch, Path } from '@rimbu/deep';

@@ -564,3 +564,3 @@ /**

const newState = Patch(pureState as T)(...patches) as T;
const newState = patch(pureState as T)(...patches) as T;

@@ -666,3 +666,3 @@ this.setState(newState);

return Literal(newParentState) as any;
return Literal.of(newParentState) as any;
},

@@ -770,3 +770,3 @@ options

const [newThisState, newOtherState] = Patch([
const [newThisState, newOtherState] = patch([
this.state,

@@ -773,0 +773,0 @@ other.state,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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