Skip to content

Releases: vanjs-org/van

Initial release for Van-DML

09 Jul 20:51
12692fe
Compare
Choose a tag to compare
Van-DML-0.1.0

Revise README.md

0.12.3: disallow null as prop values in tag functions in van.d.ts

19 Jun 21:59
Compare
Choose a tag to compare

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

10 Jun 23:36
Compare
Choose a tag to compare

This is minor release, here are the changes:

  • Allowing null-valued state objects being used as the child node of tag functions and van.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`

10 Jun 00:23
Compare
Choose a tag to compare

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.

08 Jun 23:59
dfd10d0
Compare
Choose a tag to compare
  • 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 create SVG, MathML or other HTML elements with namespaceURI.
  • 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 with for ... of loops for better performance. Also disable the terser optimization for wrap_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

03 Jun 00:17
Compare
Choose a tag to compare

See the announcement post.

  • Add a few more short sample apps to further ease the learning curve:
  • 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

22 May 23:48
Compare
Choose a tag to compare
  • 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

Initial public release