Skip to content

Commit 1162c9f

Browse files
authored
v1.1.9
1 parent 95cddb4 commit 1162c9f

File tree

1 file changed

+59
-2
lines changed

1 file changed

+59
-2
lines changed

CHANGELOG.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,52 @@
1+
## v1.1.9 (02/19/2021)
2+
3+
### Enhancements
4+
5+
- feat(wordpress): Add `@__` translate directive (#38)
6+
- feat(wordpress): Add @wpbodyopen directive (#46)
7+
- chore(docs): Document @wpbodyopen directive
8+
- feat(acf): Add `@hasfields` and `@endhasfields` directives (#52)
9+
- chore(docs): Add @hasfields and @endhasfields to docs (#53)
10+
- enhance(package): Add `log1x/sage-directives/namespace` filter for overriding default namespace (#33)
11+
- feat(directives): Add `@hasoptions` & `@endhasoptions` (#54)
12+
13+
### Bug fixes
14+
15+
- fix(docs): Update legacy codex documentation links (#47)
16+
- fix(term-directive): Fix warnings for `@term` (#55)
17+
18+
## v1.1.8 (03/31/2020)
19+
20+
### Bug fixes
21+
22+
- fix(hasposts): add missing closing tag (Fixes: #34)
23+
24+
## v1.1.7 (02/20/2020)
25+
26+
### Bug fixes
27+
28+
- Fix `@thumbnail()` having `thumbnail` hardcoded as its image size when passed `false` as the second value.
29+
130
## v1.1.6 (12-02-2019)
231

332
### Bug fixes
33+
434
- Allow the second parameter of `@set` to accept a value containing commas (e.g. an array) (Fixes #28)
535

636
### Enhancements
37+
738
- Allow passing `raw` as the second parameter of `@image` to return an attachment URL (Fixes #24)
839
- Add the `$limit` parameter to the `parse` method to allow passing a limit to `explode()` (#28)
940
- Bump lock files
1041

1142
### Documentation
12-
- Add `@image` example for `raw`
43+
44+
- Add `@image` example for `raw`
1345

1446
## v1.1.5 (11-19-2019)
1547

1648
### Enhancements
49+
1750
- Add `@notempty` / `@endnotempty` (#27, @shanejones)
1851
- Bump dependencies
1952
- Remove unused `$expression` from `@end` directives
@@ -22,32 +55,38 @@
2255
## v1.1.4 (11-13-2019)
2356

2457
### Bug fixes
58+
2559
- Use `Illuminate\Support\Str` instead of `str_`
2660

2761
## v1.1.3 (08-25-2019)
2862

2963
### Enhancements
64+
3065
- Added `@hasposts` and `@endhasposts` directives.
3166
- Added `@noposts` and `@endnoposts` directives. (#18)
3267

3368
## v1.1.2 (08-07-2019)
3469

3570
### Bug fixes
71+
3672
- Use `Collection::put()` instead of `Collection::replace()` to maintain backwards compatibility.
3773

3874
## v1.1.1 (08-07-2019)
3975

4076
### Enhancements
77+
4178
- Added `Util::unwrap()` which simply unwraps the passed string from the passed delimiter.
4279
- Added `Util::clean()` to combine and clean malformed arrays formed from a parsed expressions.
4380
- `Util::toString()` now accepts a second parameter `$single` for working with flattened or malformed arrays.
4481

4582
### Bug fixes
83+
4684
- Fix passing an array as the third parameter to `@image`
4785

4886
## v1.1.0 (08-07-2019)
4987

5088
### Enhancements
89+
5190
- Added `@image` directive which echos attachment images as well as ACF field images responsively using `wp_get_attachment_image()`
5291
- Added `Util::field()` which if ACF is present, attempts to get and return a field value from `get_field()`, `get_sub_field()`, or `get_field($field, 'option')` (in that order).
5392
- Added `Util::toString()` which attempts to convert expressions such as arrays back to strings before passing them to Blade to avoid array to string exceptions after modifying arrays passed as a Blade expression.
@@ -60,95 +99,113 @@
6099
- Other small clean up.
61100

62101
### Bug fixes
102+
63103
- Fix documentation styles with the new VuePress.
64104
- Only pull the Google font weights we're actually using on the documentation.
65105

66106
## v1.0.9 (05-12-2019)
67107

68108
### Enhancements
109+
69110
- Move docs from DocPress to VuePress (woo-hoo search!)
70111
- Add CHANGELOG.md
71112
- Clean up `package.json`
72113
- Clean up `.gitignore` and `.gitattributes`
73114

74115
### Bug Fixes
116+
75117
- Fix various typo's within the documentation.
76118

77119
## v1.0.8 (05-03-2019)
78120

79121
### Enhancements
122+
80123
- Use a better method of getting Sage 10's Blade compiler.
81124

82125
### Bug Fixes
126+
83127
- Remove an unused `@asset` implementation that clashes with Sage 10.
84128

85129
## v1.0.7 (04-30-2019)
86130

87131
### Enhancements
88-
- Add Sage 10 support 🎈
132+
133+
- Add Sage 10 support 🎈
89134
- `@sub` and `@hassub` can now accept a third parameter for deeper nested arrays (e.g. `@sub('images', 'sizes', 'thumbnail')`). (Fixes #12)
90135
- New `@permalink`, `@categories`, `@category`, `@term`, `@role`, and `@endrole` directives.
91136

92137
### Bug Fixes
138+
93139
- Change `get()` to a protected function.
94140
- Fix a few typos in the docs. (Fixes #13)
95141

96142
## v1.0.6 (03-02-2019)
97143

98144
### Enhancements
145+
99146
- Change namespace to `Log1x\SageDirectives`
100147
- The project README was getting a little insane with the amount of Directives currently in the project. They now have a new home: https://log1x.github.io/sage-directives-docs/
101148

102149
### Bug Fixes
150+
103151
- Set `ignore_sticky_posts` to `true` when passing an array of post IDs/objects to `@posts`
104152
- Properly return the collection array when passing post IDs/objects to `@posts`
105153

106154
## v1.0.5 (02-13-2019)
107155

108156
### Bug Fixes
157+
109158
- Change `is_number()` to `is_numeric()` (oops)
110159
- Fix `@published` typo on README
111160

112161
## v1.0.4 (02-11-2019)
113162

114163
### Features
164+
115165
- Added 12+ new helper directives: `@istrue`, `@isfalse`, `@isnull`, `@isnotnull`, `@instanceof`, `@typeof`, `@repeat`, `@style`, `@script`, `@js`, `@inline`, `@fa`
116166
- Added 6 new WordPress directives: `@author`, `@authorurl`, `@published`, `@modified`, `@wpautop`, `@wpautokp`
117167
- Refactored `@posts` allowing it to accept post ID's, `WP_Post` instances, or an array with a combination of the two (#8)
118168
- Refactored source code DocBlocks and formatting of directives
119169
- Improved formatting and examples for documentation
120170

121171
### Bug Fixes
172+
122173
- Fix missing closing parenthesis in fields directive (#7)
123174
- Added missing parameters to allow passing an array key to `@isfield`, `@issub`, and `@isoption`
124175

125176
### Breaking Change
177+
126178
- `@condition` has been replaced with `@istrue` / `@isfalse`
127179

128180
## v1.0.3 (01-30-2019)
129181

130182
### Bug Fixes
183+
131184
- Add a `function_exists()` check for `add_action()` to prevent issues in scenarios where WordPress core is not loaded (e.g. Composer).
132185

133186
## v1.0.2 (12-07-2018)
134187

135188
### Features
189+
136190
- Add usage documentation with examples.
137191
- Allow `@posts` to accept a custom WP_Query instance as a variable as well as return the main loop if `$query` is undefined and no variable is passed. (Thanks to @mmirus on #1)
138192
- Add `@title`, `@content`, and `@excerpt` WordPress directives.
139193
- Allow `@option` to accept a second parameter to return a value in an array.
140194

141195
### Enhancements
196+
142197
- Clean up `@sub`, `@hassub`, and `@issub` (were mistakenly accepting unusable param's originally from `@field`).
143198
- Clean up `@condition` syntax to be more uniform with the other directives.
144199

145200
### Bug Fixes
201+
146202
- Add missing `@isoption` directive.
147203
- Fix `@options` param typo.
148204

149205
## v1.0.1 (10-29-2018)
150206

151207
### Enhancements
208+
152209
- Rewrite utility methods making use of `collect()` and allowing easier argument splitting.
153210
- Refactor directives using new utility methods as well as allowing additional arguments to be passed for ACF directives such as post ID.
154211
- Make directive source code more readable.

0 commit comments

Comments
 (0)