Skip to content

Releases: rooseveltframework/teddy

0.6.9

27 Jul 12:48
1559ec2
Compare
Choose a tag to compare
  • Fixed issue with rendering variables with empty strings piped through variables with flags.
  • Updated various dependencies.

0.6.8

26 Jul 05:33
15741e8
Compare
Choose a tag to compare
  • Fixed issue with rendering special characters correctly when piped through a teddy noparse flagged variable.
  • Updated various dependencies.

0.6.7

26 May 13:12
7399449
Compare
Choose a tag to compare
  • Fixed issue causing server-side comments to not be stripped from templates parsed as strings instead of as files.
  • Updated various dependencies.

0.6.6

22 Apr 13:34
96a1e9f
Compare
Choose a tag to compare
  • Fixed issue causing the template caching feature to not work properly in Express apps.
  • Updated various dependencies.

0.6.5

03 Jan 05:25
b91c102
Compare
Choose a tag to compare
  • Fixed scenario where one-line if with only a false condition could crash if it's fed by arguments from an include element.
  • Fixed crash associated with embedding JSON strings in script tags.
  • Fixed bug causing "{}" to be inappropriately stripped from templates.
  • Reduced unminified bundle size from 2.4mb to 1.5mb and added a minified bundle that reduces it further to 449kb.
  • Improved logging and refactored the code a bit.
  • Updated various dependencies.

0.6.4

31 Jul 04:15
f8ce603
Compare
Choose a tag to compare
  • Fixed crash that could occur in an unusual edge case.
  • Various dependencies bumped.

0.6.3

28 Jun 04:23
d2a3882
Compare
Choose a tag to compare
  • Restored template-level caching feature with an improved API.
  • Restored compile method but now with an API similar to other templating systems. It will now take a template string and return a function which when given model data will render HTML from the template and model data.
  • Now hosting the Teddy playground on https://rooseveltframework.github.io/teddy/playground.html. Thanks to jsDelivr for CDN hosting.
  • Various dependencies bumped.

0.6.2

23 Jun 07:07
7d58e0b
Compare
Choose a tag to compare
  • Significant performance improvements.
  • Added a new <cache> element that can be used to improve template parsing performance further.
  • Various dependencies bumped.

0.6.1

01 May 14:03
c01f702
Compare
Choose a tag to compare
  • Fixed memory leak related to the no parse block feature.
  • Various dependencies bumped.

0.6.0

01 May 04:02
ef9184a
Compare
Choose a tag to compare
  • Breaking: <include> elements will no longer automatically disable escaping content of <arg> variables. Use {var|s} to disable escaping yourself.
  • Breaking: One-line if statements like if-something='' will now evaluate as true if something is present in the model.
  • Breaking: You can no longer apply more than one one-line if statement to the same element.
  • Breaking: Boolean logic will no longer allow you to query the same variable twice in the same if statement or use the same boolean logic operator twice in the same if statement.
  • Breaking: You can no longer use Teddy tags in elements that interpret child text as plain text, e.g. <style>, <script>, <textarea>, etc.
  • Breaking: Removed the noparse and noteddy attribute feature from <include> tags.
  • Breaking: Removed Teddy's internal minifier since third party HTML minifiers are better.
  • Breaking: Removed caching feature. A better-designed one may arrive in the future.
  • Breaking: Server-side comments will now always be removed, even if they are contained in a no-parse block. To preserve them for display, you must manually escape them with HTML entities.
  • Breaking: teddy.compile was removed as a public method. To set a new template, you must now call teddy.setTemplate to create it. Accordingly the teddy.compileAtEveryRender method has been removed as well.
  • Breaking: The |p flag will now also apply the same logic as |s as well. If you have any {variables} written like {variable|s|p}, you can now optionally write it as {variable|p} instead to get identical functionality.
  • Breaking: The in attribute as a synonym for through in <loop> has been removed.
  • Significant stability improvements; lots of bugs fixed.
  • Some performance improvements, some performance downgrades (notably looping through large datasets is slightly slower now).
  • Simplified API.
  • maxPasses default changed from 25000 to 1000.
  • Various dependencies bumped.