Skip to content

chore(deps): bump latte/latte from 3.1.2 to 3.1.3#22

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/latte/latte-3.1.3
Closed

chore(deps): bump latte/latte from 3.1.2 to 3.1.3#22
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/latte/latte-3.1.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 23, 2026

Bumps latte/latte from 3.1.2 to 3.1.3.

Release notes

Sourced from latte/latte's releases.

Released version 3.1.3

Latte 3.1.3 brings two powerful new engine features – automatic dedentation and scoped loop variables – alongside a fresh batch of filters that make everyday template work smoother.

✨ New Features

  • Feature::Dedent – removes structural indentation from paired tag content, so your generated HTML stays clean regardless of how deeply you nest your Latte tags
  • Feature::ScopedLoopVariables – variables introduced by {foreach} now live only inside the loop body, preventing accidental leaks into the surrounding scope (supports destructuring via ListNode too)
  • |commas filter – joins array elements with , and supports a custom last-item glue (e.g. {$items|commas:' and '}a, b and c)
  • |column filter – extracts values from a single column of a multidimensional array or iterable, mirroring PHP's array_column()
  • |limit filter – a friendlier wrapper around |slice with swapped arguments: limit first, offset second, and keys preserved by default
  • |slice – now works with iterators, not just arrays and strings
  • |padLeft, |padRight – now accept int|float values in addition to strings (#408)

♻️ Code Refactoring

  • Helpers::sortBeforeAfter() – reimplemented using Kahn's algorithm for topological sorting, making extension ordering both faster and more correct
  • Engine::addDefaultExtensions() – extracted into its own method for better extensibility
Commits
  • d9f9680 Released version 3.1.3
  • 0e591fd added Feature::Dedent
  • 5bf0cdf added Feature::ScopedLoopVariables
  • 264a619 ForeachNode::print() refactoring
  • 9c284e8 Helpers::sortBeforeAfter() reimplemented using Kahn's algorithm for topologic...
  • 7aa9cba added |slice support for iterators and |limit filter
  • 62262e0 added |commas filter
  • 6a083cd added |column filter
  • d0ec43a |padLeft |padRight: added support for int|float [Closes #408]
  • 9a511d3 moved processParams() to Helpers::resolveParams()
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [latte/latte](https://github.com/nette/latte) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/nette/latte/releases)
- [Commits](nette/latte@v3.1.2...v3.1.3)

---
updated-dependencies:
- dependency-name: latte/latte
  dependency-version: 3.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Mar 23, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 23, 2026

Superseded by #28.

@dependabot dependabot Bot closed this Apr 23, 2026
@dependabot dependabot Bot deleted the dependabot/composer/latte/latte-3.1.3 branch April 23, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants