You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,44 @@ Get the latest release of Bud by running the following in your terminal:
6
6
curl -sf https://raw.githubusercontent.com/livebud/bud/main/install.sh | sh
7
7
```
8
8
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
+
<formmethod="post"action={`/${post.id||0}`}>
29
+
<inputtype="hidden"name="_method"value="patch">
30
+
<!-- Add input fields here -->
31
+
<inputtype="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.
0 commit comments