@yannosay/sinth 5.3.1 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/browser/sinth.js +39 -43
- package/dist/compiler/codegen.js +9 -8
- package/dist/compiler/prerender.d.ts +1 -0
- package/dist/compiler/prerender.js +12 -5
- package/dist/runtime/index.js +14 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.3.2
|
|
4
|
+
|
|
5
|
+
- **`for … else` empty state.** The `else` content of a loop is removed once the list gets items. Before, it stayed on the page after the first item was added to an empty list.
|
|
6
|
+
- **Reactive page styles.** Expressions in a page's `style` block (for example `background: "hsl(" + hue + ", 80%, 60%)"`) now update when the variables change. Prerendered pages also include their initial values, so the page is styled before its script runs. Component styles were not affected.
|
|
7
|
+
|
|
3
8
|
## 5.3.1
|
|
4
9
|
|
|
5
10
|
- **Runtime exception.** Sinth is now licensed under the AGPL-3.0 with an additional permission ([RUNTIME-EXCEPTION.md](./RUNTIME-EXCEPTION.md)): sites built with Sinth, including the runtime code bundled into them, can be licensed however you like. Sinth itself stays under the AGPL. The exception covers all versions of Sinth.
|