# Change Log

All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).

## 8.5.58 - 2026-11-21

* Update dependency lint-staged to v17.6.1 [balena-renovate[bot]]

## 8.5.57 - 2026-11-10

* Resolve parameter aliases in the `getOrCreate` natural key [Pagan Gazzard]
* Error when `getOrCreate` body conflicts with the natural key in `id` [Pagan Gazzard]

## 8.5.56 - 2026-11-09

* Fix `prepare` and `subscribe` sharing params between calls [Pagan Gazzard]

## 8.5.55 - 2026-11-06

* Fix `upsert` not patching after a unique key conflict [Pagan Gazzard]

## 8.5.54 - 2026-11-05

* Fix `no-useless-assignment` lint errors [Pagan Gazzard]

## 8.5.53 - 2026-11-02

* Update dependency @balena/lint to v11 [balena-renovate[bot]]

## 8.5.52 - 2026-10-23

* Fix the swapped internal typings of `Poll` subscribers [Pagan Gazzard]

## 8.5.51 - 2026-10-23

* Remove `passthroughByMethod` from the per-request `Params` typings [Pagan Gazzard]

## 8.5.50 - 2026-10-23

* Disallow nested arrays in the `OrderBy` typings [Pagan Gazzard]

## 8.5.49 - 2026-10-22

* Fix `delete` mutating the params passed in [Pagan Gazzard]

## 8.5.48 - 2026-10-22

* Error when `action` is set but null/undefined [Pagan Gazzard]

## 8.5.47 - 2026-10-22

* Fix the error message for an invalid retry `maxAttempts` [Pagan Gazzard]

## 8.5.46 - 2026-10-22

* Error when combining `id` with `options: { $count: ... }` [Pagan Gazzard]

## 8.5.45 - 2026-10-22

* Error when `id` is an empty object [Pagan Gazzard]

## 8.5.44 - 2026-10-22

* Fix the error message for extra options alongside a top level `$count` [Pagan Gazzard]

## 8.5.43 - 2026-10-04

* Update dependency mocha to v12.0.3 [balena-renovate[bot]]

## 8.5.42 - 2026-10-03

* Update dependency chai to v6.3.0 [balena-renovate[bot]]

## 8.5.41 - 2026-10-03

* Update dependency lint-staged to v17.6.0 [balena-renovate[bot]]

## 8.5.40 - 2026-09-20

* Update dependency mocha to v12.0.2 [balena-renovate[bot]]

## 8.5.39 - 2026-09-17

* Update dependency lint-staged to v17.5.1 [balena-renovate[bot]]

## 8.5.38 - 2026-09-16

* Update dependency mocha to v12 [balena-renovate[bot]]

## 8.5.37 - 2026-09-12

* Update dependency lint-staged to v17.5.0 [balena-renovate[bot]]

## 8.5.36 - 2026-08-30

* Update dependency lint-staged to v17.4.1 [balena-renovate[bot]]

## 8.5.35 - 2026-08-25

* Update dependency flowzonify to v0.4.0 [balena-renovate[bot]]

## 8.5.34 - 2026-08-08

* Update dependency mocha to v11.8.0 [balena-renovate[bot]]

## 8.5.33 - 2026-08-08

* Update dependency lint-staged to v17.3.0 [balena-renovate[bot]]

## 8.5.32 - 2026-07-26

* Update dependency lint-staged to v17.2.0 [balena-renovate[bot]]

## 8.5.31 - 2026-07-25

* Update dependency lint-staged to v17.1.1 [balena-renovate[bot]]

## 8.5.30 - 2026-07-25

* Update dependency lint-staged to v17.1.0 [balena-renovate[bot]]

## 8.5.29 - 2026-06-30

* Type the bracketJoin separator as precise literals [Otavio Jacobi]
* Avoid not necessary parenthesis on 'or' and 'and' expressions [Otavio Jacobi]

## 8.5.28 - 2026-06-27

* Update dependency lint-staged to v17.0.8 [balena-renovate[bot]]

## 8.5.27 - 2026-06-25

* Combine the two iterations for `bracketJoin` into a single iteration [Pagan Gazzard]
* Use for loops in preference to `forEach` [Pagan Gazzard]

