|
1 |
| -# Changelog |
2 |
| - |
3 |
| -All notable changes to this project will be documented in this file. |
4 |
| - |
5 |
| -The format is based on [Keep a Changelog][kac], and this project adheres to |
6 |
| -[Semantic Versioning][semver]. |
7 |
| - |
8 |
| -[kac]: https://keepachangelog.com/en/1.0.0 |
9 |
| -[semver]: https://semver.org/spec/v2.0.0.html |
10 |
| - |
11 |
| -## Unreleased |
12 |
| - |
13 |
| -## 0.3.1 - 2021-06-12 |
14 |
| - |
15 |
| -### Changed |
16 |
| - |
17 |
| -- Using `@web-std/file` in place of `web-file-polyfill` (fixes [#6]) |
18 |
| - |
19 |
| -[#6]: https://github.com/siren-js/client/issues/6 |
20 |
| - |
21 |
| -## 0.3.0 - 2021-06-02 |
22 |
| - |
23 |
| -### Added |
24 |
| - |
25 |
| -- The following field types are now supported in action submission: |
26 |
| - - [`file`](https://github.com/siren-js/spec-extensions#file-fields) |
27 |
| - - [`select`](https://github.com/siren-js/spec-extensions#select-fields) |
28 |
| - - [`textarea`](https://github.com/siren-js/spec-extensions#textarea-fields) |
29 |
| - |
30 |
| -### Changed |
31 |
| - |
32 |
| -- When creating entries for action submission, fields' `name` and `value` |
33 |
| - properties are [converted] according to the HTML standard. |
34 |
| - |
35 |
| -[converted]: https://infra.spec.whatwg.org/#javascript-string-convert |
36 |
| - |
37 |
| -## 0.2.1 - 2021-05-19 |
38 |
| - |
39 |
| -### Fixed |
40 |
| - |
41 |
| -- When submitting an action, non-`checkbox` and non-`radio` fields with no |
42 |
| - `value` property are submitted with an empty string value, rather than |
43 |
| - `"undefined"` ([#3]). |
44 |
| - |
45 |
| -[#3]: https://github.com/siren-js/client/issues/3 |
46 |
| - |
47 |
| -## 0.2.0 - 2021-05-18 |
48 |
| - |
49 |
| -### Added |
50 |
| - |
51 |
| -- The client class now has a `headers` property for customizing HTTP headers |
52 |
| - sent in each request. The property can be initialized via the constructor's |
53 |
| - options object (see the [README](README.md#http-headers)). |
54 |
| - |
55 |
| -## 0.1.0 - 2021-05-03 |
56 |
| - |
57 |
| -### Added |
58 |
| - |
59 |
| -- Client class for communicating with a Siren server |
60 |
| - - `fetch()` method for hitting API entry point |
61 |
| - - `follow()` method for following links (including embedded links) |
62 |
| - - `submit()` method for submitting actions; currently, only actions whose |
63 |
| - `type` is `"application/x-www-form-urlencoded"` are supported. |
64 |
| -- Client `Response` wrapper for parsing Siren responses |
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog][kac], and this project adheres to |
| 6 | +[Semantic Versioning][semver]. |
| 7 | + |
| 8 | +[kac]: https://keepachangelog.com/en/1.0.0 |
| 9 | +[semver]: https://semver.org/spec/v2.0.0.html |
| 10 | + |
| 11 | +## Unreleased |
| 12 | + |
| 13 | +## 0.4.0 |
| 14 | + |
| 15 | +### Added |
| 16 | + |
| 17 | +- Support for custom serializers |
| 18 | +- Default serializer for `text/plain` actions |
| 19 | + |
| 20 | +### Changed |
| 21 | + |
| 22 | +- Upgraded `@siren-js/core` to v0.3.2 |
| 23 | +- Aligned newline normalization with HTML's algorithm for |
| 24 | + [converting an entry list to a list of name-value pairs][el2nvp], which |
| 25 | + normalizes newlines in fields' `name`s and values during action submission. |
| 26 | + |
| 27 | +[el2nvp]: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs |
| 28 | + |
| 29 | +## 0.3.1 - 2021-06-12 |
| 30 | + |
| 31 | +### Changed |
| 32 | + |
| 33 | +- Using `@web-std/file` in place of `web-file-polyfill` (fixes [#6]) |
| 34 | + |
| 35 | +[#6]: https://github.com/siren-js/client/issues/6 |
| 36 | + |
| 37 | +## 0.3.0 - 2021-06-02 |
| 38 | + |
| 39 | +### Added |
| 40 | + |
| 41 | +- The following field types are now supported in action submission: |
| 42 | + - [`file`](https://github.com/siren-js/spec-extensions#file-fields) |
| 43 | + - [`select`](https://github.com/siren-js/spec-extensions#select-fields) |
| 44 | + - [`textarea`](https://github.com/siren-js/spec-extensions#textarea-fields) |
| 45 | + |
| 46 | +### Changed |
| 47 | + |
| 48 | +- When creating entries for action submission, fields' `name` and `value` |
| 49 | + properties are [converted] according to the HTML standard. |
| 50 | + |
| 51 | +[converted]: https://infra.spec.whatwg.org/#javascript-string-convert |
| 52 | + |
| 53 | +## 0.2.1 - 2021-05-19 |
| 54 | + |
| 55 | +### Fixed |
| 56 | + |
| 57 | +- When submitting an action, non-`checkbox` and non-`radio` fields with no |
| 58 | + `value` property are submitted with an empty string value, rather than |
| 59 | + `"undefined"` ([#3]). |
| 60 | + |
| 61 | +[#3]: https://github.com/siren-js/client/issues/3 |
| 62 | + |
| 63 | +## 0.2.0 - 2021-05-18 |
| 64 | + |
| 65 | +### Added |
| 66 | + |
| 67 | +- The client class now has a `headers` property for customizing HTTP headers |
| 68 | + sent in each request. The property can be initialized via the constructor's |
| 69 | + options object (see the [README](README.md#http-headers)). |
| 70 | + |
| 71 | +## 0.1.0 - 2021-05-03 |
| 72 | + |
| 73 | +### Added |
| 74 | + |
| 75 | +- Client class for communicating with a Siren server |
| 76 | + - `fetch()` method for hitting API entry point |
| 77 | + - `follow()` method for following links (including embedded links) |
| 78 | + - `submit()` method for submitting actions; currently, only actions whose |
| 79 | + `type` is `"application/x-www-form-urlencoded"` are supported. |
| 80 | +- Client `Response` wrapper for parsing Siren responses |
0 commit comments