@@ -2088,12 +2088,12 @@ function updateInDeeply(
2088
2088
) ;
2089
2089
}
2090
2090
2091
- function setIn$1 ( collection , keyPath , value ) {
2091
+ function setIn ( collection , keyPath , value ) {
2092
2092
return updateIn ( collection , keyPath , NOT_SET , function ( ) { return value ; } ) ;
2093
2093
}
2094
2094
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 ) ;
2097
2097
}
2098
2098
2099
2099
function removeIn ( collection , keyPath ) {
@@ -2104,14 +2104,14 @@ function deleteIn(keyPath) {
2104
2104
return removeIn ( this , keyPath ) ;
2105
2105
}
2106
2106
2107
- function update$1 ( collection , key , notSetValue , updater ) {
2107
+ function update ( collection , key , notSetValue , updater ) {
2108
2108
return updateIn ( collection , [ key ] , notSetValue , updater ) ;
2109
2109
}
2110
2110
2111
- function update$$ 1 ( key , notSetValue , updater ) {
2111
+ function update$1 ( key , notSetValue , updater ) {
2112
2112
return arguments . length === 1
2113
2113
? key ( this )
2114
- : update$1 ( this , key , notSetValue , updater ) ;
2114
+ : update ( this , key , notSetValue , updater ) ;
2115
2115
}
2116
2116
2117
2117
function updateIn$1 ( keyPath , notSetValue , updater ) {
@@ -2153,7 +2153,7 @@ function mergeIntoKeyedWith(collection, collections, merger) {
2153
2153
return collection . withMutations ( function ( collection ) {
2154
2154
var mergeIntoCollection = merger
2155
2155
? function ( value , key ) {
2156
- update$1 (
2156
+ update (
2157
2157
collection ,
2158
2158
key ,
2159
2159
NOT_SET ,
@@ -2183,14 +2183,14 @@ function mergeWith$1(merger, collection) {
2183
2183
return mergeWithSources ( collection , sources , merger ) ;
2184
2184
}
2185
2185
2186
- function mergeDeep$1 ( collection ) {
2186
+ function mergeDeep ( collection ) {
2187
2187
var sources = [ ] , len = arguments . length - 1 ;
2188
2188
while ( len -- > 0 ) sources [ len ] = arguments [ len + 1 ] ;
2189
2189
2190
2190
return mergeDeepWithSources ( collection , sources ) ;
2191
2191
}
2192
2192
2193
- function mergeDeepWith$1 ( merger , collection ) {
2193
+ function mergeDeepWith ( merger , collection ) {
2194
2194
var sources = [ ] , len = arguments . length - 2 ;
2195
2195
while ( len -- > 0 ) sources [ len ] = arguments [ len + 2 ] ;
2196
2196
@@ -2252,14 +2252,14 @@ function deepMergerWith(merger) {
2252
2252
return deepMerger ;
2253
2253
}
2254
2254
2255
- function mergeDeep ( ) {
2255
+ function mergeDeep$1 ( ) {
2256
2256
var iters = [ ] , len = arguments . length ;
2257
2257
while ( len -- ) iters [ len ] = arguments [ len ] ;
2258
2258
2259
2259
return mergeDeepWithSources ( this , iters ) ;
2260
2260
}
2261
2261
2262
- function mergeDeepWith ( merger ) {
2262
+ function mergeDeepWith$1 ( merger ) {
2263
2263
var iters = [ ] , len = arguments . length - 1 ;
2264
2264
while ( len -- > 0 ) iters [ len ] = arguments [ len + 1 ] ;
2265
2265
@@ -2446,14 +2446,14 @@ var MapPrototype = Map.prototype;
2446
2446
MapPrototype [ IS_MAP_SENTINEL ] = true ;
2447
2447
MapPrototype [ DELETE ] = MapPrototype . remove ;
2448
2448
MapPrototype . removeAll = MapPrototype . deleteAll ;
2449
- MapPrototype . setIn = setIn$$ 1 ;
2449
+ MapPrototype . setIn = setIn$1 ;
2450
2450
MapPrototype . removeIn = MapPrototype . deleteIn = deleteIn ;
2451
- MapPrototype . update = update$$ 1 ;
2451
+ MapPrototype . update = update$1 ;
2452
2452
MapPrototype . updateIn = updateIn$1 ;
2453
2453
MapPrototype . merge = MapPrototype . concat = merge ;
2454
2454
MapPrototype . mergeWith = mergeWith ;
2455
- MapPrototype . mergeDeep = mergeDeep ;
2456
- MapPrototype . mergeDeepWith = mergeDeepWith ;
2455
+ MapPrototype . mergeDeep = mergeDeep$1 ;
2456
+ MapPrototype . mergeDeepWith = mergeDeepWith$1 ;
2457
2457
MapPrototype . mergeIn = mergeIn ;
2458
2458
MapPrototype . mergeDeepIn = mergeDeepIn ;
2459
2459
MapPrototype . withMutations = withMutations ;
@@ -2484,7 +2484,7 @@ ArrayMapNode.prototype.get = function get (shift, keyHash, key, notSetValue) {
2484
2484
return notSetValue ;
2485
2485
} ;
2486
2486
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 ) {
2488
2488
var removed = value === NOT_SET ;
2489
2489
2490
2490
var entries = this . entries ;
@@ -2557,7 +2557,7 @@ BitmapIndexedNode.prototype.get = function get (shift, keyHash, key, notSetValue
2557
2557
) ;
2558
2558
} ;
2559
2559
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 ) {
2561
2561
if ( keyHash === undefined ) {
2562
2562
keyHash = hash ( key ) ;
2563
2563
}
@@ -2639,7 +2639,7 @@ HashArrayMapNode.prototype.get = function get (shift, keyHash, key, notSetValue)
2639
2639
: notSetValue ;
2640
2640
} ;
2641
2641
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 ) {
2643
2643
if ( keyHash === undefined ) {
2644
2644
keyHash = hash ( key ) ;
2645
2645
}
@@ -2704,7 +2704,7 @@ HashCollisionNode.prototype.get = function get (shift, keyHash, key, notSetValue
2704
2704
return notSetValue ;
2705
2705
} ;
2706
2706
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 ) {
2708
2708
if ( keyHash === undefined ) {
2709
2709
keyHash = hash ( key ) ;
2710
2710
}
@@ -2774,7 +2774,7 @@ ValueNode.prototype.get = function get (shift, keyHash, key, notSetValue) {
2774
2774
return is ( key , this . entry [ 0 ] ) ? this . entry [ 1 ] : notSetValue ;
2775
2775
} ;
2776
2776
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 ) {
2778
2778
var removed = value === NOT_SET ;
2779
2779
var keyMatch = is ( key , this . entry [ 0 ] ) ;
2780
2780
if ( keyMatch ? value === this . entry [ 1 ] : removed ) {
@@ -3324,9 +3324,9 @@ var ListPrototype = List.prototype;
3324
3324
ListPrototype [ IS_LIST_SENTINEL ] = true ;
3325
3325
ListPrototype [ DELETE ] = ListPrototype . remove ;
3326
3326
ListPrototype . merge = ListPrototype . concat ;
3327
- ListPrototype . setIn = setIn$$ 1 ;
3327
+ ListPrototype . setIn = setIn$1 ;
3328
3328
ListPrototype . deleteIn = ListPrototype . removeIn = deleteIn ;
3329
- ListPrototype . update = update$$ 1 ;
3329
+ ListPrototype . update = update$1 ;
3330
3330
ListPrototype . updateIn = updateIn$1 ;
3331
3331
ListPrototype . mergeIn = mergeIn ;
3332
3332
ListPrototype . mergeDeepIn = mergeDeepIn ;
@@ -3349,7 +3349,7 @@ var VNode = function VNode(array, ownerID) {
3349
3349
// TODO: seems like these methods are very similar
3350
3350
3351
3351
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 ) {
3353
3353
return this ;
3354
3354
}
3355
3355
var originIndex = ( index >>> level ) & MASK ;
@@ -4598,7 +4598,7 @@ var Range = (function (IndexedSeq$$1) {
4598
4598
4599
4599
var EMPTY_RANGE ;
4600
4600
4601
- function getIn$1 ( collection , searchKeyPath , notSetValue ) {
4601
+ function getIn ( collection , searchKeyPath , notSetValue ) {
4602
4602
var keyPath = coerceKeyPath ( searchKeyPath ) ;
4603
4603
var i = 0 ;
4604
4604
while ( i !== keyPath . length ) {
@@ -4610,16 +4610,16 @@ function getIn$1(collection, searchKeyPath, notSetValue) {
4610
4610
return collection ;
4611
4611
}
4612
4612
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 ) ;
4615
4615
}
4616
4616
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 ;
4619
4619
}
4620
4620
4621
- function hasIn$$ 1 ( searchKeyPath ) {
4622
- return hasIn$1 ( this , searchKeyPath ) ;
4621
+ function hasIn$1 ( searchKeyPath ) {
4622
+ return hasIn ( this , searchKeyPath ) ;
4623
4623
}
4624
4624
4625
4625
function toObject ( ) {
@@ -4933,7 +4933,7 @@ mixin(Collection, {
4933
4933
return this . find ( function ( _ , key ) { return is ( key , searchKey ) ; } , undefined , notSetValue ) ;
4934
4934
} ,
4935
4935
4936
- getIn : getIn$$ 1 ,
4936
+ getIn : getIn$1 ,
4937
4937
4938
4938
groupBy : function groupBy ( grouper , context ) {
4939
4939
return groupByFactory ( this , grouper , context ) ;
@@ -4943,7 +4943,7 @@ mixin(Collection, {
4943
4943
return this . get ( searchKey , NOT_SET ) !== NOT_SET ;
4944
4944
} ,
4945
4945
4946
- hasIn : hasIn$$ 1 ,
4946
+ hasIn : hasIn$1 ,
4947
4947
4948
4948
isSubset : function isSubset ( iter ) {
4949
4949
iter = typeof iter . includes === 'function' ? iter : Collection ( iter ) ;
@@ -5582,16 +5582,16 @@ var RecordPrototype = Record.prototype;
5582
5582
RecordPrototype [ IS_RECORD_SENTINEL ] = true ;
5583
5583
RecordPrototype [ DELETE ] = RecordPrototype . remove ;
5584
5584
RecordPrototype . deleteIn = RecordPrototype . removeIn = deleteIn ;
5585
- RecordPrototype . getIn = getIn$$ 1 ;
5585
+ RecordPrototype . getIn = getIn$1 ;
5586
5586
RecordPrototype . hasIn = CollectionPrototype . hasIn ;
5587
5587
RecordPrototype . merge = merge ;
5588
5588
RecordPrototype . mergeWith = mergeWith ;
5589
5589
RecordPrototype . mergeIn = mergeIn ;
5590
- RecordPrototype . mergeDeep = mergeDeep ;
5591
- RecordPrototype . mergeDeepWith = mergeDeepWith ;
5590
+ RecordPrototype . mergeDeep = mergeDeep$1 ;
5591
+ RecordPrototype . mergeDeepWith = mergeDeepWith$1 ;
5592
5592
RecordPrototype . mergeDeepIn = mergeDeepIn ;
5593
- RecordPrototype . setIn = setIn$$ 1 ;
5594
- RecordPrototype . update = update$$ 1 ;
5593
+ RecordPrototype . setIn = setIn$1 ;
5594
+ RecordPrototype . update = update$1 ;
5595
5595
RecordPrototype . updateIn = updateIn$1 ;
5596
5596
RecordPrototype . withMutations = withMutations ;
5597
5597
RecordPrototype . asMutable = asMutable ;
@@ -5779,7 +5779,6 @@ function defaultConverter(k, v) {
5779
5779
5780
5780
var version = "4.0.0-rc.9" ;
5781
5781
5782
- // Functional read/write API
5783
5782
var Immutable = {
5784
5783
version : version ,
5785
5784
@@ -5812,23 +5811,23 @@ var Immutable = {
5812
5811
isValueObject : isValueObject ,
5813
5812
5814
5813
get : get ,
5815
- getIn : getIn$1 ,
5814
+ getIn : getIn ,
5816
5815
has : has ,
5817
- hasIn : hasIn$1 ,
5816
+ hasIn : hasIn ,
5818
5817
merge : merge$1 ,
5819
- mergeDeep : mergeDeep$1 ,
5818
+ mergeDeep : mergeDeep ,
5820
5819
mergeWith : mergeWith$1 ,
5821
- mergeDeepWith : mergeDeepWith$1 ,
5820
+ mergeDeepWith : mergeDeepWith ,
5822
5821
remove : remove ,
5823
5822
removeIn : removeIn ,
5824
5823
set : set ,
5825
- setIn : setIn$1 ,
5826
- update : update$1 ,
5824
+ setIn : setIn ,
5825
+ update : update ,
5827
5826
updateIn : updateIn ,
5828
5827
} ;
5829
5828
5830
5829
// Note: Iterable is deprecated
5831
5830
var Iterable = Collection ;
5832
5831
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 } ;
5834
5832
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