eugeneware / eugeneware/changeset

Error when changing object field to string

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
122
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Currently, there is an issue when diffing and patching an object where the types of a field changes from an object to a string.

That is, I would expect the following to work:
```
var a = {hello: {nested: 2}};
var b = {hello: 3};
var changeset = diff(a, b);
var b_ = diff.apply(changeset, a);
expect(b).to.deep.equals(b_);
```
However, `b_` is set to `{hello: {}}` following the above operations.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.