Skip to content

Commit 5f5b616

Browse files
Release v0.2.2
1 parent cd762d0 commit 5f5b616

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

Changelog.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,44 @@ Get the latest release of Bud by running the following in your terminal:
66
curl -sf https://raw.githubusercontent.com/livebud/bud/main/install.sh | sh
77
```
88

9+
## v0.2.2
10+
11+
- **BREAKING:** fix numerous protocol bugs between controllers and views (#203)
12+
13+
This was mostly around nested views. A lot of this was undocumented and so we finally started testing behaviors. You may need to adjust what your views export if you were heavily relying on nested controllers / views
14+
15+
- Add scaffolding support for remaining controller actions: create, update, delete, edit & new (#203)
16+
17+
You can now call `bud new controller posts create update delete edit new show index` and scaffold all 7 controller actions.
18+
19+
- Trigger full reloads on non-update events (#212)
20+
21+
Now if you rename, delete or add Svelte views, the watcher will pickup on these changes and trigger a reload.
22+
23+
- Add support for method overriding in `<form>` tags (#203)
24+
25+
This allows you to submit PATCH, PUT and DELETE requests from forms using the `_method` parameter.
26+
27+
```html
28+
<form method="post" action={`/${post.id || 0}`}>
29+
<input type="hidden" name="_method" value="patch">
30+
<!-- Add input fields here -->
31+
<input type="submit" value="Update Post" />
32+
</form>
33+
```
34+
35+
- Test that you can import Svelte files from node_modules (#221) thanks to @jfmario!
36+
37+
This release tested that you can indeed install and use Svelte components from the community like `svelte-time` and Bud will pick them up.
38+
39+
- Support controllers that are named Index and Show (#214) thanks to @jfmario!
40+
41+
Prior to this release, you couldn't create a controller in `controller/index/controller.go` because it would conflict with the `Index` action. Now you can.
42+
43+
- Escape props before hydrating (#200)
44+
45+
This allows you to pass raw HTML that could include a `<script>` tag as props into a Svelte view and have the rendering escaped.
46+
947
## v0.2.1
1048

1149
- Fix typo in scaffolding .gitignore (#189)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.1
1+
0.2.2

0 commit comments

Comments
 (0)