Releases: vanjs-org/van
0.12.4: Fix typo in the comments of van.d.ts
See the release announcement: #53 (comment)
Initial release for Van-DML
Van-DML-0.1.0 Revise README.md
0.12.3: disallow null as prop values in tag functions in van.d.ts
As of 0.12.3, null
is not supported as prop values in tag functions. Thus this release updates van.d.ts
file to keep it consistent.
Supporting null
as prop values in tag functions is a planned feature in 1.0.0 release. Thus the restriction will be removed in 1.0.0 release.
See the release announcement: #53 (comment)
0.12.2: Bug fix and bundle size reduction
This is minor release, here are the changes:
- Allowing
null
-valued state objects being used as the child node of tag functions andvan.add
. This is a bug fix of the 0.12.1 release. - Bundle size reduction: specifically optimizing the bundle size for features added in 0.12.0 and 0.12.1 releases. With the optimization implemented, we saved 38 bytes in the minimized bundle. The total size of minimized bundle is at 1333 bytes (1.3 kB).
See the release announcement: #53 (comment)
0.12.1: Support `null` and `undefined` valued child nodes in tag functions and `van.add`
0.12.1 is a minor release of VanJS.
In this release, we support null
and undefined
as the child node of tag functions and van.add
. null
or undefined
valued children will be simply ignored in tag functions and van.tag
. This feature is added as a result of feedback from multiple VanJS users as they mentioned the feature can make the user-side code easier in certain circumstances. This feature also makes VanJS's behavior consistent between static child node and child node with state bindings (where null
or undefined
means the removal of the node).
See the release announcement: #53 (comment)
0.12.0: Polymorphic binding, SVG/AutoML support, readonly properties, performance optimizations, etc.
- Polymorphic binding: State-derived properties and
van.bind
supports non-state dependencies, allowing reusable component to accept both state and non-state properties: see https://vanjs.org/tutorial#polymorphism-between-state-and-non-state-dependencies. - SVG/MathML support: Add a new function
van.tagsNS
, which allows us to createSVG
,MathML
or other HTML elements withnamespaceURI
. - Support readonly properties while creating HTML elements: You can specify readonly properties while creating HTML elements with tag functions. For readonly properties, values will be set by
setAttribute
. - Performance optimizations: Replace
forEach
call withfor ... of
loops for better performance. Also disable theterser
optimization forwrap_func_args
as the optimization is obsolete in newer browser versions.
See the release announcement: #53
0.11.11: more sample apps, further size reduction and better type definition
See the announcement post.
- Add a few more short sample apps to further ease the learning curve:
- List (~10 lines of code)
- Stargazers (13 lines of code)
- Epoch Timestamp Converter (29 lines of code)
- Keyboard Event Inspector (29 lines of code)
- Diff (28 lines of code)
- Further reduce the bundle size to 1163 bytes (22 bytes reduction 🎉). With 1163 bytes, VanJS is technically a 1.1kB library (may be back to 1.2kB in future releases with new features). Thanks @icecream17 for offering most of the suggestions.
- Improve the type definitions in
van.d.ts
file. Thanks @enpitsuLin for the contribution.
See the release announcement: #44
0.11.10: Further bundle size reduction
- Further reduce the bundle size to 1185 bytes 🎉
- Ignore comment and other non-element node types in HTML to VanJS code converter
- Revise the https://vanjs.org website and README.md
See the release announcement: #6