You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
😎 T-Regx The Dinosaur is really proud to announce its release 0.15.0! We're coming to giga-big-release of 1.0.0 with really big steps!
This time, we look around our dinosaur friendly projects, and we noticed that most users use Pattern::template() with just one call, and need to call build() at the end. That's not very elegant, T-Regx the dinousaur said, and we agree! That's why we refactored. The API a little bit.
The detailed list of changes is also in ChangeLog.md.
Previously, to create a template, you needed to call Pattern::template()->something()->build(). This is looong and inconvenient. Here's what we did.
Breaking changes
Renamed Pattern::template() to Pattern::builder(). So if you need to build many elements, you can go
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
😎 T-Regx The Dinosaur is really proud to announce its release
0.15.0
! We're coming to giga-big-release of1.0.0
with really big steps!This time, we look around our dinosaur friendly projects, and we noticed that most users use
Pattern::template()
with just one call, and need to callbuild()
at the end. That's not very elegant, T-Regx the dinousaur said, and we agree! That's why we refactored. The API a little bit.The detailed list of changes is also in ChangeLog.md.
Previously, to create a template, you needed to call
Pattern::template()->something()->build()
. This is looong and inconvenient. Here's what we did.Pattern::template()
toPattern::builder()
. So if you need to build many elements, you can goPattern::template()
, which works similarly toPattern::builder()
but allows only one chain:The detailed list of changes is also in ChangeLog.md.
Rawrrrr!
This discussion was created from the release v0.15.0 - Templates and builders update!.
Beta Was this translation helpful? Give feedback.
All reactions