From 6eba165d0d91a018237878ed2fb277797e89a477 Mon Sep 17 00:00:00 2001 From: Kasra Kyanzadeh Date: Fri, 18 May 2018 17:09:25 -0700 Subject: [PATCH] v0.5.6 --- CHANGELOG.md | 3 +++ build/airtable.browser.js | 6 +++--- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e6e069c..b59fc6e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/build/airtable.browser.js b/build/airtable.browser.js index 421351f9..1e04550d 100644 --- a/build/airtable.browser.js +++ b/build/airtable.browser.js @@ -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 ' + @@ -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"'), @@ -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) { diff --git a/package-lock.json b/package-lock.json index 8690f3c8..90dfb2db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "airtable", - "version": "0.5.4", + "version": "0.5.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b2df631d..e59fbc10 100644 --- a/package.json +++ b/package.json @@ -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,