Skip to content

Commit 7da3ae8

Browse files
committed
0.4.0 changelog
1 parent 678f83a commit 7da3ae8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/changelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
### 0.4.0 - `YamlCodec` completed
4+
5+
`YamlCodec` completed (fixes [#4](https://github.com/smarie/python-yamlable/issues/4)):
6+
- `YamlCodec.decode_yamlable` renamed `decode` and `YamlCodec.encode_yamlable` renamed `encode`
7+
- added some checks in `YamlCodec.encode` to help users implement `to_yaml_dict` correctly
8+
- fixed bug in `register_with_pyyaml`: the wrong decoding method was registered
9+
- `YamlCodec.create_from_yaml_dict` renamed `from_yaml_dict` for consistency
10+
- added tests and usage documentation
11+
12+
Renamed internal `AbstractYamlObject` methods with dunder (fixes [#3](https://github.com/smarie/python-yamlable/issues/3)):
13+
- `from_yaml_dict` becomes `__from_yaml_dict__`
14+
- and `to_yaml_dict` become `__to_yaml_dict__`
15+
Legacy names will remain supported for a while, added a tet to check that.
16+
17+
318
### 0.3.1 - minor error message improvement
419

520
* Filled `yaml_info` docstring.

0 commit comments

Comments
 (0)