Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / yaml / CHANGELOG.md
1 CHANGELOG
2 =========
3
4 3.2.0
5 -----
6
7  * Mappings with a colon (`:`) that is not followed by a whitespace are deprecated
8    when the mapping key is not quoted and will lead to a `ParseException` in
9    Symfony 4.0 (e.g. `foo:bar` must be `foo: bar`).
10
11  * Added support for parsing PHP constants:
12
13    ```php
14    Yaml::parse('!php/const:PHP_INT_MAX', Yaml::PARSE_CONSTANT);
15    ```
16
17  * Support for silently ignoring duplicate mapping keys in YAML has been
18    deprecated and will lead to a `ParseException` in Symfony 4.0.
19
20 3.1.0
21 -----
22
23  * Added support to dump `stdClass` and `ArrayAccess` objects as YAML mappings
24    through the `Yaml::DUMP_OBJECT_AS_MAP` flag.
25
26  * Strings that are not UTF-8 encoded will be dumped as base64 encoded binary
27    data.
28
29  * Added support for dumping multi line strings as literal blocks.
30
31  * Added support for parsing base64 encoded binary data when they are tagged
32    with the `!!binary` tag.
33
34  * Added support for parsing timestamps as `\DateTime` objects:
35
36    ```php
37    Yaml::parse('2001-12-15 21:59:43.10 -5', Yaml::PARSE_DATETIME);
38    ```
39
40  * `\DateTime` and `\DateTimeImmutable` objects are dumped as YAML timestamps.
41
42  * Deprecated usage of `%` at the beginning of an unquoted string.
43
44  * Added support for customizing the YAML parser behavior through an optional bit field:
45
46    ```php
47    Yaml::parse('{ "foo": "bar", "fiz": "cat" }', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE | Yaml::PARSE_OBJECT | Yaml::PARSE_OBJECT_FOR_MAP);
48    ```
49
50  * Added support for customizing the dumped YAML string through an optional bit field:
51
52    ```php
53    Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
54    ```
55
56 3.0.0
57 -----
58
59  * Yaml::parse() now throws an exception when a blackslash is not escaped
60    in double-quoted strings
61
62 2.8.0
63 -----
64
65  * Deprecated usage of a colon in an unquoted mapping value
66  * Deprecated usage of @, \`, | and > at the beginning of an unquoted string
67  * When surrounding strings with double-quotes, you must now escape `\` characters. Not
68    escaping those characters (when surrounded by double-quotes) is deprecated.
69
70    Before:
71
72    ```yml
73    class: "Foo\Var"
74    ```
75
76    After:
77
78    ```yml
79    class: "Foo\\Var"
80    ```
81
82 2.1.0
83 -----
84
85  * Yaml::parse() does not evaluate loaded files as PHP files by default
86    anymore (call Yaml::enablePhpParsing() to get back the old behavior)