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.
Update dependencies [Thodoris Greasidis]
- Update @balena/abstract-sql-to-typescript to 5.0.0 [Thodoris Greasidis]
- Add support for calling odata fns [Otavio Jacobi]
- Switch to Node16 module resolution [Pagan Gazzard]
- Update @balena/abstract-sql-to-typescript to 4.0.6 [Pagan Gazzard]
- Update tsconfig target to es2023 [Pagan Gazzard]
- Update minimum nodejs to 20.x, npm to 10.x [Pagan Gazzard]
Update pinejs-client-core to 8.0.1 [Pagan Gazzard]
- Fix multiple lambdas triggering the expand filter error [Pagan Gazzard]
- Remove error check if passing too many arguments to
request
[Pagan Gazzard]- Update error messages for invalid params [Pagan Gazzard]
- Drop
url
from generalParams
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 useoptions: { $count: { ... } }
instead. [Pagan Gazzard]- Removed passing
url
tocompile
, please use a query object instead or use the url directly. [Pagan Gazzard]- Removed passing
url
todelete
, please use a query object instead or userequest
directly. [Pagan Gazzard]- Removed passing
url
toput
, please use a query object instead or userequest
directly. [Pagan Gazzard]- Removed passing
url
topatch
, please use a query object instead or userequest
directly. [Pagan Gazzard]- Removed passing
url
topost
, please use a query object instead or userequest
directly. [Pagan Gazzard]- Removed passing
url
toget
, please use a query object instead or userequest
directly. [Pagan Gazzard]- Removed passing
url
toupsert
as it is unsupported and may have adverse effects, please use a query object instead. [Pagan Gazzard]- Removed passing
url
togetOrCreate
as it is unsupported and may have adverse effects, please use a query object instead. [Pagan Gazzard]
- Export
OptionsToResponse
type helper [Pagan Gazzard]
- Switch tsconfig module resolution to Node16 [Pagan Gazzard]
- Update TypeScript to 5.6.2 [Thodoris Greasidis]
- Improve
upsert
typings [Pagan Gazzard]
- Improve
getOrCreate
typings [Pagan Gazzard]
- Improve typings for
subscribe
function [Pagan Gazzard]- Fix typing for subscribe
on('data')
method [Pagan Gazzard]
- Deprecate
prepare
without expected parameter aliases [Pagan Gazzard]- Add the option to list expected parameter aliases when preparing a query [Pagan Gazzard]
- Fix typings for
request
method when usingmethod: 'GET'
[Pagan Gazzard]
- Reduce overloads for
get
by improvingOptionsToResponse
type helper [Pagan Gazzard]
- Change
ExpandPropsOf
andExpandToResponse
helpers to check the common case first [Pagan Gazzard]
- Update @balena/abstract-sql-to-typescript to v4 [Josh Bowling]
- Update @balena/lint to 9.x [Pagan Gazzard]
- Copy
pinejs-client-core
sOptionsToResponse
to reduce overloads forget
[Pagan Gazzard]
Update dependencies [Pagan Gazzard]
- Fix most lint warnings [Pagan Gazzard]
- Fix
getOrCreate
andupsert
typing for thebody
property [Pagan Gazzard]
- Export
ExpandableStringKeyOf
typing [Pagan Gazzard]
- Improve typings of
prepare
when used toGET
[Pagan Gazzard]
- Use
OptionsToResponse
to avoid most of theget
overloads [Pagan Gazzard]
- Add support for nested $expand response types and $count expands [Pagan Gazzard]
- Select all non-expanded fields when there is no $select [Pagan Gazzard]
- Update dependencies [Pagan Gazzard]
- Correctly type that all properties are selected with a missing $select [Pagan Gazzard]
- Correctly type that all properties are selected with a missing $select [Pagan Gazzard]
Update pinejs-client-core to add support for using model specific typings [Pagan Gazzard]
- Improve $orderby typings when not providing a model [Pagan Gazzard]
- Correctly type the
POST
result as being fully deferred [Pagan Gazzard]
- Add support for using model specific typings [Pagan Gazzard]
Update dependencies [Pagan Gazzard]
- Deprecate passing
url
to helper functions [Pagan Gazzard]
- Type
upsert
andgetOrCreate
as not accepting aurl
[Pagan Gazzard]
- Include comments in generated output so that jsdoc is available [Pagan Gazzard]
- Tests: improve typing of tests [Pagan Gazzard]
- Add
$filter
to nested$count
typings [Pagan Gazzard]
- Tests: remove unnecessary/unintended returns [Pagan Gazzard]
- Fix using top level $count downstream [Pagan Gazzard]
- Type $count/$any/$all as needing to be nested in a navigation property [Pagan Gazzard]
- Use readonly arrays for typings for better compatibility with
as const
[Pagan Gazzard]
- Deprecate the generic
PinejsClient
typing in favor of usingthis
for.clone
typing [Pagan Gazzard]
- Update dev dependencies [Pagan Gazzard]
- Improve typings [Pagan Gazzard]
- Update dependencies [Pagan Gazzard]
- Respect the Retry-After header when clients define the getRetryAfterHeader option [Thodoris Greasidis]
- Add support for $duration [Thodoris Greasidis]
- Avoid an unnecessary function creation on each get() call [Thodoris Greasidis]
- CI: Convert tests to TypeScript [Josh Bowling]
- Fix
$orderby: { a: { $count: ... }, $dir: 'asc' }
typings [Thodoris Greasidis]
- Update TypeScript to 4.9.3 [Thodoris Greasidis]
- 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]
- Deprecate non-$filter props inside
$expand: { a: { $count: {...}}}
[Thodoris Greasidis]- Add support for
$orderby: { a: { $count: ... }, $dir: 'asc' }
notation [Thodoris Greasidis]
- Refactor the deprecation message definitions [Thodoris Greasidis]
- tests: Support
.only
&.skip
in the higher level test functions [Thodoris Greasidis]
- Flowzone: Use inherited secrets [Pagan Gazzard]
- Specify node 10 as the minimum supported node engine in the package.json [Thodoris Greasidis]
- Replace balenaCI with flowzone [Thodoris Greasidis]
- Fix $count typings to only allow $filter under it [Thodoris Greasidis]
- Update dependencies [Pagan Gazzard]
- Remove circleci [Pagan Gazzard]
- Update @balena/lint to 8.0.2 [Thodoris Greasidis]
- Update TypeScript to 5.4.5 [Thodoris Greasidis]
- Update supertest to v7 [Thodoris Greasidis]
- Update @types/supertest to v6 [Thodoris Greasidis]
- get(): Fix returning an empty object instead of undefined [Thodoris Greasidis]
- Update supertest to v6 [Thodoris Greasidis]
- Update @balena/lint to v7 [Thodoris Greasidis]
- Update TypeScript to 5.2.2 [Thodoris Greasidis]
- Drop support for node < 16 & require es2021 [Thodoris Greasidis]
- Export
PromiseResult
[myarmolinsky]
- Update flowzone.yml [Kyle Harding]
- Allow passing a url string as the
app
instead of an Express app [Thodoris Greasidis]
- Delete redundant .resinci.yml [Thodoris Greasidis]
- Specify node 10 as the minimum supported node engine in the package.json [Thodoris Greasidis]
- Replace balenaCI with flowzone [Thodoris Greasidis]
Fix using along with pinejs-client v6.10 [Thodoris Greasidis]
- Do not await the _request() result to allow enhanced promises downstream [Thodoris Greasidis]
- Add optional retry logic to client [Paul Jonathan Zoulin]
- Reformat with the latest prettier [Thodoris Greasidis]
- Delete CODEOWNERS [Thodoris Greasidis]
- Enable strict tsconfig options by default [Pagan Gazzard]
- Update dependencies [Pagan Gazzard]
- Delete CODEOWNERS [Thodoris Greasidis]
- Throw on not supported upsert & getOrCreate methods [Thodoris Greasidis]
Update pinejs-client-core to 6.9.3 and pick up improved typings [Pagan Gazzard]
- Explicitly specify return types for all functions [Pagan Gazzard]
- Update dev dependencies [Pagan Gazzard]
- Improve typings [Pagan Gazzard]
- Add 'getOrCreate' method supporting natural keys [Thodoris Greasidis]
- Add support for $format [Pagan Gazzard]
- Improve $orderby typing to allow
[{a: 'desc'}, {b: 'asc'}]
[Pagan Gazzard]
- Update dev dependencies [Pagan Gazzard]
- Fix prepare $count typings [Pagan Gazzard]
- Improve typings for request/post/put/patch/delete [Pagan Gazzard]
Update pinejs-client-core to 6.6.1 [Pagan Gazzard]
- Fix typing when id is specified to be
AnyObject | undefined
[Pagan Gazzard]
- Deprecate
$expand: { 'a/$count': {...} }
[Pagan Gazzard]- Deprecate
resource: 'a/$count'
and update typings to reflect it [Pagan Gazzard]
- Add
options: { $count: { ... } }
sugar for top level $count [Pagan Gazzard]- Add
$expand: { a: { $count: { ... } } }
sugar for $count in expands [Pagan Gazzard]
- Improve return typing of
subscribe
method [Pagan Gazzard]
- Fix Poll.on typings [Pagan Gazzard]
- Improve return typing when id is passed to GET methods [Pagan Gazzard]
- Remove
PromiseResult
type, usePromise<PromiseResultTypes>
instead [Pagan Gazzard]- Remove
PromiseObj
type, usePromise<{}>
instead [Pagan Gazzard]
- Add
$filter: { a: { $count: 1 } }
sugar for $count in filters [Pagan Gazzard]
- Remove redundant ParamsObj/SubscribeParamsObj types [Pagan Gazzard]
- Make use of
mapObj
helper in more places [Pagan Gazzard]- Use
Object.keys
in preference tohasOwnProperty
where applicable [Pagan Gazzard]
- Update dependencies [Pagan Gazzard]
- Add a .versionbot/CHANGELOG.yml for nested changelogs [Pagan Gazzard]
- Bump build target to es2018 [Thodoris Greasidis]
- Add method overrides to provide supertest typings in the results [Thodoris Greasidis]
- Update pinejs-client-core to v6 [Thodoris Greasidis]
- Initial code commit [Thodoris Greasidis]
- Initialize repository