From 874765b53863dd360d7804ada01679d65427fa13 Mon Sep 17 00:00:00 2001 From: Eric Newport Date: Fri, 15 Nov 2024 13:12:04 -0500 Subject: [PATCH] 0.6.17 - Fixed a bug which caused client-side Teddy to handle array length lookups differently from `cheerio`-driven Teddy. - Fixed a bug which caused client-side Teddy to crash if extra spaces were in markup attribute lists. - Fixed a bug which caused client-side Teddy to return the wrong data with 2 or more layers of object lookups if the object keys were camelCase. - Fixed a bug which caused client-side Teddy to rename some form elements accidentally. - Updated various dependencies. --- CHANGELOG.md | 8 +++ cheerioPolyfill.js | 8 ++- package-lock.json | 71 +++++++++---------- package.json | 4 +- teddy.js | 11 ++- test/model.js | 8 +++ .../conditionals/ifArrayLengthZero.html | 24 +++++++ test/tests.js | 6 ++ 8 files changed, 98 insertions(+), 42 deletions(-) create mode 100644 test/templates/conditionals/ifArrayLengthZero.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fa46e9..7c91432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ - Put your changes here... +## 0.6.17 + +- Fixed a bug which caused client-side Teddy to handle array length lookups differently from `cheerio`-driven Teddy. +- Fixed a bug which caused client-side Teddy to crash if extra spaces were in markup attribute lists. +- Fixed a bug which caused client-side Teddy to return the wrong data with 2 or more layers of object lookups if the object keys were camelCase. +- Fixed a bug which caused client-side Teddy to rename some form elements accidentally. +- Updated various dependencies. + ## 0.6.16 - Fixed a bug which caused client-side Teddy to fail in some situations like putting a `` in a `