This repository has been archived by the owner on Feb 5, 2022. It is now read-only.
Releases: v12/node-vk-api
Releases · v12/node-vk-api
v3.0.0
v2.1.0
Changes
- Add missing
phone
param for non-object configuration (now signature isvk.token(client_id, login, pass, phone)
) - Add ESLint code style checks
- Use
const
all the way down instead oflet
- Handle possible case when authorization is successful but
access_token
is missing in the response - Extended testing and test coverage details
- Update
request-promise
to 2.0.0 from 1.0.2 - Update
babel-core
to 6.4.0 from 6.3.17
v2.0.0
Breaking changes
VK.token(options)
now returns promise that is resolved with access_tokenVK.api(access_token, [api_version])
returns API request helper function- If login is not a phone number, separate parameter
phone
is now required - Application ID is now being strictly checked for a valid numeric value (coerced to number)
- New
VKAuthError
returned if VK returns an error while attempting to sign in - New
VKAPIError
returned if API request was fulfilled but API returned error
Changes
- Fix cookie jar being overridden by the one from the most recent initialization
- Fix invalid check for
response
property in API responses - Fix
error
event not being fired when initial request for authentication page fails (closes #4) - Codebase refactored to use ES2015 (Babel.js used for transpiling to ES5)
- Switch to
request
's JSON parsing - Update
cheerio
to 0.19.0 from 0.16.0 - Update
request
to 2.67.0 from 2.34.0 - Update
xtend
to 4.0.1 from 3.0.0