• Stars
    star
    261
  • Rank 153,604 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Immutable Diff

Create RFC 6902 style patches between Immutable.JS data structures, such as Maps, Lists, and Sets.

Getting Started

Install immutablediff using npm or yarn:

# npm...
npm install --save immutablediff

# ...or yarn
yarn add immutablediff

You can then use it to get the diff ops between you Immutable.JS data structures.

var Immutable = require('immutable');
var diff = require('immutablediff');

var map1 = Immutable.Map({a:1, b:2, c:3});
var map2 = Immutable.Map({a:1, b:2, c:3, d: 4});

diff(map1, map2);
// List [ Map { op: "add", path: "/d", value: 4 } ]

The result of diff is an Immutable Sequence of operations

Immutable Patch

If you want to use the resulting diff to apply patches to other Immutable data structures, you can use the package immutablepatch. Source code available here

More Repositories

1

immutable-js-patch

JavaScript
87
star
2

tinymap

🔬 Memory-Efficient Immutable HashMap/HashSet
Java
81
star
3

python-fastpip

Perceptually Important Points
Python
36
star
4

dummyldap

🔑 Portable dummy LDAP server for development
Java
33
star
5

django-oidc-auth

An OpenID Connect Client for Django.
Python
28
star
6

introspective

🤔 JVM Introspection Utilities
Java
23
star
7

disq

💾 Simple, fast, disk-backed queue and task executor for Java 8.
Java
20
star
8

slowproxy

🐌 Bandwidth throttling proxy
Java
19
star
9

omnicron

⌚ Simple, fast, zero-dependency Cron expression evaluator for Java 8
Java
12
star
10

lognit-cli

Lognit command-line interface
Java
12
star
11

esper

esper git fork
Java
9
star
12

neb2activemq

Integration between nagios and activemq
Python
6
star
13

safe_syslog_handler

SafeSysLogHandler recreates the connection to a remote logging server when the connection is lost, avoiding the [errno 32] Broken Pipe error which would occur when using the SysLogHandler.
Python
6
star
14

python-openidconnect

OpenID Connect server library for Python
Python
6
star
15

challenge-eventstore

Hiring challenge: implement the EventStore interface
Java
6
star
16

challenge-chart-plot

6
star
17

graylog2-plugin-output-syslog

Syslog forward plugin for Graylog2
Java
5
star
18

django-cubes

Django Integration with cubes
Python
5
star
19

eslint-config

Intelie's standard eslint config
JavaScript
4
star
20

fastpip-js

Segmentation Based On Turning Points
JavaScript
3
star
21

holmes-cli

holmes command line interface
Python
3
star
22

triplestore-js

3
star
23

liveclient-python

Library for interacting with Intelie Live
Python
2
star
24

pipes-docs

Pipes Documentation
HTML
2
star
25

wordpress-iem-notifier

PHP
2
star
26

challenge-dev-prod

Rust
2
star
27

quiz

quiz
2
star
28

gitbook-drilling

Groovy
2
star
29

environment

Intelie Environment
Shell
2
star
30

challenge-remote-access

2
star
31

pycollector

Python
2
star
32

stomp_sender

Python
1
star
33

prettier-config

Intelie's standard prettier config
JavaScript
1
star
34

setupy

Python
1
star
35

puppet-timezone

Puppet timezone for Centos
Puppet
1
star
36

collectd_write_stomp

Stomp plugin to collectd (in python)
Python
1
star
37

python-live-client

Intelie Live client written in python.
Python
1
star
38

gitbook-platform

1
star
39

plugin-random-forest-demo

Example of Live plugin implementing a LSTM network
Java
1
star
40

collectd-activemq

Java
1
star
41

plugin-lstm-demo

Example of Live plugin implementing a LSTM network
Java
1
star
42

collector

Reading and writing activemq java example using spring and camel
Java
1
star