Skip to content

Commit

Permalink
master branch: sync NEWS.md, bump -> v2.3.0.dev0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed May 17, 2022
1 parent 88c8cc3 commit 0b0b38e
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 19 deletions.
33 changes: 33 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
## 2.2.1 (2022-05-17)
OmegaConf 2.2 is a major release. The most significant area of improvement in
2.2 is support for more flexible type hints in structured configs. In addition,
OmegaConf now natively supports two new primitive types, `bytes` and `pathlib.Path`.

### Features

- Support unions of primitive types in structured config type hints (`typing.Union`) ([#144](https://github.com/omry/omegaconf/issues/144))
- 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))
- Improve support for optional element types in structured config container type hints (`typing.Optional`) ([#460](https://github.com/omry/omegaconf/issues/460))
- Add support for `bytes`-typed values ([#844](https://github.com/omry/omegaconf/issues/844))
- Add support for `pathlib.Path`-typed values ([#97](https://github.com/omry/omegaconf/issues/97))
- `ListConfig` now implements slice assignment ([#736](https://github.com/omry/omegaconf/issues/736))
- Enable adding a `ListConfig` to a `list` via the `ListConfig.__radd__` dunder method ([#849](https://github.com/omry/omegaconf/issues/849))
- Add `OmegaConf.missing_keys()`, a method that returns the missing keys in a config object ([#720](https://github.com/omry/omegaconf/issues/720))
- Add `OmegaConf.clear_resolver()`, a method to remove interpolation resolvers by name ([#769](https://github.com/omry/omegaconf/issues/769))
- Enable the use of a pipe symbol `|` in unquoted strings in OmegaConf interpolations ([#799](https://github.com/omry/omegaconf/issues/799))

### Bug Fixes

- `OmegaConf.to_object` now works properly with structured configs that have `init=False` fields ([#789](https://github.com/omry/omegaconf/issues/789))
- Fix bugs related to creation of structured configs from dataclasses having fields with a default_factory ([#831](https://github.com/omry/omegaconf/issues/831))

### API changes and deprecations

- Removed support for `OmegaConf.is_none(cfg, "key")`. Please use `cfg.key is None` instead. ([#547](https://github.com/omry/omegaconf/issues/547))
- Removed support for `${env}` interpolations. `${oc.env}` should be used instead. ([#573](https://github.com/omry/omegaconf/issues/573))
- Removed `OmegaConf.get_resolver()`. Please use `OmegaConf.has_resolver()` instead. ([#608](https://github.com/omry/omegaconf/issues/608))
- Removed support for `OmegaConf.is_optional()`. ([#698](https://github.com/omry/omegaconf/issues/698))
- Improved error message when assigning an invalid value to int or float config nodes ([#743](https://github.com/omry/omegaconf/issues/743))
- 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))


## 2.1.1 (2021-08-17)
### Features

Expand Down
1 change: 0 additions & 1 deletion news/144.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/427.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/460.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/547.api_change

This file was deleted.

1 change: 0 additions & 1 deletion news/573.api_change

This file was deleted.

1 change: 0 additions & 1 deletion news/608.api_change

This file was deleted.

1 change: 0 additions & 1 deletion news/698.api_change

This file was deleted.

1 change: 0 additions & 1 deletion news/720.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/736.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/743.api_change

This file was deleted.

1 change: 0 additions & 1 deletion news/769.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/789.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion news/799.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/831.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion news/844.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/848.api_change

This file was deleted.

1 change: 0 additions & 1 deletion news/849.feature

This file was deleted.

1 change: 0 additions & 1 deletion news/97.feature

This file was deleted.

2 changes: 1 addition & 1 deletion omegaconf/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys # pragma: no cover

__version__ = "2.2.0.dev6"
__version__ = "2.3.0.dev0"

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

0 comments on commit 0b0b38e

Please sign in to comment.