|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## fluent-syntax 0.10.0 (December 13, 2018) |
| 4 | + |
| 5 | +This release brings support for version 0.8 of the Fluent Syntax spec. The API |
| 6 | +remains unchanged. Files written in valid Syntax 0.7 may not parse correctly in |
| 7 | +this release. See the summary of backwards-incompatible changes below. |
| 8 | + |
| 9 | + - Implement Fluent Syntax 0.8. (#303) |
| 10 | + |
| 11 | + This is only a quick summary of the spec changes in Syntax 0.8. Consult the |
| 12 | + full [changelog][chlog0.8] for details. |
| 13 | + |
| 14 | + [chlog0.8]: https://github.com/projectfluent/fluent/releases/tag/v0.8.0 |
| 15 | + |
| 16 | + In multiline `Patterns`, all common indent is now removed from each |
| 17 | + indented line in the final value of the pattern. |
| 18 | + |
| 19 | + ```properties |
| 20 | + multiline = |
| 21 | + This message has 2 spaces of indent |
| 22 | + on the second line of its value. |
| 23 | + ``` |
| 24 | + |
| 25 | + `Terms` can now be parameterized via the call expression syntax. |
| 26 | + |
| 27 | + ```properties |
| 28 | + # A parametrized Term with a Pattern as a value. |
| 29 | + -thing = { $article -> |
| 30 | + *[definite] the thing |
| 31 | + [indefinite] a thing |
| 32 | + } |
| 33 | + |
| 34 | + this = This is { -thing(article: "indefinite") }. |
| 35 | + ``` |
| 36 | + |
| 37 | + `VariantLists` are now deprecated and will be removed from the Syntax |
| 38 | + before version 1.0. |
| 39 | + |
| 40 | + All escapes sequences can only be used in `StringLiterals` now (see below). |
| 41 | + `\UHHHHHH` is a new escape sequence format suitable for codepoints above |
| 42 | + U+FFFF, e.g. `{"\U01F602"}`. |
| 43 | + |
| 44 | +### Backward-incompatible changes: |
| 45 | + |
| 46 | + - The backslash character (`\`) is now considered a regular character in |
| 47 | + `TextElements`. It's no longer possible to use escape sequences in |
| 48 | + `TextElements`. Please use `StringLiterals` instead, e.g. `{"\u00A0"}`. |
| 49 | + - The closing curly brace character (`}`) is not allowed in `TextElements` |
| 50 | + now. Please use `StringLiterals` instead: `{"}"}`. |
| 51 | + - `StringLiteral.value` was changed to store the unescaped ("cooked") value. |
| 52 | + `StringLiteral.raw` has been added to store the raw value. |
| 53 | + - The AST of `CallExpressions` was changed to better accommodate the |
| 54 | + introduction of parameterized `Terms`. The `Function` AST node has been |
| 55 | + replaced by the `FunctionReference` node. |
| 56 | + - The leading dash (`-`) is no longer part of the `Identifier` node in |
| 57 | + `Terms` and `TermReferences`. |
| 58 | +
|
| 59 | +
|
3 | 60 | ## fluent 0.9.0 (October 23, 2018)
|
4 | 61 |
|
5 | 62 | This release brings support for version 0.7 of the Fluent Syntax spec. The
|
|
0 commit comments