Releases: payload-code/armrest-node
Releases · payload-code/armrest-node
v0.2.2
Release Notes
🚀 Features
Default Headers Support in Session (#6)
Added the ability to configure default headers at the Session level that will be automatically applied to all requests made within that session. This allows for cleaner code when working with APIs that require consistent headers across multiple requests.
What's New
- Session instances now support a
headersconfiguration option - Default headers are automatically merged with request-specific headers
- Request-level headers take precedence over session defaults
- Comprehensive test coverage for the new functionality
Usage Example
import Armrest from '@armrest/client'
const API = new Armrest('http://armrest-api-url')
.model('Example')
const api = API.Session('api-key', {
headers: {
'X-Custom-Header': 'value',
'User-Agent': 'MyApp/1.0'
}
})New Contributors
- @russellw-dev made their first contribution in #6
Full Changelog
v0.2.1
What's Changed
- Bump follow-redirects from 1.15.5 to 1.15.6 by @dependabot in #5
New Contributors
- @dependabot made their first contribution in #5
Full Changelog: v0.2.0...v0.2.1
v0.2.0
v0.1.8
v0.1.7
v0.1.3
What's Changed
- Add range()
- Create build process for hybrid esm and cjs module
- Fix create if no initial object is passed
New Contributors
- @benstopics made their first contribution in #1
Full Changelog: v0.1.1...v0.1.3
v0.1.1
Initial release of the Node.js Armrest client library