Releases: open2b/scriggo
v0.59.0
This release introduces LiveReload functionality to the Scriggo Serve command, enabling automatic page reloads in the browser whenever the page’s template files are modified.
With LiveReload and the automatic template rebuild, changes are instantly reflected in the browser as soon as you save the files.
To disable LiveReload, use the --disable-livereload
flag.
v0.58.1
This release focuses on bug fixes and updates dependencies. It addresses the following issues:
- Resolved a race condition occurring when a function or macro was called indirectly.
- Fixed issues causing empty output when invoking a macro, especially in cases of recursive calls.
- Addressed template recompilation errors in the Scriggo
serve
command when a render operator was indirectly used within ashow
statement.
v0.58.0
This release fixes the following issues:
- Fixed a panic in the Scriggo command when trying to import or extend a non-existent file.
- Fixed rendering issues when a non-Markdown file is rendered inside a Markdown context.
Additionally, files with the ".mdx" extension are now treated as Markdown files by default.
We’ve added the MarkdownConverter method to native.Env
. A function or method, whether passed globally or imported into a template, can now use this method to retrieve the Markdown converter passed when building the template.
Finally, the scriggo serve
command now enables support for footnotes in Markdown parsing.
Changes
- cmd/scriggo: fix panic when importing or extending a non-existent file
- cmd/scriggo: add extension.Footnote to goldmark (breaking change)
- internal/runtime: refactor macro calls and renderer implementation
- internal/compiler: add .mdx as default Markdown file extension (breaking change)
- native,internal/runtime: introduce the Env.MarkdownConverter method (breaking change)
v0.57.1
v0.57.0
Support for Go Compiler Versions 1.22 or Higher
This release adds support for Go compiler versions 1.22 or later.
Note that support for Go versions 1.21 or earlier is therefore removed, as functionality of Scriggo is no longer guaranteed for these compiler versions.
Fixes
Dependency Updates
v0.56.1
v0.56.0
v0.55.0
This release is focused on the addition of the map selector expressions in
templates, the addition of builtins for YAML as well as the removal of some deprecated features.
Also, any
is now an alias for interface{}
.
Changes
- scriggo: use Go 1.18 to compile the scriggo command
- scriggo: require Go 1.17 as the minimum supported version (breaking change)
- cmd/scriggo: add 'debug/buildinfo' and 'net/netip' packages to stdlib
- compiler: allow 'any' as 'interface{}' alias
- all: remove script support (breaking change)
- all: remove the dollar identifier (breaking change)
- compiler, runtime: extend the selector expression to maps in templates
- builtin: add 'marshalYAML' and 'unmarshalYAML' builtins
v0.54.0
Changes
- compiler/checker: don't consider 'make(...)' a constant function call (breaking change)
- runtime: implement range over channels
- all: add 'else' statement to the 'for in' and 'for range' statements (breaking change)
- scriggo: update dependencies
Optimizations
- compiler/emitter, runtime: simplify 'for range' instruction with 'break'
Fixes
- compiler/checker: fix terminating statements
- ast: add '(*Block).String' method
- ast/utils: don't panic '(*dumper).Visit' if a block has nil position
v0.53.5
Fixes
-
compiler/checker: fix const shift expression with untyped left operand
-
compiler/emitter: fix panic involving operations on pointer values
-
compiler/checker: return error in case of parenthesis around ident on :=
-
compiler/checker: fix call to 'setValue'
-
compiler/parser: fix error message on not existent path