Skip to content

Commit

Permalink
2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
crissdev committed Feb 28, 2016
1 parent 2fedd00 commit a7db943
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 23 deletions.
37 changes: 23 additions & 14 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
## 2.6.0 (2016-02-28)

* Issue [#124](https://github.com/SteveSanderson/knockout.mapping/issues/124): Use hasOwnProperty to check for bucket existence
* 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)
* Issue [#96](https://github.com/SteveSanderson/knockout.mapping/issues/96): Fix incorrect handling of properties with periods
* Issue [#205](https://github.com/SteveSanderson/knockout.mapping/issues/205): Allow JSON.stringify parameters to be specified to ko.mapping.toJSON
* Issue [#9](https://github.com/crissdev/knockout.mapping/issues/9): Fix pure computeds are treated the same as deferred, not auto-evaluated after mapping

## 2.5.0 (2015-02-12)

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

## 2.4.1 (2013-02-08)

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

## 2.4.0 (2013-02-04)

Expand All @@ -17,29 +25,30 @@

## 2.3.5 (2012-12-10)

* Issue #121: Added functionality so that explicit declared none observable members on a ViewModel will remain none observable after mapping
* 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

## 2.3.4 (2012-11-22)

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

## 2.3.3 (2012-10-30)

* Fixed issue #105, #111: Update callback is not being called
* Fixed issue #107: String values in mapping cause infinite recursion in extendObject
* 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
* Fixed issue [#107](https://github.com/SteveSanderson/knockout.mapping/issues/107): String values in mapping cause infinite recursion in extendObject

## 2.3.2 (2012-08-20)

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

## 2.3.1 (2012-08-06)

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

## 2.3.0 (2012-07-31)

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var newData = ko.mapping.toJS(viewModel);

```

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


## Test
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bower-knockout-mapping",
"main": "dist/knockout.mapping.js",
"version": "2.5.0",
"version": "2.6.0",
"homepage": "https://github.com/crissdev/knockout.mapping",
"authors": [
"Steven Sanderson",
Expand Down
5 changes: 3 additions & 2 deletions dist/knockout.mapping.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Knockout Mapping plugin v2.5.0
* Knockout Mapping plugin v2.6.0
* (c) 2013 Steven Sanderson, Roy Jacobs - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
Expand Down Expand Up @@ -282,6 +282,7 @@
}

var realDeferEvaluation = options.deferEvaluation;
var realIsPure = options.pure;

var isRemoved = false;

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

if (!realDeferEvaluation) {
if (!realDeferEvaluation && !realIsPure) {
realDependentObservable = wrap(realDependentObservable);
dependentObservables.push(realDependentObservable);
}
Expand Down
6 changes: 3 additions & 3 deletions dist/knockout.mapping.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/knockout.mapping.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knockout-mapping",
"version": "2.5.0",
"version": "2.6.0",
"description": "Knockout Mapping plugin",
"main": "dist/knockout.mapping.js",
"files": [
Expand Down

0 comments on commit a7db943

Please sign in to comment.