## 8.5.26 - 2026-06-20

* Pin dependencies [balena-renovate[bot]]

## 8.5.25 - 2026-06-16

* Switch from custom `Dictionary` type to built in `Record` typing [Pagan Gazzard]

## 8.5.24 - 2026-06-16

* Update typescript to 6.x [Pagan Gazzard]

## 8.5.23 - 2026-06-15

* Resolve lint errors [joshbwlng]

## 8.5.22 - 2026-06-11

* Update dependency lint-staged to v17 [balena-renovate[bot]]

## 8.5.21 - 2026-06-11

* Update dependency chai to v6 [balena-renovate[bot]]

## 8.5.20 - 2026-06-10

* Pin dependencies [balena-renovate[bot]]

## 8.5.19 - 2026-05-13

* Rename .lintstagedrc to .lintstagedrc.json [joshbwlng]

## 8.5.18 - 2026-03-26

* Revert flowzone pinning to master [Kyle Harding]

## 8.5.17 - 2026-03-26

* Update product-os/flowzone digest to 8ea01d3 [balena-renovate[bot]]

## 8.5.16 - 2026-03-26

* Update product-os/flowzone digest to 3eb3c97 [balena-renovate[bot]]

## 8.5.15 - 2026-03-26

* Update product-os/flowzone digest to 7b49c1e [balena-renovate[bot]]

## 8.5.14 - 2026-03-26

* Update product-os/flowzone digest to 8d926e2 [balena-renovate[bot]]

## 8.5.13 - 2026-03-26

* Update product-os/flowzone digest to 20a58d6 [balena-renovate[bot]]

## 8.5.12 - 2026-03-26

* Update product-os/flowzone digest to 7b1359d [balena-renovate[bot]]

## 8.5.11 - 2026-03-26

* Update product-os/flowzone digest to 7b87702 [balena-renovate[bot]]

## 8.5.10 - 2026-03-26

* Update product-os/flowzone digest to cc9836f [balena-renovate[bot]]

## 8.5.9 - 2026-03-26

* Update product-os/flowzone digest to b79645a [balena-renovate[bot]]

## 8.5.8 - 2026-03-26

* Update product-os/flowzone digest to 4815186 [balena-renovate[bot]]

## 8.5.7 - 2026-03-26

* Update product-os/flowzone digest to 267495d [balena-renovate[bot]]

## 8.5.6 - 2026-03-25

* Update product-os/flowzone digest to f955793 [balena-renovate[bot]]

## 8.5.5 - 2026-03-25

* Update product-os/flowzone digest to 8674dc5 [balena-renovate[bot]]

## 8.5.4 - 2026-03-25

* Update product-os/flowzone digest to eb703ea [balena-renovate[bot]]

## 8.5.3 - 2026-03-24

* Pin product-os/flowzone action to a53cf4b [balena-renovate[bot]]

## 8.5.2 - 2026-02-25

* Update dev dependencies [Pagan Gazzard]

## 8.5.1 - 2026-02-19

* Add id-token: write permission for NPM OIDC publishing [Kyle Harding]

## 8.5.0 - 2025-11-18

* Add support for `Set` in place of arrays in `$select` [Pagan Gazzard]

## 8.4.1 - 2025-11-10

* Stop adding white space after comma in $in expressions [Thodoris Greasidis]

## 8.4.0 - 2025-10-10

* Add a `StatusError` class that downstream is expected to use for errors [Pagan Gazzard]

## 8.3.3 - 2025-10-10

* Types: make use of inference for some simplification [Pagan Gazzard]

## 8.3.2 - 2025-09-03

* Improve typing of the `$: 'prop_name'` case [Pagan Gazzard]

## 8.3.1 - 2025-08-01

* Update dependencies [Pagan Gazzard]

## 8.3.0 - 2025-07-17

* Add support to odata-actions [Otavio Jacobi]

## 8.2.1 - 2025-07-04

* Safely access 'id' of Params to avoid `unknown` propagation [Otavio Jacobi]

## 8.2.0 - 2025-06-10

