- Update karma dependency from 0.13.21 to 2.0.4
- Update node version in
.travis.yml
- Lower Superagent dependency from 1.7.2 to 1.2.0 (#46)
- Add CommonJS export (#44)
- Change
resultList
toimageResultList
for images (#42) - Introduce
videoResultList
for videos
- Pin dependencies to minor version (#39)
- Update dependencies to latest version where applicable. (#37)
- Updated client to match pixabay's new API. (#33)
username
is no longer a parameter needed by the API.pixabayjs.authenticate
now only accepts aapiKey
argument:pixabayjs.authenticate(apiKey)
.- HTTP is no longer supported. However, client was already defaulting to HTTPS.
- New API keys have been issued. Old API keys will not work after 2/1/2016.
- Image hash IDs will need to be changed. Use the old hash with the new API key to get the new hash.
- Wrapped error parsing in try/catch block in case error was not valid JSON (#29)
- Changed module loading to use es6 (#30)
- Added es6 support through the use of Babel. (#27)
pixabayjs
API changes (#19)pixabayjs.defaults
is now an object instead of a function.pixabayjs.requestFactory
has been replaced withpixabayjs.resultList
, which returns a newResultList
.- Intermediary
RequestFactory
removed.
- Internal changes to reduce dependency on state.
- Added
previous
function toResultList
. Comes with promise caching (#15) - Replace
host
,protocol
, andpath
options withurl
for RequestFactory (#14) - Set the requested page on the response when the request errors (#13)
- Updates to README (#11)
- Refactor of API to support pagination (#8)
request
is nowrequestFactory
and returns aRequestFactory
object.RequestFactory
supports the same interface asrequest
with the addition ofresultList
which returns aResultList
object.- Both
get
andresultList
now allow anoptions
argument. See README for details. ResultList
has single method,next
, which returns a results response. Subsequent calls will request new pages of results.
- Response format has changed. See README for details.
- Removed lodash dependencies where possible (#4)
- Authorization credentials are optional (#3)
- Renamed
authorize
toauthenticate
- Initial client (#1)