Skip to content

Commit aec69b3

Browse files
author
Travis CI
committed
Deploy cc239f4 to NPM branch
1 parent 5b1d40b commit aec69b3

File tree

2 files changed

+5214
-5216
lines changed

2 files changed

+5214
-5216
lines changed

dist/immutable.es.js

+44-45
Original file line numberDiff line numberDiff line change
@@ -2088,12 +2088,12 @@ function updateInDeeply(
20882088
);
20892089
}
20902090

2091-
function setIn$1(collection, keyPath, value) {
2091+
function setIn(collection, keyPath, value) {
20922092
return updateIn(collection, keyPath, NOT_SET, function () { return value; });
20932093
}
20942094

2095-
function setIn$$1(keyPath, v) {
2096-
return setIn$1(this, keyPath, v);
2095+
function setIn$1(keyPath, v) {
2096+
return setIn(this, keyPath, v);
20972097
}
20982098

20992099
function removeIn(collection, keyPath) {
@@ -2104,14 +2104,14 @@ function deleteIn(keyPath) {
21042104
return removeIn(this, keyPath);
21052105
}
21062106

2107-
function update$1(collection, key, notSetValue, updater) {
2107+
function update(collection, key, notSetValue, updater) {
21082108
return updateIn(collection, [key], notSetValue, updater);
21092109
}
21102110

2111-
function update$$1(key, notSetValue, updater) {
2111+
function update$1(key, notSetValue, updater) {
21122112
return arguments.length === 1
21132113
? key(this)
2114-
: update$1(this, key, notSetValue, updater);
2114+
: update(this, key, notSetValue, updater);
21152115
}
21162116

21172117
function updateIn$1(keyPath, notSetValue, updater) {
@@ -2153,7 +2153,7 @@ function mergeIntoKeyedWith(collection, collections, merger) {
21532153
return collection.withMutations(function (collection) {
21542154
var mergeIntoCollection = merger
21552155
? function (value, key) {
2156-
update$1(
2156+
update(
21572157
collection,
21582158
key,
21592159
NOT_SET,
@@ -2183,14 +2183,14 @@ function mergeWith$1(merger, collection) {
21832183
return mergeWithSources(collection, sources, merger);
21842184
}
21852185

2186-
function mergeDeep$1(collection) {
2186+
function mergeDeep(collection) {
21872187
var sources = [], len = arguments.length - 1;
21882188
while ( len-- > 0 ) sources[ len ] = arguments[ len + 1 ];
21892189

21902190
return mergeDeepWithSources(collection, sources);
21912191
}
21922192

2193-
function mergeDeepWith$1(merger, collection) {
2193+
function mergeDeepWith(merger, collection) {
21942194
var sources = [], len = arguments.length - 2;
21952195
while ( len-- > 0 ) sources[ len ] = arguments[ len + 2 ];
21962196

@@ -2252,14 +2252,14 @@ function deepMergerWith(merger) {
22522252
return deepMerger;
22532253
}
22542254

2255-
function mergeDeep() {
2255+
function mergeDeep$1() {
22562256
var iters = [], len = arguments.length;
22572257
while ( len-- ) iters[ len ] = arguments[ len ];
22582258

22592259
return mergeDeepWithSources(this, iters);
22602260
}
22612261

2262-
function mergeDeepWith(merger) {
2262+
function mergeDeepWith$1(merger) {
22632263
var iters = [], len = arguments.length - 1;
22642264
while ( len-- > 0 ) iters[ len ] = arguments[ len + 1 ];
22652265

@@ -2446,14 +2446,14 @@ var MapPrototype = Map.prototype;
24462446
MapPrototype[IS_MAP_SENTINEL] = true;
24472447
MapPrototype[DELETE] = MapPrototype.remove;
24482448
MapPrototype.removeAll = MapPrototype.deleteAll;
2449-
MapPrototype.setIn = setIn$$1;
2449+
MapPrototype.setIn = setIn$1;
24502450
MapPrototype.removeIn = MapPrototype.deleteIn = deleteIn;
2451-
MapPrototype.update = update$$1;
2451+
MapPrototype.update = update$1;
24522452
MapPrototype.updateIn = updateIn$1;
24532453
MapPrototype.merge = MapPrototype.concat = merge;
24542454
MapPrototype.mergeWith = mergeWith;
2455-
MapPrototype.mergeDeep = mergeDeep;
2456-
MapPrototype.mergeDeepWith = mergeDeepWith;
2455+
MapPrototype.mergeDeep = mergeDeep$1;
2456+
MapPrototype.mergeDeepWith = mergeDeepWith$1;
24572457
MapPrototype.mergeIn = mergeIn;
24582458
MapPrototype.mergeDeepIn = mergeDeepIn;
24592459
MapPrototype.withMutations = withMutations;
@@ -2484,7 +2484,7 @@ ArrayMapNode.prototype.get = function get (shift, keyHash, key, notSetValue) {
24842484
return notSetValue;
24852485
};
24862486

2487-
ArrayMapNode.prototype.update = function update$$1 (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
2487+
ArrayMapNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
24882488
var removed = value === NOT_SET;
24892489

24902490
var entries = this.entries;
@@ -2557,7 +2557,7 @@ BitmapIndexedNode.prototype.get = function get (shift, keyHash, key, notSetValue
25572557
);
25582558
};
25592559

2560-
BitmapIndexedNode.prototype.update = function update$$1 (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
2560+
BitmapIndexedNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
25612561
if (keyHash === undefined) {
25622562
keyHash = hash(key);
25632563
}
@@ -2639,7 +2639,7 @@ HashArrayMapNode.prototype.get = function get (shift, keyHash, key, notSetValue)
26392639
: notSetValue;
26402640
};
26412641

2642-
HashArrayMapNode.prototype.update = function update$$1 (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
2642+
HashArrayMapNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
26432643
if (keyHash === undefined) {
26442644
keyHash = hash(key);
26452645
}
@@ -2704,7 +2704,7 @@ HashCollisionNode.prototype.get = function get (shift, keyHash, key, notSetValue
27042704
return notSetValue;
27052705
};
27062706

2707-
HashCollisionNode.prototype.update = function update$$1 (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
2707+
HashCollisionNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
27082708
if (keyHash === undefined) {
27092709
keyHash = hash(key);
27102710
}
@@ -2774,7 +2774,7 @@ ValueNode.prototype.get = function get (shift, keyHash, key, notSetValue) {
27742774
return is(key, this.entry[0]) ? this.entry[1] : notSetValue;
27752775
};
27762776

2777-
ValueNode.prototype.update = function update$$1 (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
2777+
ValueNode.prototype.update = function update (ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
27782778
var removed = value === NOT_SET;
27792779
var keyMatch = is(key, this.entry[0]);
27802780
if (keyMatch ? value === this.entry[1] : removed) {
@@ -3324,9 +3324,9 @@ var ListPrototype = List.prototype;
33243324
ListPrototype[IS_LIST_SENTINEL] = true;
33253325
ListPrototype[DELETE] = ListPrototype.remove;
33263326
ListPrototype.merge = ListPrototype.concat;
3327-
ListPrototype.setIn = setIn$$1;
3327+
ListPrototype.setIn = setIn$1;
33283328
ListPrototype.deleteIn = ListPrototype.removeIn = deleteIn;
3329-
ListPrototype.update = update$$1;
3329+
ListPrototype.update = update$1;
33303330
ListPrototype.updateIn = updateIn$1;
33313331
ListPrototype.mergeIn = mergeIn;
33323332
ListPrototype.mergeDeepIn = mergeDeepIn;
@@ -3349,7 +3349,7 @@ var VNode = function VNode(array, ownerID) {
33493349
// TODO: seems like these methods are very similar
33503350

33513351
VNode.prototype.removeBefore = function removeBefore (ownerID, level, index) {
3352-
if (index === level ? 1 << level : 0 || this.array.length === 0) {
3352+
if (index === level ? 1 << level : this.array.length === 0) {
33533353
return this;
33543354
}
33553355
var originIndex = (index >>> level) & MASK;
@@ -4598,7 +4598,7 @@ var Range = (function (IndexedSeq$$1) {
45984598

45994599
var EMPTY_RANGE;
46004600

4601-
function getIn$1(collection, searchKeyPath, notSetValue) {
4601+
function getIn(collection, searchKeyPath, notSetValue) {
46024602
var keyPath = coerceKeyPath(searchKeyPath);
46034603
var i = 0;
46044604
while (i !== keyPath.length) {
@@ -4610,16 +4610,16 @@ function getIn$1(collection, searchKeyPath, notSetValue) {
46104610
return collection;
46114611
}
46124612

4613-
function getIn$$1(searchKeyPath, notSetValue) {
4614-
return getIn$1(this, searchKeyPath, notSetValue);
4613+
function getIn$1(searchKeyPath, notSetValue) {
4614+
return getIn(this, searchKeyPath, notSetValue);
46154615
}
46164616

4617-
function hasIn$1(collection, keyPath) {
4618-
return getIn$1(collection, keyPath, NOT_SET) !== NOT_SET;
4617+
function hasIn(collection, keyPath) {
4618+
return getIn(collection, keyPath, NOT_SET) !== NOT_SET;
46194619
}
46204620

4621-
function hasIn$$1(searchKeyPath) {
4622-
return hasIn$1(this, searchKeyPath);
4621+
function hasIn$1(searchKeyPath) {
4622+
return hasIn(this, searchKeyPath);
46234623
}
46244624

46254625
function toObject() {
@@ -4933,7 +4933,7 @@ mixin(Collection, {
49334933
return this.find(function (_, key) { return is(key, searchKey); }, undefined, notSetValue);
49344934
},
49354935

4936-
getIn: getIn$$1,
4936+
getIn: getIn$1,
49374937

49384938
groupBy: function groupBy(grouper, context) {
49394939
return groupByFactory(this, grouper, context);
@@ -4943,7 +4943,7 @@ mixin(Collection, {
49434943
return this.get(searchKey, NOT_SET) !== NOT_SET;
49444944
},
49454945

4946-
hasIn: hasIn$$1,
4946+
hasIn: hasIn$1,
49474947

49484948
isSubset: function isSubset(iter) {
49494949
iter = typeof iter.includes === 'function' ? iter : Collection(iter);
@@ -5582,16 +5582,16 @@ var RecordPrototype = Record.prototype;
55825582
RecordPrototype[IS_RECORD_SENTINEL] = true;
55835583
RecordPrototype[DELETE] = RecordPrototype.remove;
55845584
RecordPrototype.deleteIn = RecordPrototype.removeIn = deleteIn;
5585-
RecordPrototype.getIn = getIn$$1;
5585+
RecordPrototype.getIn = getIn$1;
55865586
RecordPrototype.hasIn = CollectionPrototype.hasIn;
55875587
RecordPrototype.merge = merge;
55885588
RecordPrototype.mergeWith = mergeWith;
55895589
RecordPrototype.mergeIn = mergeIn;
5590-
RecordPrototype.mergeDeep = mergeDeep;
5591-
RecordPrototype.mergeDeepWith = mergeDeepWith;
5590+
RecordPrototype.mergeDeep = mergeDeep$1;
5591+
RecordPrototype.mergeDeepWith = mergeDeepWith$1;
55925592
RecordPrototype.mergeDeepIn = mergeDeepIn;
5593-
RecordPrototype.setIn = setIn$$1;
5594-
RecordPrototype.update = update$$1;
5593+
RecordPrototype.setIn = setIn$1;
5594+
RecordPrototype.update = update$1;
55955595
RecordPrototype.updateIn = updateIn$1;
55965596
RecordPrototype.withMutations = withMutations;
55975597
RecordPrototype.asMutable = asMutable;
@@ -5779,7 +5779,6 @@ function defaultConverter(k, v) {
57795779

57805780
var version = "4.0.0-rc.9";
57815781

5782-
// Functional read/write API
57835782
var Immutable = {
57845783
version: version,
57855784

@@ -5812,23 +5811,23 @@ var Immutable = {
58125811
isValueObject: isValueObject,
58135812

58145813
get: get,
5815-
getIn: getIn$1,
5814+
getIn: getIn,
58165815
has: has,
5817-
hasIn: hasIn$1,
5816+
hasIn: hasIn,
58185817
merge: merge$1,
5819-
mergeDeep: mergeDeep$1,
5818+
mergeDeep: mergeDeep,
58205819
mergeWith: mergeWith$1,
5821-
mergeDeepWith: mergeDeepWith$1,
5820+
mergeDeepWith: mergeDeepWith,
58225821
remove: remove,
58235822
removeIn: removeIn,
58245823
set: set,
5825-
setIn: setIn$1,
5826-
update: update$1,
5824+
setIn: setIn,
5825+
update: update,
58275826
updateIn: updateIn,
58285827
};
58295828

58305829
// Note: Iterable is deprecated
58315830
var Iterable = Collection;
58325831

5833-
export { version, Collection, Iterable, Seq, Map, OrderedMap, List, Stack, Set, OrderedSet, Record, Range, Repeat, is, fromJS, hash, isImmutable, isCollection, isKeyed, isIndexed, isAssociative, isOrdered, isValueObject, get, getIn$1 as getIn, has, hasIn$1 as hasIn, merge$1 as merge, mergeDeep$1 as mergeDeep, mergeWith$1 as mergeWith, mergeDeepWith$1 as mergeDeepWith, remove, removeIn, set, setIn$1 as setIn, update$1 as update, updateIn };
58345832
export default Immutable;
5833+
export { version, Collection, Iterable, Seq, Map, OrderedMap, List, Stack, Set, OrderedSet, Record, Range, Repeat, is, fromJS, hash, isImmutable, isCollection, isKeyed, isIndexed, isAssociative, isOrdered, isValueObject, get, getIn, has, hasIn, merge$1 as merge, mergeDeep, mergeWith$1 as mergeWith, mergeDeepWith, remove, removeIn, set, setIn, update, updateIn };

0 commit comments

Comments
 (0)