* Expose ResourceID typings [Otavio Jacobi]

## 8.1.5 - 2025-05-23

* Fix linting [Otavio Jacobi]

## 8.1.4 - 2025-03-25

* Update dependency mocha to v11 [balena-renovate[bot]]

## 8.1.3 - 2025-03-25

* Update dependency @balena/lint to v9 [balena-renovate[bot]]

## 8.1.2 - 2024-11-23

* Update TypeScript to 5.7.2 [Thodoris Greasidis]

## 8.1.1 - 2024-10-09

* Update @balena/abstract-sql-to-typescript to 5.0.0 [Thodoris Greasidis]

## 8.1.0 - 2024-10-09

* Add support for calling odata fns [Otavio Jacobi]

## 8.0.1 - 2024-09-13

* Fix multiple lambdas triggering the expand filter error [Pagan Gazzard]

## 8.0.0 - 2024-09-13

* Remove error check if passing too many arguments to `request` [Pagan Gazzard]
* Update error messages for invalid params [Pagan Gazzard]
* Drop `url` from general `Params` and only have it in supported places [Pagan Gazzard]
* Remove deprecated `prepare` signatures in favor of always passing expected aliases [Pagan Gazzard]
* Remove `$filter: a: b: ...`, please use `$filter: a: $any: { $alias: "x", $expr: x: b: ... }` instead. [Pagan Gazzard]
* Remove unused `PinejsClient` generic from the class signature [Pagan Gazzard]
* Removed `$filter: { a: { $count: { $op: number } } }`, please use `$filter: { $eq: [ { a: { $count: {} } }, number ] }` instead. [Pagan Gazzard]
* Update minimum supported version to es2018 [Pagan Gazzard]
* Removed deprecated `transformGetResult` and renamed `_transformGetResult` to replace it [Pagan Gazzard]
* Error on using OData options other than $filter in a `$expand: { a: { $count: {...} } }`. [Pagan Gazzard]
* Removed `$orderby: 'a/$count'`, please use `$orderby: { a: { $count: {...} } }` instead. [Pagan Gazzard]
* Removed `$expand: { 'a/$count': {...} }`, please use `$expand: { a: { $count: {...} } }` instead. [Pagan Gazzard]
* Removed `resource: 'a/$count'`, please use `options: { $count: { ... } }` instead. [Pagan Gazzard]
* Removed passing `url` to `compile`, please use a query object instead or use the url directly. [Pagan Gazzard]
* Removed passing `url` to `delete`, please use a query object instead or use `request` directly. [Pagan Gazzard]
* Removed passing `url` to `put`, please use a query object instead or use `request` directly. [Pagan Gazzard]
* Removed passing `url` to `patch`, please use a query object instead or use `request` directly. [Pagan Gazzard]
* Removed passing `url` to `post`, please use a query object instead or use `request` directly. [Pagan Gazzard]
* Removed passing `url` to `get`, please use a query object instead or use `request` directly. [Pagan Gazzard]
* Removed passing `url` to `upsert` as it is unsupported and may have adverse effects, please use a query object instead. [Pagan Gazzard]
* Removed passing `url` to `getOrCreate` as it is unsupported and may have adverse effects, please use a query object instead. [Pagan Gazzard]

## 7.2.0 - 2024-09-13

* Export `OptionsToResponse` type helper [Pagan Gazzard]

## 7.1.5 - 2024-09-13

* Switch tsconfig module resolution to Node16 [Pagan Gazzard]

## 7.1.4 - 2024-09-10

* Update TypeScript to 5.6.2 [Thodoris Greasidis]

## 7.1.3 - 2024-09-05

* Improve `upsert` typings [Pagan Gazzard]

## 7.1.2 - 2024-09-05

* Improve `getOrCreate` typings [Pagan Gazzard]

## 7.1.1 - 2024-09-04

* Improve typings for `subscribe` function [Pagan Gazzard]
* Fix typing for subscribe `on('data')` method [Pagan Gazzard]

## 7.1.0 - 2024-09-02

* Deprecate `prepare` without expected parameter aliases [Pagan Gazzard]
* Add the option to list expected parameter aliases when preparing a query [Pagan Gazzard]

