File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4
4
5
+ ## 0.3.0 - TBD
6
+
7
+ ### Added
8
+
9
+ - [ #4 ] ( https://github.com/weierophinney/hal/pull/4 ) adds the ability to force
10
+ both links and embedded resources to be rendered as collections, even if the
11
+ given relation only contains one item.
12
+
13
+ To force a link to be rendered as a collection, pass the attribute
14
+ ` __FORCE__COLLECTION__ ` with a boolean value of ` true ` (or use the constant
15
+ ` Link::AS_COLLECTION ` to refer to the attribute name).
16
+
17
+ To force an embedded resource to be rendered as a collection, pass a boolean
18
+ ` true ` as the third argument to ` embed() ` . Alternately, pass an array
19
+ containing the single resource to any of the constructor, ` withElement() ` , or
20
+ ` embed() ` .
21
+
22
+ ### Changed
23
+
24
+ - Nothing.
25
+
26
+ ### Deprecated
27
+
28
+ - Nothing.
29
+
30
+ ### Removed
31
+
32
+ - Nothing.
33
+
34
+ ### Fixed
35
+
36
+ - Nothing.
37
+
5
38
## 0.2.0 - 2017-07-13
6
39
7
40
### Added
You can’t perform that action at this time.
0 commit comments