Skip to content

Instantly share code, notes, and snippets.

View Tvaroh's full-sized avatar
😻
Happy programming

Aliaksandr Siamionau Tvaroh

😻
Happy programming
View GitHub Profile
@Tvaroh
Tvaroh / gist:48622f4d989e2bc8366e
Last active August 29, 2015 14:08
Morearty.js releases history
* 0.5.0 - Update to Immutable 3.0.
* 0.4.6-0.4.7 - Maintenance releases.
* 0.4.5 - Update to Immutable 2.5. Make `TransactionContext` mutable.
* 0.4.4 - Update to Immutable 2.3. Add `Binding.toJS` method.
* 0.4.3 - Fix: Morearty.isChanged now checks equality with Sequence.equals.
* 0.4.2 - Moved browserify-shim transform to build script as it applies on each module require.
* 0.4.1 - Fix #22 (index.js and dist/morearty.js are not in npm package).
* 0.4.0 - Normalize dependencies (no need to pass React and Immutable around). New standalone build (thanks to Marat Bektimirov). Fixes #19.
* 0.3.6 - Fix incorrect behavior of `Binding.clear`. Correct `Context.isChanged` when rendering on requestAnimationFrame. Minor improvements.
* 0.3.5 - Fix caching issue.
@Tvaroh
Tvaroh / TransitSvc.js
Last active June 2, 2017 19:40
transit-js bridge to immutable 3.0
define(['transit', 'immutable'], function (Transit, Imm) {
'use strict';
var reader = Transit.reader('json', {
arrayBuilder: {
init: function () { return Imm.List.of().asMutable(); },
add: function (ret, val) { return ret.push(val); },
finalize: function (ret) { return ret.asImmutable(); },
fromArray: function (arr) { return Imm.List(arr); }
},