## 7.0.3 - 2024-08-30

* Fix typings for `request` method when using `method: 'GET'` [Pagan Gazzard]

## 7.0.2 - 2024-08-30

* Reduce overloads for `get` by improving `OptionsToResponse` type helper [Pagan Gazzard]

## 7.0.1 - 2024-08-29

* Change `ExpandPropsOf` and `ExpandToResponse` helpers to check the common case first [Pagan Gazzard]

## 7.0.0 - 2024-08-13

* Update @balena/abstract-sql-to-typescript to v4 [Josh Bowling]

## 6.15.11 - 2024-08-12

* Fix most lint warnings [Pagan Gazzard]

## 6.15.10 - 2024-07-08

* Fix `getOrCreate` and `upsert` typing for the `body` property [Pagan Gazzard]

## 6.15.9 - 2024-07-05

* Export `ExpandableStringKeyOf` typing [Pagan Gazzard]

## 6.15.8 - 2024-07-05

* Improve typings of `prepare` when used to `GET` [Pagan Gazzard]

## 6.15.7 - 2024-06-27

* Use `OptionsToResponse` to avoid most of the `get` overloads [Pagan Gazzard]

## 6.15.6 - 2024-06-25

* Add support for nested $expand response types and $count expands [Pagan Gazzard]

## 6.15.5 - 2024-06-25

* Select all non-expanded fields when there is no $select [Pagan Gazzard]

## 6.15.4 - 2024-06-24

* Update dependencies [Pagan Gazzard]

## 6.15.3 - 2024-06-20

* Correctly type that all properties are selected with a missing $select [Pagan Gazzard]

## 6.15.2 - 2024-06-19

* Improve $orderby typings when not providing a model [Pagan Gazzard]

## 6.15.1 - 2024-06-17

* Correctly type the `POST` result as being fully deferred [Pagan Gazzard]

## 6.15.0 - 2024-06-14

* Add support for using model specific typings [Pagan Gazzard]

## 6.14.13 - 2024-06-12

* Deprecate passing `url` to helper functions [Pagan Gazzard]

## 6.14.12 - 2024-06-12

* Type `upsert` and `getOrCreate` as not accepting a `url` [Pagan Gazzard]

## 6.14.11 - 2024-06-11

* Include comments in generated output so that jsdoc is available [Pagan Gazzard]

## 6.14.10 - 2024-06-11

* Tests: improve typing of tests [Pagan Gazzard]

## 6.14.9 - 2024-06-10

* Add `$filter` to nested `$count` typings [Pagan Gazzard]

## 6.14.8 - 2024-06-10

* Tests: remove unnecessary/unintended returns [Pagan Gazzard]

## 6.14.7 - 2024-06-06

* Fix using top level $count downstream [Pagan Gazzard]

## 6.14.6 - 2024-05-28

* Type $count/$any/$all as needing to be nested in a navigation property [Pagan Gazzard]

## 6.14.5 - 2024-05-28

* Use readonly arrays for typings for better compatibility with `as const` [Pagan Gazzard]

## 6.14.4 - 2024-05-08

* Deprecate the generic `PinejsClient` typing in favor of using `this` for `.clone` typing [Pagan Gazzard]

## 6.14.3 - 2024-04-17

* Update dev dependencies [Pagan Gazzard]

## 6.14.2 - 2024-03-04

* Improve typings [Pagan Gazzard]

## 6.14.1 - 2024-03-04

* Update dependencies [Pagan Gazzard]

## 6.14.0 - 2023-12-05

* Respect the Retry-After header when clients define the getRetryAfterHeader option [Thodoris Greasidis]

## 6.13.0 - 2023-07-11

* Add support for $duration [Thodoris Greasidis]

## 6.12.4 - 2023-05-09

* Avoid an unnecessary function creation on each get() call [Thodoris Greasidis]

## 6.12.3 - 2022-12-28

* CI: Convert tests to TypeScript [Josh Bowling]

## 6.12.2 - 2022-11-18

* Fix `$orderby: { a: { $count: ... }, $dir: 'asc' }` typings [Thodoris Greasidis]

