Skip to content

Commit

Permalink
v0.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasra Kyanzadeh committed May 19, 2018
1 parent d67d215 commit 6eba165
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v0.5.6
* Fix crash when specifying sort direction or cellFormat options

# v0.5.5
* Upgrade `lodash` package from 2.4.1 to 4.17.10

Expand Down
6 changes: 3 additions & 3 deletions build/airtable.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ Query.paramValidators = {
return (
_.isPlainObject(obj) &&
_.isString(obj.field) &&
(_.isUndefined(obj.direction) || _.contains(['asc', 'desc'], obj.direction))
(_.isUndefined(obj.direction) || _.includes(['asc', 'desc'], obj.direction))
);
}), 'the value for `sort` should be an array of sort objects. ' +
'Each sort object must have a string `field` value, and an optional ' +
Expand All @@ -449,7 +449,7 @@ Query.paramValidators = {
check(function(cellFormat) {
return (
_.isString(cellFormat) &&
_.contains(['json', 'string'], cellFormat)
_.includes(['json', 'string'], cellFormat)
);
}, 'the value for `cellFormat` should be "json" or "string"'),

Expand Down Expand Up @@ -840,7 +840,7 @@ function check(fn, error) {
}

check.isOneOf = function isOneOf(options) {
return _.contains.bind(this, options);
return _.includes.bind(this, options);
};

check.isArrayOf = function(itemValidator) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "airtable",
"version": "0.5.5",
"version": "0.5.6",
"homepage": "https://github.com/airtable/airtable.js",
"repository": "git://github.com/airtable/airtable.js.git",
"private": false,
Expand Down

0 comments on commit 6eba165

Please sign in to comment.