Skip to content

Releases: PorterK/GuardianJSClient

v5.0.0

09 Feb 03:19
ef922a6
Compare
Choose a tag to compare
  • Removed request dependency since fetch was released in Node, meaning this project has no dependencies 🎊
  • Updated test runner to jest to remove another dev dependency
  • Added an engine declaration to the package.json

MAJOR BREAKING CHANGES

  • The API functions no longer return { response, body } - they just return the response body directly from the Guardian API, meaning:
const resp = await api.content.search('test');

const { body } = resp;

doSomethingWith(resp.results);

is now

const resp = await api.content.search('test');

doSomethingWith(resp.results);

v4.0.1

24 Dec 20:17
17c2fc4
Compare
Choose a tag to compare

Changelog:

  • Update endpoint type declaration to be Promise<unknown> instead of Function

Contributors:

TypeScript Support!

10 May 01:17
0a7374b
Compare
Choose a tag to compare
  • Added typescript support
  • Defaulted secure to false on the main Client class

3.0.0

11 Apr 23:27
Compare
Choose a tag to compare

v.3.0.0

This version comes with a lot of cleanup!

  • Removed a lot of code duplication
  • Removed lodash as a dependency
  • Updated tests so that they work correctly
  • Updated dependencies to remove vulnerabilities

Breaking Changes

  • Removed custom
  • Moved item to only have getById method

Updates for the modern world!

04 Oct 18:07
Compare
Choose a tag to compare

Removed some dependencies (bluebird, expect, mocha) in order to make the package smaller. With this we now rely on native Promises instead of bluebird.

Breaking Changes: N/A

Hooray!

Edit: version 2.0.0 is deprecated and does not work