github a-h/templ v0.2.598

latest releases: v0.2.778, v0.2.771, v0.2.747...
6 months ago

Big changes

  • Added fsnotify-based hot reload - big improvement to the --watch command - #470
  • Introduced support for CSS args - https://templ.guide/syntax-and-usage/css-style-management#css-component-arguments
  • Updated minimum Go version to 1.21 from 1.20 - 1.20 hit end of life on 06 Feb 2024.
  • Complete rewrite of Go expression parsing, Go parsing now uses go/ast which means that multiline Go expressions are now supported. This is a big change. To test it, I wrote a new fuzzing suite, and generated code for over 1000 public Github projects - #461 - so I'm confident in it, but given the variation of how people write code, there's still risk.

Changelog

  • fix: consistent whitespace around go keywords by @JonnyLoughlin in #371
  • Fixing example source to match docs by @dougbarrett in #467
  • refactor: migrate to Go parser instead of using heuristics by @a-h in #461
  • refactor: complete rewrite of the generation command, adds fsnotify hot reload by @a-h in #470
  • refactor(#456): gin example with context by @iamajoe in #466
  • docs: templ.URL sanitization for non-standard attributes by @bshore in #442
  • docs: Add missing hr render by @gngchrs in #479
  • chore: watch tests - give 5 attempts for the server to start by @joerdav in #477
  • fix: flaky test should also wait for the proxy to be available by @joerdav in #480
  • Added minimal config by @JamesTiberiusKirk in #463
  • Css args by @joerdav in #484
  • docs: add a note for tailwind config file in the related section by @msyavuz in #485
  • feat: fmt: allow formatting files and directories to stdout by @a-h in #491
  • docs: fix typo by @phenpessoa in #495
  • fix: pass function arguments through source format. by @joerdav in #502
  • docs: add list of project scaffolding tools by @joerdav in #503
  • fix: go expressions prior to templates with multiline args by @joerdav in #507
  • fix: go parser should stop at first composite literal by @joerdav in #512
  • feat: refactor diagnostics and fix legacy call warning by @joerdav in #521
  • docs: Add JSON attribute example by @MarhyCZ in #534
  • chore: create LSP test suite by @a-h in #532
  • Content-Enconding gzip support for the hot reloader proxy by @JamesTiberiusKirk in #535
  • Fix typo in variable declaration in 13-context.md by @acaloiaro in #542
  • feat: add fuzzing suite to expression parser by @a-h in #546
  • feat: debounce generate watch events by @joerdav in #555
  • feat: add tests for dependent projects by @a-h in #559
  • fix: in all go inspect functions we want to stop at first match by @joerdav in #560
  • docs: fix gin html status code overwrite and provide fallback renderer by @Foggyman in #550
  • fix: guard from index out of bounds error in function parsing by @joerdav in #568
  • fix: parse issue with templ component variables by @a-h in #572
  • Update minimum go version to 1.21 by @SpencerMalone in #573
  • chore(docs): add inline component example by @Ra0k in #565

New Contributors

Full Changelog: v0.2.542...v0.2.598

Don't miss a new templ release

NewReleases is sending notifications on new releases.