- Fixed
qstring.nest
to use more relaxedIterable
type forparams
overList
.
Added support for Python 3.8 to 3.12.
Added type hints for the project.
Use modern packaging metadata with
pyproject.toml
.Use
pdm.backend
as build backend.Changed
qstring.nest
to usedict
in the returned nested object instead ofOrderedDict
.dict
retains insertion order since Python 3.7, soOrderedDict
usage was redundant here.Fixed a bug in
qstring.nest
where it returned an incorrect value when there were more than two query parameters with the same name.Before:
>>> qtstring.nest([('foo', '1'), ('foo', '2'), ('foo', '3')]) {'foo': [['1', '2'], '3']}
After:
>>> qtstring.nest([('foo', '1'), ('foo', '2'), ('foo', '3')]) {'foo': ['1', '2', '3']}
Removed support for Python 2.7 and 3.7 or earlier.
Removed
future
dependency.Removed the
__version__
attribute. Useimportlib.metadata.version("qstring")
instead
- Fixed
qstring.unnest
when values contain non-ASCII characters.
- Changed
qstring.nest
to maintain the order of the given parameters in the returned nested object by returningOrderedDict
instead ofdict
.
- Initial public release.