Skip to content

Releases: a-h/templ

v0.2.707

25 May 08:24
0d42d67
Compare
Choose a tag to compare

Changelog

  • 0d42d67 chore: bump version
  • 85a7b8b feat: add JSONString and JSONScript functions, update docs, refer to templ script as legacy in docs (#745)
  • 190ddba feat: add WithNonce for CSP compatibility (#752)
  • e5633bb feat: add templ.Once function (#750)
  • 3009161 feat: log url on proxy error, increase retries (#756)
  • 1ecd566 fix: add script template support to scripts, fixes #754
  • b7a4eba fix: map go formatting errors to their locations in templ files (#737)
  • b93d02f fix: update push-tag to check local git is clean, and up to date
  • c1e734b refactor: add extra logging (#741)
  • 3d154ff refactor: add neater support for code components into templ.Once (#755)

v0.2.697

20 May 07:21
0c14a89
Compare
Choose a tag to compare

Changelog

  • 9f69219 [docs] add live reload example page (#709)
  • e3e98c0 chore(deps): bump golang.org/x/net from 0.19.0 to 0.23.0 (#722)
  • fe948cb chore: add .ignore file to skip IDE searching of external and generated files
  • 35e24ae chore: bump deps
  • aea0c80 chore: bump deps in echo example
  • 9d87403 chore: bump docusaurus version
  • c5507b8 chore: bump docusaurus version
  • e2ceaa3 chore: formatting
  • 0d80290 chore: go mod tidy
  • 6a9dbff chore: update echo example (#734)
  • 27fc6a3 docs(echo): set headers before calling WriteHeader (#729)
  • 210391f feat(lsp): map go code errors that aren't template expressions to clo… (#690)
  • 7d8287e feat(parser): support colons in element names (#723)
  • ef58c7a feat: add brotli support to proxy, warn on unsupported encoding (#695)
  • 750f91e feat: add experimental arbitrary Go code support (#713)
  • 41d5003 feat: normalise line breaks and path separators to Linux style, on Windows, fixes #539 (#696)
  • 6af8b3b feat: support build tags by copying template header over (#688)
  • ad707cb feat: support parsing (and converting) void elements, fixes #637 (#732)
  • fd2c772 feat: templ component snippet (#714)

v0.2.680

06 May 17:36
c6a2ac2
Compare
Choose a tag to compare

Changelog

  • e3e98c0 chore(deps): bump golang.org/x/net from 0.19.0 to 0.23.0 (#722)
  • 35e24ae chore: bump deps
  • aea0c80 chore: bump deps in echo example
  • c5507b8 chore: bump docusaurus version
  • c6a2ac2 chore: bump version number
  • 27fc6a3 docs(echo): set headers before calling WriteHeader (#729)
  • 210391f feat(lsp): map go code errors that aren't template expressions to clo… (#690)
  • ef58c7a feat: add brotli support to proxy, warn on unsupported encoding (#695)
  • 41d5003 feat: normalise line breaks and path separators to Linux style, on Windows, fixes #539 (#696)
  • 6af8b3b feat: support build tags by copying template header over (#688)
  • 702c106 fix: allow hot reload script to be re-evaluated, fixes #716
  • f300746 fix: allow slice type definitions in templ expressions (#670)
  • 89f216e fix: escape constant attribute Go strings (#725)
  • d120e33 fix: multi-byte character positions in LSP (fixes #482) (#712)
  • fe1f70e fix: prevent greedy parsing in raw element parser (#702)
  • 77ba285 refactor: remove legacy v1 to v2 migration feature (#697)

v0.2.663

10 Apr 08:59
0b30dc5
Compare
Choose a tag to compare

Changelog

  • 44183ea chore: add troubleshooting guide for intellij products (#660)
  • 8cc2e94 chore: add unit test and benchmark to URL function
  • 0b30dc5 chore: bump version
  • 25ac8cf chore: fix function name in comment (#675)
  • d57277f feat: Allow using tel, ftp and ftps as safe URL protocols (#657)
  • 022a8b0 feat: add notify proxy to reload browser (#661)
  • ad69501 feat: handle string and boolean pointers in attributes (#648)
  • ac07d85 fix: delete watch mode files when command exits, fixes #664
  • 72349ec fix: minor typo, fixes #665
  • 9cd51fe refactor: remove redundant comment (#668)

v0.2.648

24 Mar 19:42
80bffc6
Compare
Choose a tag to compare

Fix for regression in previous release.

Changelog

  • 80bffc6 chore: refactor comment position
  • ae52b02 fix: failure to parse empty slices (fixes #638)

v0.2.646

23 Mar 15:44
f2e5269
Compare
Choose a tag to compare

Changelog

  • f2e5269 chore: bump version [no ci]
  • 8709950 chore: bump workflow
  • 3eff9c3 feat: add option to generate to stdout (#628)
  • 1e176a0 fix: handle slice literals without named types (#635)

v0.2.639

18 Mar 09:02
862f404
Compare
Choose a tag to compare

Changelog

  • f55a23b Create FUNDING.yml
  • ee7132c chore: flake: bump Go from 1.21.4 to 1.21.8
  • 1ed8b42 chore: migrate to github actions for releases
  • f27f67f chore: pass env variables to nix develop
  • ed05347 feat(proxy): skip adding the proxy script for HTMX requests (#614)
  • ac593eb feat: Support func(...) (string, error) for string attribute expression values. (#584)
  • 15d7b92 feat: add Docker images to release outputs
  • d45ff2e feat: add --proxybind flag to generate watch mode (#615)
  • 8d48984 feat: add templ.SafeCSSProperty support (#581)
  • 22f761a feat: parse HTML element and attribute positions (#548)
  • f3417e0 feat: support unquoted CSS background-urls, fixes #578, #580
  • 5381ed0 fix: don't panic on non-existent file path (#600)
  • ee4d1dd fix: fixes issue #597 - improves performance (500x faster than previous) (#605)
  • ab29256 fix: incorrect parsing of empty js strings, fixes #468
  • 358286c refactor: document structure of templ file by demonstrating interface implementation

v0.2.598

02 Mar 08:50
@a-h a-h
2a7ab84
Compare
Choose a tag to compare

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

v0.2.543

25 Jan 20:34
@a-h a-h
a52176d
Compare
Choose a tag to compare

Changelog

  • docs: add emacs to editors with templ support by @danderson in #392
  • fix: allow single and double quotes in comments within script templates by @a-h in #384
  • feat: improve watch mode to reduce recompilation by @stephenafamo in #366
  • fix: report templ server info to LSP clients, not gopls info by @danderson in #404
  • chore: add tests to cover ways others are using call expressions by @joerdav in #420
  • feat: format templ element expressions by @joerdav in #435
  • docs: add Emmet config for vscode by @jonerer in #428
  • fix: only run the version check once per command, to avoid spam. by @joerdav in #438
  • fix: infinite loop if go.mod not found, warn on missing go.mod or forgotten go get by @a-h in #441
  • docs: state that a body tag is required in order for the proxy flag t… by @phenpessoa in #450

New Contributors

Full Changelog: v0.2.513...v0.2.543

v0.2.513

02 Jan 12:15
@a-h a-h
5579e47
Compare
Choose a tag to compare

Changelog

  • 44c155c chore(docs): Add Anthony GG tutorial to docs (#383)
  • d5d2dec feat: bump xc version
  • 5579e47 fix(fmt): incorrect conversion from single to double quotes, fixes #380
  • 4580762 fix(fmt): stop adding extra lines between Go comments and templates (#351)
  • e98db35 fix: apply temporary workaround for golang/go#61888
  • f0fb971 fix: templ CLI panic with --proxy option (#365)