Skip to content

Commit

Permalink
* reverted option uncheckedValue to default to undefined. #15
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfoolong committed Sep 28, 2021
1 parent 8d2c3e5 commit b520750
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 24 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.0.5beta - 28.09.2021
* reverted option `uncheckedValue` to default to `undefined`. https://github.com/brainfoolong/form-data-json/issues/15

### 2.0.4beta - 27.09.2021
* fixed https://github.com/brainfoolong/form-data-json/issues/16 in `toJson()` in combination with `skipEmpty` and `flatList`

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let values = FormDataJson.toJson(document.querySelector("form"), {flatList: true
```
###### Read form input values including disabled
```javascript
let values = FormDataJson.toJson(document.querySelector("form"), {includeDisabled: true}})
let values = FormDataJson.toJson(document.querySelector("form"), {includeDisabled: true})
```
###### Read with file inputs as base64 data uri
```javascript
Expand Down Expand Up @@ -103,7 +103,7 @@ You can edit this defaults globally by modifying `FormDataJson.defaultOptionsToJ
* If undefined, than the unchecked field will be ignored in output
* @type {*}
*/
'uncheckedValue': false,
'uncheckedValue': undefined,

/**
* A function, where first parameter is the input field to check for, that must return true if the field should be included
Expand Down
4 changes: 2 additions & 2 deletions dist/form-data-json.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
// form-data-json-convert | version: 2.0.4beta | url: https://github.com/brainfoolong/form-data-json
// form-data-json-convert | version: 2.0.5beta | url: https://github.com/brainfoolong/form-data-json

/**
* Form Data Json Converter
Expand Down Expand Up @@ -752,7 +752,7 @@ FormDataJson.defaultOptionsToJson = {
* If undefined, than the unchecked field will be ignored in output
* @type {*}
*/
'uncheckedValue': false,
'uncheckedValue': undefined,

/**
* A function, where first parameter is the input field to check for, that must return true if the field should be included
Expand Down
4 changes: 2 additions & 2 deletions dist/form-data-json.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/scripts/form-data-json.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
// form-data-json-convert | version: 2.0.4beta | url: https://github.com/brainfoolong/form-data-json
// form-data-json-convert | version: 2.0.5beta | url: https://github.com/brainfoolong/form-data-json

/**
* Form Data Json Converter
Expand Down Expand Up @@ -752,7 +752,7 @@ FormDataJson.defaultOptionsToJson = {
* If undefined, than the unchecked field will be ignored in output
* @type {*}
*/
'uncheckedValue': false,
'uncheckedValue': undefined,

/**
* A function, where first parameter is the input field to check for, that must return true if the field should be included
Expand Down
Loading

0 comments on commit b520750

Please sign in to comment.