Skip to content

Commit a7db943

Browse files
committed
2.6.0
1 parent 2fedd00 commit a7db943

File tree

7 files changed

+33
-23
lines changed

7 files changed

+33
-23
lines changed

HISTORY.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1+
## 2.6.0 (2016-02-28)
2+
3+
* Issue [#124](https://github.com/SteveSanderson/knockout.mapping/issues/124): Use hasOwnProperty to check for bucket existence
4+
* Small performance improvements [e6c5631](https://github.com/crissdev/knockout.mapping/commit/e6c56313d22375e0e1ac7242f18dce9811577ad2), [f97d5cd](https://github.com/crissdev/knockout.mapping/commit/f97d5cde145962af919a6472d22418f9f0f43626), [57a0b56](https://github.com/crissdev/knockout.mapping/commit/57a0b56c6368bb3b8816fb0d78c35820aa719bf3)
5+
* Issue [#96](https://github.com/SteveSanderson/knockout.mapping/issues/96): Fix incorrect handling of properties with periods
6+
* Issue [#205](https://github.com/SteveSanderson/knockout.mapping/issues/205): Allow JSON.stringify parameters to be specified to ko.mapping.toJSON
7+
* Issue [#9](https://github.com/crissdev/knockout.mapping/issues/9): Fix pure computeds are treated the same as deferred, not auto-evaluated after mapping
8+
19
## 2.5.0 (2015-02-12)
210

311
* Remove deprecated methods (`updateFromJS` and `updateFromJSON`)
4-
* Issue #1: Compatibility with Knockout 3.x may still be a problem
5-
* Issue #4: Library is not exported in ko namespace for CommonJS/Node
12+
* Issue [#1](https://github.com/crissdev/knockout.mapping/issues/1): Compatibility with Knockout 3.x may still be a problem
13+
* Issue [#4](https://github.com/crissdev/knockout.mapping/issues/4): Library is not exported in ko namespace for CommonJS/Node
614

715
## 2.4.1 (2013-02-08)
816

917
* Added mappedGet for observable arrays
10-
* Issue #134: Throttle issue using mapping
11-
* Issue #135: Why is custom update for observableArray firing twice when using mapping plugin?
18+
* Issue [#134](https://github.com/SteveSanderson/knockout.mapping/issues/134): Throttle issue using mapping
19+
* Issue [#135](https://github.com/SteveSanderson/knockout.mapping/issues/135): Why is custom update for observableArray firing twice when using mapping plugin?
1220

1321
## 2.4.0 (2013-02-04)
1422

@@ -17,29 +25,30 @@
1725

1826
## 2.3.5 (2012-12-10)
1927

20-
* Issue #121: Added functionality so that explicit declared none observable members on a ViewModel will remain none observable after mapping
28+
* Issue [#121](https://github.com/SteveSanderson/knockout.mapping/issues/121): Added functionality so that explicit declared none observable members on a ViewModel will remain none observable after mapping
2129

2230
## 2.3.4 (2012-11-22)
2331

24-
* Issue #114: Added new "observe" array to options
32+
* Issue [#114](https://github.com/SteveSanderson/knockout.mapping/issues/114): Added new "observe" array to options
2533

2634
## 2.3.3 (2012-10-30)
2735

28-
* Fixed issue #105, #111: Update callback is not being called
29-
* Fixed issue #107: String values in mapping cause infinite recursion in extendObject
36+
* Fixed issue [#105](https://github.com/SteveSanderson/knockout.mapping/issues/105), [#111](https://github.com/SteveSanderson/knockout.mapping/issues/111): Update callback is not being called
37+
* Fixed issue [#107](https://github.com/SteveSanderson/knockout.mapping/issues/107): String values in mapping cause infinite recursion in extendObject
3038

3139
## 2.3.2 (2012-08-20)
3240

33-
* Fixed issue #86: Don't update properties on object with update callback
41+
* Fixed issue [#86](https://github.com/SteveSanderson/knockout.mapping/issues/86): Don't update properties on object with update callback
3442

3543
## 2.3.1 (2012-08-06)
3644

37-
* Fixed issue #33: Create method in mappings receive meaningless options.parent for observableArray properties
38-
* Fixed issue #99: Updating throttled observable
39-
* Fixed issue #100: private variable leaks onto window object
45+
* Fixed issue [#33](https://github.com/SteveSanderson/knockout.mapping/issues/33): Create method in mappings receive meaningless options.parent for observableArray properties
46+
* Fixed issue [#99](https://github.com/SteveSanderson/knockout.mapping/issues/99): Updating throttled observable
47+
* Fixed issue [#100](https://github.com/SteveSanderson/knockout.mapping/issues/100): private variable leaks onto window object
4048

4149
## 2.3.0 (2012-07-31)
4250

4351
* Added support for not mapping certain array elements (return "options.skip" from your create callback)
44-
* Fixed issue #91: "wrap" function makes computed writable
45-
* Fixed issue #94: Bug/problem with ignore argument in mapping.fromJS
52+
* Fixed issue [#91](https://github.com/SteveSanderson/knockout.mapping/issues/91): "wrap" function makes computed writable
53+
* Fixed issue [#94](https://github.com/SteveSanderson/knockout.mapping/issues/94): Bug/problem with ignore argument in mapping.fromJS
54+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var newData = ko.mapping.toJS(viewModel);
6363

6464
```
6565

66-
Run this example in [JSFiddle](http://jsfiddle.net/wmeqx7ss/).
66+
Run this example in [JSFiddle](http://jsfiddle.net/wmeqx7ss/141/).
6767

6868

6969
## Test

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bower-knockout-mapping",
33
"main": "dist/knockout.mapping.js",
4-
"version": "2.5.0",
4+
"version": "2.6.0",
55
"homepage": "https://github.com/crissdev/knockout.mapping",
66
"authors": [
77
"Steven Sanderson",

dist/knockout.mapping.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Knockout Mapping plugin v2.5.0
2+
* Knockout Mapping plugin v2.6.0
33
* (c) 2013 Steven Sanderson, Roy Jacobs - http://knockoutjs.com/
44
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
55
*/
@@ -282,6 +282,7 @@
282282
}
283283

284284
var realDeferEvaluation = options.deferEvaluation;
285+
var realIsPure = options.pure;
285286

286287
var isRemoved = false;
287288

@@ -315,7 +316,7 @@
315316
options.deferEvaluation = true; // will either set for just options, or both read/options.
316317
var realDependentObservable = realKoDependentObservable(read, owner, options);
317318

318-
if (!realDeferEvaluation) {
319+
if (!realDeferEvaluation && !realIsPure) {
319320
realDependentObservable = wrap(realDependentObservable);
320321
dependentObservables.push(realDependentObservable);
321322
}

dist/knockout.mapping.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/knockout.mapping.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "knockout-mapping",
3-
"version": "2.5.0",
3+
"version": "2.6.0",
44
"description": "Knockout Mapping plugin",
55
"main": "dist/knockout.mapping.js",
66
"files": [

0 commit comments

Comments
 (0)