v0.2.598
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
- @iamajoe made their first contribution in #466
- @bshore made their first contribution in #442
- @gngchrs made their first contribution in #479
- @JamesTiberiusKirk made their first contribution in #463
- @msyavuz made their first contribution in #485
- @MarhyCZ made their first contribution in #534
- @acaloiaro made their first contribution in #542
- @Foggyman made their first contribution in #550
- @SpencerMalone made their first contribution in #573
- @Ra0k made their first contribution in #565
Full Changelog: v0.2.542...v0.2.598