Skip to content

3.0.0

Choose a tag to compare

@sebastienros sebastienros released this 16 Nov 17:14
· 10 commits to main since this release
d1bbc97

Fluid 3.0 is the first stable release of the 3.0 line. See the documentation for the guide, and the 3.0.0 beta releases for the changes since 2.x, including breaking changes.

Security

This release fixes two vulnerabilities reported by Marko Franjić (Artifact d.o.o.):

  • GHSA-jfv5-rwvg-3h3v (high): uncontrolled recursion when parsing or rendering deeply nested templates crashes the process. Nesting is now limited by FluidParserOptions.MaxRecursionDepth (200 by default), and Fluid checks the remaining stack while parsing and rendering.
  • GHSA-g54m-6997-992w (moderate): the json filter bypassed the member access strategy and disclosed unregistered members. It now reads .NET objects through the MemberAccessStrategy.

Applications rendering untrusted templates should upgrade.

Changes since 3.0.0-beta.9

  • Fix wildcard when pushing Fluid.Core.Tool RID packages by @sebastienros in #1234
  • Cache the cultures of format_number, format_date and format_string by @ptweezy in #1235
  • Stop encoding non-ASCII text in view engine output by default by @sebastienros in #1237
  • Copy HTML escape replacements into an AppendSpan slot by @sebastienros in #1236
  • Apply the AddFluid setup action to the MVC view engine options by @sebastienros in #1238
  • Speed up rendering of source-generated templates by @sebastienros in #1239
  • Update README benchmark results by @sebastienros in #1240
  • Align include and render partials with Liquid by @sebastienros in #1265
  • Bump the all-dependencies group with 5 updates by @dependabot[bot] in #1271
  • Fix number conversions of whitespace, big literals, integer arguments and truncate lengths by @sebastienros in #1266
  • Treat empty and blank as '' outside conditions, index string-keyed hashes by strings, support self by @sebastienros in #1267
  • Order strings like Ruby in sort, sort_natural and comparisons by @sebastienros in #1270
  • Parse date strings like Ruby's Time.parse by @sebastienros in #1269
  • Read the lines of a comment in a liquid tag as tags by @sebastienros in #1263
  • Read array filter properties like Liquid, flatten nested arrays, keep the last repeated named argument by @sebastienros in #1268
  • Loop over strings once, name ranges by their bound text, reject unknown for attributes by @sebastienros in #1264
  • Use the .NET 11 stable SDK by @sebastienros in #1287
  • Add a .gitattributes and normalize line endings to LF by @sebastienros in #1291
  • Ignore the line-ending renormalization in git blame by @sebastienros in #1293
  • Keep the instant of offsets with seconds, lowercase İ like Ruby by @sebastienros in #1289
  • Read a range property of array filter items like Ruby's [] by @sebastienros in #1290
  • Fix big number literals in ranges, whitespace control, json and math filters by @sebastienros in #1292
  • Read raw blocks in a liquid tag like Shopify, compare with AllowLiquidTag in shopify-liquid.cs by @sebastienros in #1288
  • Name loops by their collection as written, iterate include's variable, stack include interrupts by @sebastienros in #1294
  • Hash filter values in a stackalloc'ed or pooled buffer instead of a new array by @sebastienros in #1295
  • Hash empty and nil values in md5, sha1, sha256, hmac_sha1 and hmac_sha256 like Shopify by @sebastienros in #1296
  • Apply nested layouts in FluidViewRenderer by @sebastienros in #1299
  • Re-enable passing golden tests, refresh skip reasons by @sebastienros in #1300
  • Throw or call TemplateNotFound for missing views, layouts and partials by @sebastienros in #1301
  • Simplify the README, add a documentation site, a WebAssembly playground and a new logo by @sebastienros in #1302
  • Color the playground editors with Tint by @sebastienros in #1303
  • Color the playground output in its detected format by @sebastienros in #1304
  • Detect Markdown, C#, YAML and CSS outputs, add languages to the format picker, theme the HTML preview by @sebastienros in #1305
  • Map TimeSpan to a TimeSpanValue read in the context time zone by @sebastienros in #1307
  • Read, render and order dates like the Liquid gem by @sebastienros in #1308
  • Check templates against the Liquid gem in Docker, remove shopify-liquid.cs by @sebastienros in #1309
  • Order TimeOnly and TimeSpan values with <, <=, > and >= again by @sebastienros in #1310
  • Read local times skipped by daylight saving time like Ruby by @sebastienros in #1311
  • Show 'now' and 'today' in the time zone of the context by @sebastienros in #1312
  • Show time zone abbreviations in %Z like Ruby by @sebastienros in #1313
  • Stop packing the benchmark charts moved to the docs by @sebastienros in #1314

New Contributors

Full Changelog: v3.0.0-beta.9...v3.0.0