# Changelog

## [v7.0.2]

Fixes a bug where resource API methods are undefined after calling `client.type().get()`.

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v7.0.1...v7.0.2)

* Add API methods to ResourcePromise by @eatyourgreens in https://github.com/zooniverse/json-api-client/pull/84

## [v7.0.1]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v7.0.0...v7.0.1)

* Refactor makeHTTPRequest by @eatyourgreens in https://github.com/zooniverse/json-api-client/pull/83

## [v7.0.0]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.7...v7.0.0)

- Build with CoffeeScript 2.7.

## [v6.0.7]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.6...v6.0.7)

- Require superagent 8.0.8 or higher.

## [v6.0.6]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.5...v6.0.6)

- Require superagent 8.0.6 or higher.

## [v6.0.5]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.4...v6.0.5)

**Merged pull requests:**

- Bump qs and formidble [\#80](https://github.com/zooniverse/json-api-client/pull/80) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump superagent from 8.0.4 to 8.0.5 [\#79](https://github.com/zooniverse/json-api-client/pull/79) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v6.0.4]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.3...v6.0.4)

**Merged pull requests:**

- Bump superagent from 8.0.3 to 8.0.4 [\#78](https://github.com/zooniverse/json-api-client/pull/78) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v6.0.3]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.2...v6.0.3)

**Merged pull requests:**

- Bump superagent from 8.0.2 to 8.0.3 [\#77](https://github.com/zooniverse/json-api-client/pull/77) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v6.0.2]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.1...v6.0.2)

**Merged pull requests:**

- Bump superagent from 8.0.1 to 8.0.2 [\#76](https://github.com/zooniverse/json-api-client/pull/76) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v6.0.1]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v6.0.0...v6.0.1)

**Merged pull requests:**

- Bump superagent from 8.0.0 to 8.0.1 [\#75](https://github.com/zooniverse/json-api-client/pull/75) ([dependabot[bot]](https://github.com/apps/dependabot))


## [v6.0.0]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.1.2...v6.0.0)

**Merged pull requests:**

- Bump superagent from 7.1.6 to 8.0.0 [\#74](https://github.com/zooniverse/json-api-client/pull/74) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v5.1.2]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.1.1...v5.1.2)

**Merged pull requests:**

- Bump shell-quote from 1.6.1 to 1.7.3 [\#73](https://github.com/zooniverse/json-api-client/pull/73) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump superagent from 7.1.4 to 7.1.6 [\#71](https://github.com/zooniverse/json-api-client/pull/71) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump superagent from 7.1.3 to 7.1.4 [\#70](https://github.com/zooniverse/json-api-client/pull/70) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v5.1.1]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.1.0...v5.1.1)

**Merged pull requests:**

- Use the default JSON parser [\#69](https://github.com/zooniverse/json-api-client/pull/69) ([eatyourgreens](https://github.com/eatyourgreens))

## [v5.1.0]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.5...v5.1.0)

**Merged pull requests:**

- Bump superagent from 3.8.3 to 7.1.3 [\#68](https://github.com/zooniverse/json-api-client/pull/68) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v5.0.5]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.4...v5.0.5)

**Merged pull requests:**

- Bump onchange from 6.1.0 to 7.1.0 [\#67](https://github.com/zooniverse/json-api-client/pull/67) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump browserify from 16.2.2 to 17.0.0 [\#66](https://github.com/zooniverse/json-api-client/pull/66) ([dependabot[bot]](https://github.com/apps/dependabot))

## [v5.0.4]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.3...v5.0.4)

**Merged pull requests:**

- Update normalizeurl to 1.0.0 [\#64](https://github.com/zooniverse/json-api-client/pull/64) ([shaunanoordin](https://github.com/shaunanoordin))

**Security fixes:**

- \[Security\] Bump cached-path-relative from 1.0.2 to 1.1.0 [\#63](https://github.com/zooniverse/json-api-client/pull/63) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))

## [v5.0.3]

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.2...v5.0.3)

**Security fixes:**

- \[Security\] Bump path-parse from 1.0.5 to 1.0.7 [\#61](https://github.com/zooniverse/json-api-client/pull/61) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- \[Security\] Bump glob-parent from 5.1.0 to 5.1.2 [\#60](https://github.com/zooniverse/json-api-client/pull/60) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- \[Security\] Bump elliptic from 6.5.3 to 6.5.4 [\#59](https://github.com/zooniverse/json-api-client/pull/59) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- \[Security\] Bump tree-kill from 1.2.1 to 1.2.2 [\#58](https://github.com/zooniverse/json-api-client/pull/58) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))

## [v5.0.2](https://github.com/zooniverse/json-api-client/tree/v5.0.2) (2020-08-03)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.1...v5.0.2)

**Security fixes:**

- \[Security\] Bump elliptic from 6.4.0 to 6.5.3 [\#57](https://github.com/zooniverse/json-api-client/pull/57) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))

## [v5.0.1](https://github.com/zooniverse/json-api-client/tree/v5.0.1) (2020-03-16)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.0...v5.0.1)

**Security fixes:**

- \[Security\] Bump acorn from 5.7.1 to 5.7.4 [\#56](https://github.com/zooniverse/json-api-client/pull/56) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))

**Merged pull requests:**

- Major version 5 [\#55](https://github.com/zooniverse/json-api-client/pull/55) ([srallen](https://github.com/srallen))

## [v5.0.0](https://github.com/zooniverse/json-api-client/tree/v5.0.0) (2019-12-09)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v5.0.0-rc.0...v5.0.0)

**Merged pull requests:**

- Update onchange dependency for security fix [\#54](https://github.com/zooniverse/json-api-client/pull/54) ([srallen](https://github.com/srallen))

## [v5.0.0-rc.0](https://github.com/zooniverse/json-api-client/tree/v5.0.0-rc.0) (2019-11-22)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v4.0.2...v5.0.0-rc.0)

**Merged pull requests:**

- prepublish is deprecated as npm@5 [\#53](https://github.com/zooniverse/json-api-client/pull/53) ([srallen](https://github.com/srallen))
- split makeHTTPRequest  to distinct methods [\#52](https://github.com/zooniverse/json-api-client/pull/52) ([camallen](https://github.com/camallen))

## [v4.0.2](https://github.com/zooniverse/json-api-client/tree/v4.0.2) (2019-06-04)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v4.0.1...v4.0.2)

**Security fixes:**

- \[Security\] Bump tar from 4.4.1 to 4.4.9 [\#51](https://github.com/zooniverse/json-api-client/pull/51) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))

## [v4.0.1](https://github.com/zooniverse/json-api-client/tree/v4.0.1) (2019-03-22)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v4.0.0...v4.0.1)

**Security fixes:**

- \[Security\] Bump extend from 3.0.1 to 3.0.2 [\#49](https://github.com/zooniverse/json-api-client/pull/49) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
- \[Security\] Bump cached-path-relative from 1.0.1 to 1.0.2 [\#48](https://github.com/zooniverse/json-api-client/pull/48) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))

## [v4.0.0](https://github.com/zooniverse/json-api-client/tree/v4.0.0) (2018-06-25)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v4.0.0-0...v4.0.0)

## [v4.0.0-0](https://github.com/zooniverse/json-api-client/tree/v4.0.0-0) (2018-06-22)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v3.3.1...v4.0.0-0)

**Merged pull requests:**

- Upgrade packages [\#46](https://github.com/zooniverse/json-api-client/pull/46) ([eatyourgreens](https://github.com/eatyourgreens))
- Add package-lock [\#45](https://github.com/zooniverse/json-api-client/pull/45) ([eatyourgreens](https://github.com/eatyourgreens))

## [v3.3.1](https://github.com/zooniverse/json-api-client/tree/v3.3.1) (2018-04-24)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v3.3.0...v3.3.1)

**Closed issues:**

- Deleting a resource fails with 'query is undefined' [\#43](https://github.com/zooniverse/json-api-client/issues/43)
- Fetching with included relationships [\#42](https://github.com/zooniverse/json-api-client/issues/42)

**Merged pull requests:**

- Add optional query argument to Resource.delete\(\) [\#44](https://github.com/zooniverse/json-api-client/pull/44) ([eatyourgreens](https://github.com/eatyourgreens))

## [v3.3.0](https://github.com/zooniverse/json-api-client/tree/v3.3.0) (2017-11-13)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v3.2.2...v3.3.0)

**Implemented enhancements:**

- Add query params to PUT and POST [\#40](https://github.com/zooniverse/json-api-client/issues/40)

**Merged pull requests:**

- Add query params to PUT and POST [\#41](https://github.com/zooniverse/json-api-client/pull/41) ([eatyourgreens](https://github.com/eatyourgreens))

## [v3.2.2](https://github.com/zooniverse/json-api-client/tree/v3.2.2) (2017-08-24)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v2.0.0...v3.2.2)

**Closed issues:**

- improve API error handling [\#36](https://github.com/zooniverse/json-api-client/issues/36)
- Array style params  [\#1](https://github.com/zooniverse/json-api-client/issues/1)

**Merged pull requests:**

- When doing a delete request, send payload as query params [\#39](https://github.com/zooniverse/json-api-client/pull/39) ([marten](https://github.com/marten))
- Remove unnecessary header on update [\#32](https://github.com/zooniverse/json-api-client/pull/32) ([itsravenous](https://github.com/itsravenous))
- Before-request hook [\#30](https://github.com/zooniverse/json-api-client/pull/30) ([brian-c](https://github.com/brian-c))
- Reject with the error if there's no response [\#29](https://github.com/zooniverse/json-api-client/pull/29) ([brian-c](https://github.com/brian-c))
- Make one GET request per endpoint at a time [\#26](https://github.com/zooniverse/json-api-client/pull/26) ([brian-c](https://github.com/brian-c))
- Pre-join arrays in query values [\#25](https://github.com/zooniverse/json-api-client/pull/25) ([brian-c](https://github.com/brian-c))
- Fix errors [\#24](https://github.com/zooniverse/json-api-client/pull/24) ([brian-c](https://github.com/brian-c))
- Move superagent from peerDeps to deps [\#23](https://github.com/zooniverse/json-api-client/pull/23) ([rogerhutchings](https://github.com/rogerhutchings))
- License? [\#21](https://github.com/zooniverse/json-api-client/pull/21) ([johnste](https://github.com/johnste))
- Auto-parse JSON API responses [\#19](https://github.com/zooniverse/json-api-client/pull/19) ([chrissnyder](https://github.com/chrissnyder))
- Revert "Return full response on error" [\#18](https://github.com/zooniverse/json-api-client/pull/18) ([chrissnyder](https://github.com/chrissnyder))
- Remove unused files [\#16](https://github.com/zooniverse/json-api-client/pull/16) ([chrissnyder](https://github.com/chrissnyder))

## [v2.0.0](https://github.com/zooniverse/json-api-client/tree/v2.0.0) (2015-10-01)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v1.0.1...v2.0.0)

**Merged pull requests:**

- Return full response on error [\#17](https://github.com/zooniverse/json-api-client/pull/17) ([chrissnyder](https://github.com/chrissnyder))

## [v1.0.1](https://github.com/zooniverse/json-api-client/tree/v1.0.1) (2015-09-15)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/v1.0.0...v1.0.1)

## [v1.0.0](https://github.com/zooniverse/json-api-client/tree/v1.0.0) (2015-09-15)

[Full Changelog](https://github.com/zooniverse/json-api-client/compare/99cbf2e440859ee47bef062f0ff0dad87e9f3869...v1.0.0)

**Closed issues:**

- Retry on 408 errors [\#9](https://github.com/zooniverse/json-api-client/issues/9)
- Breaking changes in 3.0.0 -\> 3.0.1 [\#5](https://github.com/zooniverse/json-api-client/issues/5)

**Merged pull requests:**

- Remove all environment detection [\#15](https://github.com/zooniverse/json-api-client/pull/15) ([chrissnyder](https://github.com/chrissnyder))
- Update to use superagent [\#14](https://github.com/zooniverse/json-api-client/pull/14) ([edpaget](https://github.com/edpaget))
- Don't cache resource link when using a query param [\#13](https://github.com/zooniverse/json-api-client/pull/13) ([edpaget](https://github.com/edpaget))
- Check the next key to see if the current one should be an array [\#11](https://github.com/zooniverse/json-api-client/pull/11) ([brian-c](https://github.com/brian-c))
- Retry on 408 [\#10](https://github.com/zooniverse/json-api-client/pull/10) ([brian-c](https://github.com/brian-c))
- Allow setting default params [\#8](https://github.com/zooniverse/json-api-client/pull/8) ([brian-c](https://github.com/brian-c))
- Track saving keys [\#6](https://github.com/zooniverse/json-api-client/pull/6) ([brian-c](https://github.com/brian-c))
- Clear changed keys before save, not after [\#4](https://github.com/zooniverse/json-api-client/pull/4) ([brian-c](https://github.com/brian-c))
- Track current reads/writes [\#3](https://github.com/zooniverse/json-api-client/pull/3) ([brian-c](https://github.com/brian-c))
- Test caches for linked resources [\#2](https://github.com/zooniverse/json-api-client/pull/2) ([edpaget](https://github.com/edpaget))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
