Releases: siren-js/client
Releases · siren-js/client
v0.3.1
Changed
- Using
@web-std/file
in place of web-file-polyfill
(fixes #6)
v0.3.0
Added
- The following field types are now supported in action submission:
Changed
- When creating entries for action submission, fields'
name
and value
properties are converted according to the HTML standard.
v0.2.1
Fixed
- When submitting an action, non-
checkbox
and non-radio
fields with no value
property are submitted with an empty string value, rather than "undefined"
(#3).
v0.2.0
Added
- The client class now has a
headers
property for customizing HTTP headers sent in each request. The property can be initialized via the constructor's options object (see the README).
v0.1.0
Added
- Client class for communicating with a Siren server
fetch()
method for hitting API entry point
follow()
method for following links (including embedded links)
submit()
method for submitting actions; currently, only actions whose
type
is "application/x-www-form-urlencoded"
are supported.
- Client
Response
wrapper for parsing Siren responses