Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Releases: v12/node-vk-api

v3.0.0

20 Apr 12:21
@v12 v12
Compare
Choose a tag to compare

Breaking changes

  • Update request-promise to 3.0.0 from 2.0.0

Changes

  • Update fs-jetpack to 0.8.0 from 0.7.0
  • Update nock to 8.0.0 from 5.2.1
  • Update eslint to 2.5.0 from 1.10.3
  • Update joi to 8.0.1 from 7.2.2
  • Update cheerio to 0.20.0 from 0.19.0

v2.1.0

20 Apr 12:22
@v12 v12
Compare
Choose a tag to compare

Changes

  • Add missing phone param for non-object configuration (now signature is vk.token(client_id, login, pass, phone))
  • Add ESLint code style checks
  • Use const all the way down instead of let
  • 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

20 Apr 12:21
@v12 v12
Compare
Choose a tag to compare

Breaking changes

  • VK.token(options) now returns promise that is resolved with access_token
  • VK.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

v1.1.1

20 Apr 12:21
@v12 v12
Compare
Choose a tag to compare

Changes

  • Fix error not being thrown when request error happens (closes #3)

v1.1.0

20 Apr 12:20
@v12 v12
Compare
Choose a tag to compare

Changes

  • Support for token caching (#1)
  • Fix possible bug when events were emitted before listeners were attached
  • Default User-Agent used now has actual package version

v1.0.0

20 Apr 12:20
@v12 v12
Compare
Choose a tag to compare

Changes

  • Added another way of instantiating API (both parameter sets are available)

v0.0.2

20 Apr 12:19
@v12 v12
Compare
Choose a tag to compare

Changes

  • Constructor now emits events on successful authorization and error