Releases: vanjs-org/mini-van
Releases · vanjs-org/mini-van
0.5.6: no escaping for text inside <script> tag
0.5.5: Fix the minor type issue of van.state in mini-van.d.ts, van-plate.d.ts and shared.d.ts
0.5.5: Fix the minor type issue of van.state in van.d.ts
0.5.4: API update to match VanJS's API simplification in 1.4.0
API update to match VanJS's API simplification in 1.4.0: vanjs-org/van#280.
`mini-van.d.ts` improvement
Allow Node
(thus DocumentFragment
) type as parameters of tag functions.
0.5.2: type simplification
- Simplify the definition for
BrowserTags
with the help ofHTMLElementTagNameMap
. - Tag functions should be readonly properties.
0.5.1
was skipped due to faulty NPM release.
0.5.0: Optimize van-plate mode to reduce string concatenations in deeply nested HTML
A ~10% performance improvement was observed for webpages with typical complexity. See the benchmark result for details.
0.4.2: Update `mini-van.d.ts` in a way similar to VanJS `1.2.1` release
Update mini-van.d.ts
in a way similar to VanJS 1.2.1
release.
Version 0.4.1
is skipped due to the faulty release of Deno module.
0.4.0: Enabling fullstack rendering
- Provide the implementation for all the states and state binding related API (
van.state
,van.derive
,van._
,van.val
,van.oldVal
, state-valued property, state-derived property, state-valued child node, state-derived child node) with the absence of reactivity. This is crucial for cross-platform UI components to work on both VanJS (client-side) and Mini-Van (server-side). - Change the behavior of assigning
props
values in tag functions. From0.4.0
, we will consistently assign the property values viasetAttribute
in Mini-Van. This is because for SSR (server-side rendering), which is Mini-Van's primary use case, setting the properties of a DOM node won't be visible in the rendered HTML string unless the action of setting the property itself will also set the corresponding HTML attribute (e.g.: setting theid
property of a DOM node will also set theid
attribute). This is helpful asinput({type: "text", value: "value"})`` can be rendered as
in **Mini-Van**
0.4.0but would be rendered as
`` if we set the property value via DOM property. - Define types for cross-platform (SSR and CSR) UI components to use without any dependencies on concrete types from Mini-Van or VanJS.
- Simplify some type definition with the help of builtin type
Record
.
0.3.9: Support readonly properties of DOM elements
Similar to bug fix of vanjs-org/van#47
0.3.8: Use function `Element.append` to further reduce the bundle size
0.3.8: Use function `Element.append` to further reduce the bundle size