Skip to content

Commit

Permalink
Moved to next dev revision, added when examples to the playground
Browse files Browse the repository at this point in the history
  • Loading branch information
KaruroChori committed Feb 4, 2025
1 parent f1b52e7 commit 645d7d6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 40 deletions.
32 changes: 1 addition & 31 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,31 +1 @@
## v0.4.5

This release has not visible changes in its functionality (aside for some subtle bug fixes).
Which is good, it means the language itself is getting stable.
The main objectives for this release were:

- Reducing complexity and verbosity for most of the code
- Removing obsolete or unused features from earlier revisions
- Better documentation of its public interface.
- Improved tests (so that I can validate the implementation so far)

So, a boring one! But it means that a "final" v1 is getting close.
Basically all that is left are better tests to see if all commands are working as expected, better documentation and some code optimization.

## Fixes

- Fixed behaviour of filters in cycles. Now they always used meta-expressions only (no prefix `:` in that case).
- Fixed behaviour of `for-range` with negative increments to match specs.
- Fixed behaviour of `~!txt` to return the concatenation of all _cdata_ and _pcdata_ children, not just the first one.

## Breaking changes

The interface to build the preprocessor is now a configuration object.
This is done to avoid verbosity, and to allow for the definition of more fields if so needed.
In most cases, using the new interface is just as simple as placing braces between the original args.

## Internal changes

- Code cleanup.
- Speed up `O(nm)` children detection in cycles avoiding multiple passes.
- Rework the mechanisms used in `order-by`
## v0.4.7
7 changes: 0 additions & 7 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Milestones

## `v0.4.5`

- [x] Code cleanup.
- [x] Speed up `O(nm)` children detection in cycles avoiding multiple passes.
- [x] Rework the mechanisms used in `order-by`
- [x] More tests covering the language features

## `v0.4.7`

- [ ] Properly show ctx information while logging
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/v0.4.5.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This release has not visible changes in its functionality (aside for some subtle bug fixes).
This release has no visible changes in its functionality (aside for some subtle bug fixes).
Which is good, it means the language itself is getting stable.
The main objectives for this release were:

Expand Down
4 changes: 4 additions & 0 deletions examples/basics/when/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!--
`./build/vs.templ ./examples/basics/value/templ.xml ./examples/basics/value/data.xml`
-->
<data></data>
5 changes: 5 additions & 0 deletions examples/basics/when/templ.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<doc xmlns:s="vs.templ">
<h1 s:when=": false">This will fail, not being shown</h1>
<h2 s:when=": true">This will be!</h2>
<h1 s:when=": true" s:when.attr1=": true" s:when.attr2=": false">Hello!</h1>
</doc>
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'vs-templ',
['cpp'],
version: '0.4.5',
version: '0.4.6',
meson_version: '>= 1.1',
default_options: ['cpp_std=c++20'],
)
Expand Down

0 comments on commit 645d7d6

Please sign in to comment.