Skip to content

v0.46.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@gazerro gazerro released this 19 Jul 13:51

Most relevant commits:

all

  • all: prefer 'behavior' to 'behaviour'

cmd/scriggo

  • cmd/scriggo: don't strip HTML in markdown code serving template files
  • cmd/scriggo: enable auto heading ids serving markdown
  • cmd/scriggo: update documentation of 'serve' and run 'go generate'
  • cmd/scriggo: mention that types are not garbage collected in limitations
  • cmd/scriggo: don't mention that Delve is not supported
  • cmd/scriggo: run script with '.ggo' extension
  • cmd/scriggo: allow serving template URL without extensions

compiler

  • compiler: add the 'default' primary expression
  • compiler: remove special render assignment and declaration syntax
  • compiler/checker: makes further error messages the same as gc
  • compiler/checker: distinguish arrays and slices in duplicate index error
  • compiler/parser: make 'used as value' error message the same of gc
  • compiler/lexer: make error messages parsing runes the same of gc
  • compiler/ast,compiler/checker: make struct literal errors the same as gc
  • compiler/checker: fix type check of variadic function calls
  • compiler/checker: make error message involving variadic calls the same as gc
  • compiler/checker: return same as gc error using non-bool with && and ||
  • compiler/checker: make 'cannot assign to' error messages the same as gc
  • compiler/checker: fix panic checking const declaration without values
  • compiler/checker: fix panic on global const declaration without values
  • compiler/parser: don't suggest '{% render ... %}' in error message
  • compiler/parser: don't allow forbidding shebang in scripts
  • compiler/checker: fix unchecked duplicated parameter in function type
  • compiler/checker: use '%#v' printing constant in error messages
  • compiler/checker: fix dot import incorrectly checked as used
  • compiler/checker: fix 'imported and not used' error position
  • compiler/checker: fix panic checking unary operators as expr statements
  • compiler/checker: simplify check of special case in call and fix errors
  • compiler/checker: fix upvars for predefined values in templates
  • compiler: add the 'using' statement
  • compiler: deprecate the dollar identifier
  • compiler/emitter: fix f(g()) with f variadic

runtime

  • runtime: rewrite 'appendCap' function and use old cap instead of len
  • runtime: reimplement *Panic.Error to return all currently active panics
  • runtime: print panic messages as gc does
  • runtime: fix panic calling macros as predefined functions

scriggo

  • scriggo: remove 'IsLimitExceeded' function
  • scriggo, templates: remove 'templates.CompilerError' type