github sveltia/sveltia-cms v0.246.0

latest releases: v5.1.0, v5.0.6, v5.0.5...
one month ago
  • Compute field enhancements:
    • The new value_type option turns the value option into an arithmetic expression, like {{fields.price}} * {{fields.quantity}}. The result is saved as a number with int or float, or as a string with int/string or float/string. An expression can use the +, -, *, / and % operators, parentheses, and the round, floor, ceil and abs functions. Small floating-point errors are removed, so 0.1 * 3 is saved as 0.3. (#1086)
    • In a Compute field inside a List field, a * in a field reference now stands for the current item, e.g. {{fields.lines.*.price}}. This also works in nested lists.
    • The new aggregate functions sum, avg, min, max and count can work on every item of a list, e.g. sum({{fields.lines.*.amount}}). See the Calculating a Total example.
    • Compute fields that refer to themselves, or to each other in a cycle, are now reported as configuration warnings, because their values never settle.
  • The NPM package now generates PDF thumbnails, like the CDN builds. It bundles the PDF.js worker and the JPEG 2000 and JBIG2 image decoders, but not the character maps, standard fonts and colour profiles. Text in fonts a PDF doesn’t embed is drawn with a system font, and some Chinese, Japanese or Korean text may be missing from the thumbnail. (#1087)
  • Bug fixes and improvements.

Full Changelog: v0.245.1...v0.246.0

Don't miss a new sveltia-cms release

NewReleases is sending notifications on new releases.