Skip to content

Releases: siren-js/client

v0.3.1

12 Jun 19:54
fd8cae4
Compare
Choose a tag to compare

Changed

  • Using @web-std/file in place of web-file-polyfill (fixes #6)

v0.3.0

02 Jun 20:00
7d2ae50
Compare
Choose a tag to compare

Added

Changed

  • When creating entries for action submission, fields' name and value properties are converted according to the HTML standard.

v0.2.1

19 May 14:07
b5a376a
Compare
Choose a tag to compare

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

18 May 15:33
f29e978
Compare
Choose a tag to compare

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

03 May 13:27
d5e971a
Compare
Choose a tag to compare

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