eta (η) v1.4.0 Release Notes
Release Date: 2020-09-06 // over 3 years ago-
TL;DR
🚀 The most significant feature of this release is a new
configure()
function that modifies Eta's base ("global") configuration. It's called likeEta.configure({tags: ["{{", "}}"]})
.⚡️ Another significant change was the decision to rename
defaultConfig
toconfig
. The namedefaultConfig
was originally chosen when I had plans to make Eta support multiple "environments", like Nunjucks. Eventually I decided this would cause unneeded complexity, but I didn't change the name. This change should not be breaking; we re-exportconfig as defaultConfig
for backwards compatibility. In the future, use ofdefaultConfig
will be discouraged and we'll update the docs to reflect that.Finally, we included a fix to
renderFile
.Notable changes (recap)
- 🔧 Create new
configure()
function - 0️⃣ Rename
defaultConfig
toconfig
- 👀 Prevent
renderFile
from erroring if the data argument is undefined or null; issue originally filed in Squirrelly by @futurelucas4502, see squirrellyjs/squirrelly#201.
Commits
- 🔀 Merge pull request #13 from eta-dev/simple-config dce660b
- Format 60d5805
- 0️⃣ Make defaultConfig an alias of config instead of the opposite daa8b76
- 📦 Sort package.json scripts 18deacb
- ➕ Add new config utilities to browser.ts 01241a4
- 🔀 Merge branch 'master' into simple-config 88749fd
- Replace params named env w/ params named config 0f24916
- ➕ Add eta.configure() command, alias defaultConfig to config e51e02e
- ⚡️ Update README to have centered title 3754716
- Avoid error if data is undefined or null f9417df
- ➕ Add style to h1 so it centers 62afaa0
- 🔧 Create new