- Require Node 18/20
- Dependency updates to address vulnerabilities
- Use native
fetch
- Add support for PATCH
- Improved schema-post CLI util
- Improved documentation around authentication
- Dependency updates to address vulnerabilities
- Adds better CLI support for POSTing things
- Deprecated.
- Dependency updates to address vulnerabilities
- Attempt to refresh oauth token if found invalid for authenticated calls generally
- Make test suite offline by default including mocked api and oauth responses
- Add jsdoc generated usage.md, move usage notes out of README
- Improved CLI with get command for GETing arbitrary api paths
- Logs are now prefixed with "[nypl-data-api-client {LEVEL}]: "
- RequestOptions json config param defaults to true for all requests
- Client returns whole api response without [un]helpfully reaching into data property
- GET requests no longer cached by default
See PR for discussion.
- Small bug fix to return data from a GET if the endpoint does not wrap the data object in a
data
property.