## 6.12.1 - 2022-11-15

* Update TypeScript to 4.9.3 [Thodoris Greasidis]

## 6.12.0 - 2022-11-10

* Deprecate the 'a/count' notation in $orderby [Thodoris Greasidis]
* Deprecate the $count: { $op: number } notation [Thodoris Greasidis]
* Add support for `$filter: { $op: [{ $count: {} }, number] }` notation [Thodoris Greasidis]

## 6.11.0 - 2022-11-09

* Deprecate non-$filter props inside `$expand: { a: { $count: {...}}}` [Thodoris Greasidis]
* Add support for `$orderby: { a: { $count: ... }, $dir: 'asc' }` notation [Thodoris Greasidis]

## 6.10.7 - 2022-11-07

* Refactor the deprecation message definitions [Thodoris Greasidis]

## 6.10.6 - 2022-10-31

* tests: Support `.only` & `.skip` in the higher level test functions [Thodoris Greasidis]

## 6.10.5 - 2022-10-14

* Flowzone: Use inherited secrets [Pagan Gazzard]

## 6.10.4 - 2022-09-26

* Specify node 10 as the minimum supported node engine in the package.json [Thodoris Greasidis]
* Replace balenaCI with flowzone [Thodoris Greasidis]

# v6.10.3
## (2022-09-15)

* Fix $count typings to only allow $filter under it [Thodoris Greasidis]

# v6.10.2
## (2022-04-08)

* Update dependencies [Pagan Gazzard]
* Remove circleci [Pagan Gazzard]

# v6.10.1
## (2022-02-08)

* Do not await the _request() result to allow enhanced promises downstream [Thodoris Greasidis]

# v6.10.0
## (2022-01-24)

* Add optional retry logic to client [Paul Jonathan Zoulin]

# v6.9.6
## (2021-06-30)

* Reformat with the latest prettier [Thodoris Greasidis]
* Delete CODEOWNERS [Thodoris Greasidis]

# v6.9.5
## (2021-03-22)

* Enable strict tsconfig options by default [Pagan Gazzard]

# v6.9.4
## (2021-03-10)

* Update dependencies [Pagan Gazzard]

# v6.9.3
## (2020-11-20)

* Explicitly specify return types for all functions [Pagan Gazzard]

# v6.9.2
## (2020-10-23)

* Update dev dependencies [Pagan Gazzard]

# v6.9.1
## (2020-09-17)

* Improve typings [Pagan Gazzard]

# v6.9.0
## (2020-09-07)

* Add 'getOrCreate' method supporting natural keys [Thodoris Greasidis]

# v6.8.0
## (2020-09-03)

* Add support for $format [Pagan Gazzard]

# v6.7.3
## (2020-08-26)

* Improve $orderby typing to allow `[{a: 'desc'}, {b: 'asc'}]` [Pagan Gazzard]

# v6.7.2
## (2020-08-24)

* Update dev dependencies [Pagan Gazzard]

# v6.7.1
## (2020-08-12)

* Fix prepare $count typings [Pagan Gazzard]

# v6.7.0
## (2020-08-12)

* Improve typings for request/post/put/patch/delete [Pagan Gazzard]

# v6.6.1
## (2020-08-11)

* Fix typing when id is specified to be `AnyObject | undefined` [Pagan Gazzard]

# v6.6.0
## (2020-08-11)

* Deprecate `$expand: { 'a/$count': {...} }` [Pagan Gazzard]
* Deprecate `resource: 'a/$count'` and update typings to reflect it [Pagan Gazzard]

# v6.5.0
## (2020-08-11)

* Add `options: { $count: { ... } }` sugar for top level $count [Pagan Gazzard]
* Add `$expand: { a: { $count: { ... } } }` sugar for $count in expands [Pagan Gazzard]

# v6.4.0
## (2020-08-11)

* Improve return typing of `subscribe` method [Pagan Gazzard]

# v6.3.0
## (2020-08-11)

