Skip to content

Commit fc51948

Browse files
committed
OmegaConf 2.2.1 release
1 parent 0bac52d commit fc51948

20 files changed

+34
-19
lines changed

NEWS.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## 2.2.1 (2022-05-17)
2+
OmegaConf 2.2 is a major release. The most significant area of improvement in
3+
2.2 is support for more flexible type hints in structured configs. In addition,
4+
OmegaConf now natively supports two new primitive types, `bytes` and `pathlib.Path`.
5+
6+
### Features
7+
8+
- Support unions of primitive types in structured config type hints (`typing.Union`) ([#144](https://github.com/omry/omegaconf/issues/144))
9+
- Support nested container type hints in structured configs, e.g. dict-of-dict and list-of-list ([#427](https://github.com/omry/omegaconf/issues/427))
10+
- Improve support for optional element types in structured config container type hints (`typing.Optional`) ([#460](https://github.com/omry/omegaconf/issues/460))
11+
- Add support for `bytes`-typed values ([#844](https://github.com/omry/omegaconf/issues/844))
12+
- Add support for `pathlib.Path`-typed values ([#97](https://github.com/omry/omegaconf/issues/97))
13+
- `ListConfig` now implements slice assignment ([#736](https://github.com/omry/omegaconf/issues/736))
14+
- Enable adding a `ListConfig` to a `list` via the `ListConfig.__radd__` dunder method ([#849](https://github.com/omry/omegaconf/issues/849))
15+
- Add `OmegaConf.missing_keys()`, a method that returns the missing keys in a config object ([#720](https://github.com/omry/omegaconf/issues/720))
16+
- Add `OmegaConf.clear_resolver()`, a method to remove interpolation resolvers by name ([#769](https://github.com/omry/omegaconf/issues/769))
17+
- Enable the use of a pipe symbol `|` in unquoted strings in OmegaConf interpolations ([#799](https://github.com/omry/omegaconf/issues/799))
18+
19+
### Bug Fixes
20+
21+
- `OmegaConf.to_object` now works properly with structured configs that have `init=False` fields ([#789](https://github.com/omry/omegaconf/issues/789))
22+
- Fix bugs related to creation of structured configs from dataclasses having fields with a default_factory ([#831](https://github.com/omry/omegaconf/issues/831))
23+
24+
### API changes and deprecations
25+
26+
- Removed support for `OmegaConf.is_none(cfg, "key")`. Please use `cfg.key is None` instead. ([#547](https://github.com/omry/omegaconf/issues/547))
27+
- Removed support for `${env}` interpolations. `${oc.env}` should be used instead. ([#573](https://github.com/omry/omegaconf/issues/573))
28+
- Removed `OmegaConf.get_resolver()`. Please use `OmegaConf.has_resolver()` instead. ([#608](https://github.com/omry/omegaconf/issues/608))
29+
- Removed support for `OmegaConf.is_optional()`. ([#698](https://github.com/omry/omegaconf/issues/698))
30+
- Improved error message when assigning an invalid value to int or float config nodes ([#743](https://github.com/omry/omegaconf/issues/743))
31+
- To conform with the `MutableMapping` API, the `DictConfig.items` method now returns an object of type `ItemsView`, and `DictConfig.keys` will now always return a `KeysView` ([#848](https://github.com/omry/omegaconf/issues/848))
32+
33+
134
## 2.1.1 (2021-08-17)
235
### Features
336

news/144.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/427.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/460.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/547.api_change

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/573.api_change

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/608.api_change

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/698.api_change

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/720.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/736.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/743.api_change

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/769.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/789.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/799.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/831.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/844.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/848.api_change

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/849.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/97.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

omegaconf/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys # pragma: no cover
22

3-
__version__ = "2.2.0.dev6"
3+
__version__ = "2.2.1"
44

55
msg = """OmegaConf 2.0 and above is compatible with Python 3.6 and newer.
66
You have the following options:

0 commit comments

Comments
 (0)