1b07b239cd6e59f570ff060a87c43c014415e87e
[yaffs-website] / vendor / symfony / yaml / CHANGELOG.md
1 CHANGELOG
2 =========
3
4 3.4.0
5 -----
6
7  * added support for parsing YAML files using the `Yaml::parseFile()` or `Parser::parseFile()` method
8
9  * the `Dumper`, `Parser`, and `Yaml` classes are marked as final
10
11  * Deprecated the `!php/object:` tag which will be replaced by the
12    `!php/object` tag (without the colon) in 4.0.
13
14  * Deprecated the `!php/const:` tag which will be replaced by the
15    `!php/const` tag (without the colon) in 4.0.
16
17  * Support for the `!str` tag is deprecated, use the `!!str` tag instead.
18
19  * Deprecated using the non-specific tag `!` as its behavior will change in 4.0.
20    It will force non-evaluating your values in 4.0. Use plain integers or `!!float` instead.
21
22 3.3.0
23 -----
24
25  * Starting an unquoted string with a question mark followed by a space is
26    deprecated and will throw a `ParseException` in Symfony 4.0.
27
28  * Deprecated support for implicitly parsing non-string mapping keys as strings.
29    Mapping keys that are no strings will lead to a `ParseException` in Symfony
30    4.0. Use quotes to opt-in for keys to be parsed as strings.
31
32    Before:
33
34    ```php
35    $yaml = <<<YAML
36    null: null key
37    true: boolean true
38    2.0: float key
39    YAML;
40
41    Yaml::parse($yaml);
42    ```
43
44    After:
45
46    ```php
47
48    $yaml = <<<YAML
49    "null": null key
50    "true": boolean true
51    "2.0": float key
52    YAML;
53
54    Yaml::parse($yaml);
55    ```
56
57  * Omitted mapping values will be parsed as `null`.
58
59  * Omitting the key of a mapping is deprecated and will throw a `ParseException` in Symfony 4.0.
60
61  * Added support for dumping empty PHP arrays as YAML sequences:
62
63    ```php
64    Yaml::dump([], 0, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
65    ```
66
67 3.2.0
68 -----
69
70  * Mappings with a colon (`:`) that is not followed by a whitespace are deprecated
71    when the mapping key is not quoted and will lead to a `ParseException` in
72    Symfony 4.0 (e.g. `foo:bar` must be `foo: bar`).
73
74  * Added support for parsing PHP constants:
75
76    ```php
77    Yaml::parse('!php/const:PHP_INT_MAX', Yaml::PARSE_CONSTANT);
78    ```
79
80  * Support for silently ignoring duplicate mapping keys in YAML has been
81    deprecated and will lead to a `ParseException` in Symfony 4.0.
82
83 3.1.0
84 -----
85
86  * Added support to dump `stdClass` and `ArrayAccess` objects as YAML mappings
87    through the `Yaml::DUMP_OBJECT_AS_MAP` flag.
88
89  * Strings that are not UTF-8 encoded will be dumped as base64 encoded binary
90    data.
91
92  * Added support for dumping multi line strings as literal blocks.
93
94  * Added support for parsing base64 encoded binary data when they are tagged
95    with the `!!binary` tag.
96
97  * Added support for parsing timestamps as `\DateTime` objects:
98
99    ```php
100    Yaml::parse('2001-12-15 21:59:43.10 -5', Yaml::PARSE_DATETIME);
101    ```
102
103  * `\DateTime` and `\DateTimeImmutable` objects are dumped as YAML timestamps.
104
105  * Deprecated usage of `%` at the beginning of an unquoted string.
106
107  * Added support for customizing the YAML parser behavior through an optional bit field:
108
109    ```php
110    Yaml::parse('{ "foo": "bar", "fiz": "cat" }', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE | Yaml::PARSE_OBJECT | Yaml::PARSE_OBJECT_FOR_MAP);
111    ```
112
113  * Added support for customizing the dumped YAML string through an optional bit field:
114
115    ```php
116    Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
117    ```
118
119 3.0.0
120 -----
121
122  * Yaml::parse() now throws an exception when a blackslash is not escaped
123    in double-quoted strings
124
125 2.8.0
126 -----
127
128  * Deprecated usage of a colon in an unquoted mapping value
129  * Deprecated usage of @, \`, | and > at the beginning of an unquoted string
130  * When surrounding strings with double-quotes, you must now escape `\` characters. Not
131    escaping those characters (when surrounded by double-quotes) is deprecated.
132
133    Before:
134
135    ```yml
136    class: "Foo\Var"
137    ```
138
139    After:
140
141    ```yml
142    class: "Foo\\Var"
143    ```
144
145 2.1.0
146 -----
147
148  * Yaml::parse() does not evaluate loaded files as PHP files by default
149    anymore (call Yaml::enablePhpParsing() to get back the old behavior)