* Fix Poll.on typings [Pagan Gazzard]
* Improve return typing when id is passed to GET methods [Pagan Gazzard]
* Remove `PromiseResult` type, use `Promise<PromiseResultTypes>` instead [Pagan Gazzard]
* Remove `PromiseObj` type, use `Promise<{}>` instead [Pagan Gazzard]

# v6.2.0
## (2020-08-10)

* Add `$filter: { a: { $count: 1 } }` sugar for $count in filters [Pagan Gazzard]

# v6.1.2
## (2020-08-10)

* Remove redundant ParamsObj/SubscribeParamsObj types [Pagan Gazzard]

# v6.1.1
## (2020-08-10)

* Make use of `mapObj` helper in more places [Pagan Gazzard]
* Use `Object.keys` in preference to `hasOwnProperty` where applicable [Pagan Gazzard]

# v6.1.0
## (2020-07-21)

* Add support for using named ids [Pagan Gazzard]

# v6.0.1
## (2020-06-19)

* Drop unnecessary async from request() [Thodoris Greasidis]

# v6.0.0
## (2020-06-04)

* Increase minimum es version to es2015 [Pagan Gazzard]
* Convert to async/await [Pagan Gazzard]
* Remove now unnecessary PinejsClientCoreFactory [Pagan Gazzard]
* Switch to using native promises [Pagan Gazzard]
* Drop support for deprecated request overrides [Pagan Gazzard]
* Drop support for deprecated `query` method [Pagan Gazzard]
* Drop support for deprecated string based requests [Pagan Gazzard]
* Use `;` for expand options instead of `&` [Pagan Gazzard]

# v5.8.0
## (2020-05-29)

* Generate optional builds for es2015/es2018 as well as the default es5 [Pagan Gazzard]

# v5.7.1
## (2020-05-25)

* Update dependencies [Pagan Gazzard]

# v5.7.0
## (2020-04-15)

* Make transformGetResult a method , to ease overriding the get method [Thodoris Greasidis]

## 5.6.11 - 2020-02-21

* 🐛: Fix missing `deprecated.getStringParams` function [Andreas Fitzek]

## 5.6.10 - 2020-02-14

* Update to resin-lint 3.x [Pagan Gazzard]

## 5.6.9 - 2020-02-14

* CircleCI: Remove deploy job as it's handled by balenaCI [Pagan Gazzard]

## 5.6.8 - 2020-02-14

* Add the missing `method` on the post method [Thodoris Greasidis]

## 5.6.7 - 2020-02-14

* Deprecate request overrides [Pagan Gazzard]
* Deprecate queries using a string url [Pagan Gazzard]
* Deprecate `query` in favor of `get` [Pagan Gazzard]

## 5.6.6 - 2020-02-14

* Allow resource/$count in $filter [Pagan Gazzard]

## 5.6.5 - 2020-01-30

* Remove `defaults` helper in favour of `??` [Pagan Gazzard]

## 5.6.4 - 2020-01-30

* Avoid allocations when destroying a poll [Pagan Gazzard]

## 5.6.3 - 2020-01-30

* Improve `RawFilter` typing [Pagan Gazzard]

## 5.6.2 - 2020-01-29

* Update dependencies [Pagan Gazzard]

## 5.6.1 - 2020-01-22

* Switch most CODEOWNERS entries to a team [Pagan Gazzard]

## 5.6.0 - 2019-07-12

* Add 'upsert' method supporting natural keys, requires Pinejs ^10.19.1 [Thodoris Greasidis]

## 5.5.4 - 2019-06-18

* Remove unnecessary `string` type that is handled by the `Params` type [Pagan Gazzard]

## 5.5.3 - 2019-06-18

* Use an .npmrc to prevent creating a package-lock on each install [Thodoris Greasidis]

## 5.5.2 - 2019-06-10

* Add some type casting so that it compiles on TypeScript 3.5 [Thodoris Greasidis]

## 5.5.1 - 2019-05-15

* Fix downstream declaration creation errors due to `Dictionary` [Pagan Gazzard]

## 5.5.0 - 2019-05-15

* Add a prepare method that prepares a query into a function [Pagan Gazzard]

## 5.4.1 - 2019-05-10

* Add CODEOWNERS [Gergely Imreh]

