Skip to content

2.0.0

Compare
Choose a tag to compare
@idealbot idealbot released this 04 Jun 08:57
· 159 commits to master since this release

2.0.0 (2021-06-04)

Code Refactoring

  • Defaults: Export defaults object (6b9b698)

Features

  • Version 2: Reduce package size (cfcae8a)

BREAKING CHANGES

  • Version 2: - Package now exports a defaults object
  • Client.defaults has been removed
  • All client config is now stored in client.config
  • All resources have been removed from the client. Instead retrieve
    these from the library and inject the client. E.g.
    client.postcodes.retrieve becomes postcodes.retrieve(client, ...)
  • Helper methods (like lookupPostcode, ping) have been removed from the client.
    Instead retrieve these from teh library and inject the client. E.g.
    client.lookupPostcode becomes lookupPostcode(client, ...)
  • Defaults: Uppercased default variables no longer exported.
    Instead defaults object is supplied