## 5.4.0 - 2019-05-10

* Add support for parameter aliases in resource ids [Pagan Gazzard]

## 5.3.10 - 2019-05-10

* Deduplicate transformation of GET results [Pagan Gazzard]

## 5.3.9 - 2019-05-10

* Simplify how we expose types, which means `subscribe` is now exposed [Pagan Gazzard]

## 5.3.8 - 2019-05-09

* Add automatic formatting via prettier [Pagan Gazzard]

## 5.3.7 - 2019-05-08

* Remove node 4 build, add node 12 [Pagan Gazzard]
* Add .versionbot/CHANGELOG.yml for downstream changelogs [Pagan Gazzard]

## 5.3.6 - 2019-01-21

* Fix `passthroughByMethod` typing [Pagan Gazzard]

## v5.3.5 - 2018-10-18

* Make the abstract `overrides` signature optional [Pagan Gazzard]

## v5.3.4 - 2018-09-11

* Switch to using `ReturnType` now that we can [Pagan Gazzard]

## v5.3.3 - 2018-09-07

* Throw errors on empty $select or $orderby arrays as they're invalid [Pagan Gazzard]

## v5.3.2 - 2018-08-27

* Fix expand type #65 [Pagan Gazzard]

## v5.3.1 - 2018-08-15

* Use a native in for `$in` when all elements are primitive #64 [Pagan Gazzard]

## v5.3.0 - 2018-08-08

* Explicitly allow suffixing `/$count` onto resources #63 [Pagan Gazzard]

## v5.2.0 - 2018-06-14

* Add support for parameter aliases #62 [Pagan Gazzard]

## v5.1.0 - 2018-05-17

* Skip lib checks in tsconfig.json #61 [Pagan Gazzard]
* Exclude `node_modules` from tsconfig.json #61 [Pagan Gazzard]
* Remove unnecessary brackets from expands with an empty options object. #61 [Pagan Gazzard]
* Remove unnecessary brackets from function call parameters. #61 [Pagan Gazzard]
* Remove unnecessarily nested brackets. #61 [Pagan Gazzard]

## v5.0.3 - 2018-05-01

* Switch to using generated declaration files for types #60 [Pagan Gazzard]

## v5.0.2 - 2018-04-30

* Add node 10 to the circleci tests #59 [Pagan Gazzard]

## v5.0.1 - 2018-03-30

* Allow numbers and booleans for custom options.coffee #58 [Pagan Gazzard]

## v5.0.0 - 2018-03-29

* Change to the subscribe pollInterval to be the amount of time between the response of one poll until the start of the next, avoiding cases where we can have multiple ongoing requests if the interval is lower than the response time. #54 [Pagan Gazzard]
* Stop requiring a utils object be provided as the final `isObject` function is now handled internally. #54 [Pagan Gazzard]
* Stop requiring an `isDate` function be provided #54 [Pagan Gazzard]
* Stop requiring that an `isBoolean` function be provided and instead use a simple check that requires only primitive booleans be used (not wrapped in a Boolean object) #54 [Pagan Gazzard]
* Stop requiring that an `isString` function be provided and instead use a simple check that requires only primitive strings be used (not wrapped in a String object) #54 [Pagan Gazzard]
* Stop requiring that an `isNumber` function be provided and instead use `Number.isFinite` semantics for number checking #54 [Pagan Gazzard]
* Stop requiring that an `isArray` function be provided and instead use `Array.isArray`, drops supports for some very old browsers. #54 [Pagan Gazzard]
* Switch to `Array.prototype.map` dropping support for some very old browsers. #54 [Pagan Gazzard]
* Remove deprecated `customOptions` #54 [Pagan Gazzard]
* Remove deprecated expand behaviour #54 [Pagan Gazzard]
* Separate the request backend to pinejs-client-request #54 [Pagan Gazzard]
* Switch to a named `PinejsClientCoreFactory` export, rather than directly exporting the function #54 [Pagan Gazzard]
* Include the `$` in error messages to avoid potential confusion #54 [Pagan Gazzard]
* Switch to a commonjs module in preference to UMD #54 [Pagan Gazzard]
* Move type dependencies from dev to normal dependencies, so they are available to users of this module. #54 [Pagan Gazzard]
* Remove deprecated automatic $ prefixing for `options`, and deprecate `customOptions` #54 [Pagan Gazzard]
* Convert core to typescript #54 [Pagan Gazzard]
* Remove bower.json #54 [Pagan Gazzard]

## v4.3.2 - 2018-03-14

* Switch to circleci and enable auto-publishing #56 [Pagan Gazzard]

## v4.3.1 - 2018-03-08

* Fix expand typings, by making sure that the ODataOptions are only valid within a resource expand #55 [Pagan Gazzard]

## v4.3.0 - 2018-01-29

* Add 'subscribe' method for repeated requests for the same resource #51 [Lucian Buzzo]

## v4.2.4 - 2017-11-17

* Filters can now accept values of different base types. In particular null | Date |boolean have been added. Previously it would only accept number | string #48 [Giovanni Garufi]

## v4.2.3 - 2017-10-23

* Fix typing for request, previously no class type was defined due to exporting a class expression. #45 [Pagan Gazzard]
* Add a .travis.yml to test on travisci #45 [Pagan Gazzard]

## v4.2.2 - 2017-10-09

* Fix type for the Promise.reject
* Fix type of `_request` in request.d.ts
* Allow passing in the promise types in order to get a correctly typed promise returned

## v4.2.1

* Correctly type _request as a member function rather than a property
* Export a lot more of the types so they can be used by external typescript
* Merge properties into FilterObj directly, as the & merging doesn't work as expected
* Export the AnyObject type so it can be used for typing that we know the response will match it
* Fix clone typings
* Fixed util typings

## v4.2.0

* Changed options to avoid prepending `$` to options that already have `$` prepended, allowing them to be used and work
* Deprecated omitting the leading `$` in options

## v4.1.1

* Fixed types definition to make `backendParams` optional

## v4.1.0

* Added types for request and core.

## v4.0.0

* Added support for properly validating the contents of `$orderby`, `$select`, `$skip`, and `$top`

## v3.1.0

* Added support for empty expand object options (`expand: a: {}`)

## v3.0.0

* Added support for dates
* Breaking change: Utils must now provide an `isDate` method.

## v2.4.0

* Throw an error if the id property is set but is empty.

## v2.3.2

* Throw the correct error when an invalid resource is passed to `escapeResource`

## v2.3.1

* Fixed spurious deprecation notice on cases like `$expand: a: $select: 'b'`

## v2.3.0

* Deprecated `$expand: a: b: ...`
* Deprecated `$expand: a: "b"`
* Deprecated `$filter: a: b: ...`
* Added support for array and object forms of `$raw` which allows use of bindings for automatic processing of filter fragments and escaping of values.

## v2.2.0

* Updated request backend to lodash ^4.0.0

## v2.1.1

* Correctly escape single quotes in strings.

## v2.1.0

* Added support for the `any` and `all` lambda operators.

## v2.0.1

* Commit missed request.js changes.

## v2.0.0

* Updated request backend to use bluebird 3.
* Added a nice error message when an option without special handling isn't a string or array.

## v1.6.0

* Add suport for nested expands and expand options in the style `a: $expand: b: $select: 'c'`

## v1.5.0

* Added support for operator objects with only one value, eg `a: $ne: $: 'b'`
* Added status code to thrown errors from the request backend.

## v1.4.0

* Require a valid SSL certificate for the request backend by default.

## v1.3.1

* Fixed the request timeout value to be 30s instead of 30ms.

## v1.3.0

* Made sure that $in filters can be specified with arrays of length 1
* Default to 30s timeout for request, rather than hanging indefinitely.

## v1.2.0

* Added the concept of backend parameters via `new PinejsClient(params, backendParams)` and `.clone(params, backendParams)`
* Added a `cache` backend parameter to the request backend, which is used to create a bluebird-lru-cache cache for GET request ETags.

## v1.1.0

* Added a `compile` function that can be used to compile a request object to a url without sending off an actual request.
* Fixed the case of passing no params to the constructor/clone methods.

## v1.0.0

* Initial release
