Sourced from pydantic's releases.
v2.6.1 2024-02-05
v2.6.1 (2024-02-05)
What's Changed
Packaging
- Upgrade to
pydantic-core
2.16.2 by@sydney-runkle
in #8717Fixes
- Fix bug with
mypy
plugin andno_strict_optional = True
by@dmontagu
in #8666- Fix
ByteSize
errortype
change by@sydney-runkle
in #8681- Fix inheriting
Field
annotations in dataclasses by@sydney-runkle
in #8679- Fix regression in core schema generation for indirect definition references by
@dmontagu
in #8702- Fix unsupported types bug with
PlainValidator
by@sydney-runkle
in #8710- Reverting problematic fix from 2.6 release, fixing schema building bug by
@sydney-runkle
in #8718- Fix warning for tuple of wrong size in
Union
by@davidhewitt
in pydantic/pydantic-core#1174- Fix
computed_field
JSON serializerexclude_none
behavior by@sydney-runkle
in pydantic/pydantic-core#1187Full Changelog: https://github.com/pydantic/pydantic/compare/v2.6.0...v2.6.1/
Sourced from pydantic's changelog.
v2.6.0 (2024-01-23)
The code released in v2.6.0 is practically identical to that of v2.6.0b1.
What's Changed
Packaging
- Check for
email-validator
version >= 2.0 by@commonism
in #6033- Upgrade `ruff`` target version to Python 3.8 by
@Elkiwa
in #8341- Update to
pydantic-extra-types==2.4.1
by@yezz123
in #8478- Update to
pyright==1.1.345
by@Viicos
in #8453- Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog here
New Features
- Add
NatsDsn
by@ekeew
in #6874- Add
ConfigDict.ser_json_inf_nan
by@davidhewitt
in #8159- Add
types.OnErrorOmit
by@adriangb
in #8222- Support
AliasGenerator
usage by@sydney-runkle
in #8282- Add Pydantic People Page to docs by
@sydney-runkle
in #8345- Support
yyyy-MM-DD
datetime parsing by@sydney-runkle
in #8404- Added bits conversions to the
ByteSize
class #8415 by@luca-matei
in #8507- Enable json schema creation with type
ByteSize
by@geospackle
in #8537- Add
eval_type_backport
to handle union operator and builtin generic subscripting in older Pythons by@alexmojaki
in #8209- Add support for
dataclass
fieldsinit
by@dmontagu
in #8552- Implement pickling for
ValidationError
by@davidhewitt
in pydantic/pydantic-core#1119- Add unified tuple validator that can handle "variadic" tuples via PEP-646 by
@dmontagu
in pydantic/pydantic-core#865Changes
- Drop Python3.7 support by
@hramezani
in #7188- Drop Python 3.7, and PyPy 3.7 and 3.8 by
@davidhewitt
in pydantic/pydantic-core#1129- Use positional-only
self
inBaseModel
constructor, so no field name can ever conflict with it by@ariebovenberg
in #8072- Make
@validate_call
return a function instead of a custom descriptor - fixes binding issue with inheritance and addsself/cls
argument to validation errors by@alexmojaki
in #8268- Exclude
BaseModel
docstring from JSON schema description by@sydney-runkle
in #8352- Introducing
classproperty
decorator formodel_computed_fields
by@Jocelyn-Gas
in #8437- Explicitly raise an error if field names clashes with types by
@Viicos
in #8243- Use stricter serializer for unions of simple types by
@alexdrydew
pydantic/pydantic-core#1132Performance
- Add Codspeed profiling Actions workflow by
@lambertsbennett
in #8054- Improve
int
extraction by@samuelcolvin
in pydantic/pydantic-core#1155- Improve performance of recursion guard by
@samuelcolvin
in pydantic/pydantic-core#1156dataclass
serialization speedups by@samuelcolvin
in pydantic/pydantic-core#1162- Avoid
HashMap
creation when looking up small JSON objects inLazyIndexMaps
by@samuelcolvin
in pydantic/jiter#55- use hashbrown to speedup python string caching by
@davidhewitt
in pydantic/jiter#51
... (truncated)
cf822bd
prep for 2.6.1 releasefa8acbb
Version bump for pydantic 2.16.2 (#8717)2d812a8
Reverting problematic fix from 2.6 release, fixing schema building bug
(#8718)8e790d5
Fix unsupported types bug with plain validator (#8710)aac1069
Fix regression in core schema generation for indirect definition
references (...43327d8
Fix inheriting annotations in dataclasses (#8679)f3532ed
Fix ByteSize
error type
change (#8681)50259d7
Fix bug with mypy plugin and no_strict_optional = True
(#8666)afd0aa8
Drop pypy-3.8 from CI (#8667)0b2578d
update date for 2.6 releaseSourced from urllib3's releases.
2.2.0
🖥️ urllib3 now works in the browser
:tada: This release adds experimental support for using urllib3 in the browser with Pyodide! :tada:
Thanks to Joe Marshall (
@joemarshall
) for contributing this feature. This change was possible thanks to work done in urllib3 v2.0 to detach our API fromhttp.client
. Please report all bugs to the urllib3 issue tracker.🚀 urllib3 is fundraising for HTTP/2 support
urllib3 is raising ~$40,000 USD to release HTTP/2 support and ensure long-term sustainable maintenance of the project after a sharp decline in financial support for 2023. If your company or organization uses Python and would benefit from HTTP/2 support in Requests, pip, cloud SDKs, and thousands of other projects please consider contributing financially to ensure HTTP/2 support is developed sustainably and maintained for the long-haul.
Thank you for your support.
Changes
- Added support for Emscripten and Pyodide, including streaming support in cross-origin isolated browser environments where threading is enabled. (#2951)
- Added support for
HTTPResponse.read1()
method. (#3186)- Added rudimentary support for HTTP/2. (#3284)
- Fixed issue where requests against urls with trailing dots were failing due to SSL errors when using proxy. (#2244)
- Fixed
HTTPConnection.proxy_is_verified
andHTTPSConnection.proxy_is_verified
to be always set to a boolean after connecting to a proxy. It could beNone
in some cases previously. (#3130)- Fixed an issue where
headers
passed in a request withjson=
would be mutated (#3203)- Fixed
HTTPSConnection.is_verified
to be set toFalse
when connecting from a HTTPS proxy to an HTTP target. It was set toTrue
previously. (#3267)- Fixed handling of new error message from OpenSSL 3.2.0 when configuring an HTTP proxy as HTTPS (#3268)
- Fixed TLS 1.3 post-handshake auth when the server certificate validation is disabled (#3325)
Note for downstream distributors: To run integration tests, you now need to run the tests a second time with the
--integration
pytest flag. (#3181)
Sourced from urllib3's changelog.
2.2.0 (2024-01-30)
- Added support for
Emscripten and Pyodide <https://urllib3.readthedocs.io/en/latest/reference/contrib/emscripten.html>
, including streaming support in cross-origin isolated browser environments where threading is enabled. ([#2951](https://github.com/urllib3/urllib3/issues/2951) <https://github.com/urllib3/urllib3/issues/2951>
)- Added support for
HTTPResponse.read1()
method. ([#3186](https://github.com/urllib3/urllib3/issues/3186) <https://github.com/urllib3/urllib3/issues/3186>
__)- Added rudimentary support for HTTP/2. (
[#3284](https://github.com/urllib3/urllib3/issues/3284) <https://github.com/urllib3/urllib3/issues/3284>
__)- Fixed issue where requests against urls with trailing dots were failing due to SSL errors when using proxy. (
[#2244](https://github.com/urllib3/urllib3/issues/2244) <https://github.com/urllib3/urllib3/issues/2244>
__)- Fixed
HTTPConnection.proxy_is_verified
andHTTPSConnection.proxy_is_verified
to be always set to a boolean after connecting to a proxy. It could beNone
in some cases previously. ([#3130](https://github.com/urllib3/urllib3/issues/3130) <https://github.com/urllib3/urllib3/issues/3130>
__)- Fixed an issue where
headers
passed in a request withjson=
would be mutated ([#3203](https://github.com/urllib3/urllib3/issues/3203) <https://github.com/urllib3/urllib3/issues/3203>
__)- Fixed
HTTPSConnection.is_verified
to be set toFalse
when connecting from a HTTPS proxy to an HTTP target. It was set toTrue
previously. ([#3267](https://github.com/urllib3/urllib3/issues/3267) <https://github.com/urllib3/urllib3/issues/3267>
__)- Fixed handling of new error message from OpenSSL 3.2.0 when configuring an HTTP proxy as HTTPS (
[#3268](https://github.com/urllib3/urllib3/issues/3268) <https://github.com/urllib3/urllib3/issues/3268>
__)- Fixed TLS 1.3 post-handshake auth when the server certificate validation is disabled (
[#3325](https://github.com/urllib3/urllib3/issues/3325) <https://github.com/urllib3/urllib3/issues/3325>
__)- Note for downstream distributors: To run integration tests, you now need to run the tests a second time with the
--integration
pytest flag. ([#3181](https://github.com/urllib3/urllib3/issues/3181) <https://github.com/urllib3/urllib3/issues/3181>
__)
04df048
Release 2.2.02aec09f
Add documentation for Emscripten support6d2f0f6
Annotate response attribute length_remaining
in
BaseHTTPResponse (#3317)d7bb83b
Fix TLS 1.3 post-handshake auth8c8e26d
Hide H2Connection inside _LockedObject (#3318)26a07db
Make BaseHTTPResponse a base class of HTTP2Response (#3311)71e7c35
Allow testing HTTP/1.1 and HTTP/2 in the same test (#3310)89ed0d6
Add test-pypy 3.8 3.9 3.10 nox sessions (#3304)fb6cf2d
Pin to pypy-3.9-v7.3.13 to not timeout CI03f7b65
Skip memray on pypy (#3286)Sourced from coverage's changelog.
Version 7.4.1 — 2024-01-26
Python 3.13.0a3 is supported.
Fix: the JSON report now includes an explicit format version number, closing
issue 1732
_... _issue 1732: nedbat/coveragepy#1732
.. _changes_7-4-0:
Version 7.4.0 — 2023-12-27
- In Python 3.12 and above, you can try an experimental core based on the new :mod:
sys.monitoring <python:sys.monitoring>
module by defining aCOVERAGE_CORE=sysmon
environment variable. This should be faster for line coverage, but not for branch coverage, and plugins and dynamic contexts are not yet supported with it. I am very interested to hear how it works (or doesn't!) for you... _changes_7-3-4:
Version 7.3.4 — 2023-12-20
Fix: the change for multi-line signature exclusions in 7.3.3 broke other forms of nested clauses being excluded properly. This is now fixed, closing
issue 1713
_.Fix: in the HTML report, selecting code for copying won't select the line numbers also. Thanks,
Robert Harris <pull 1717_>
_... _issue 1713: nedbat/coveragepy#1713 .. _pull 1717: nedbat/coveragepy#1717
.. _changes_7-3-3:
Version 7.3.3 — 2023-12-14
Fix: function definitions with multi-line signatures can now be excluded by matching any of the lines, closing
issue 684
. Thanks,Jan Rusak, Maciej Kowalczyk and Joanna Ejzel <pull 1705_>
.Fix: XML reports could fail with a TypeError if files had numeric components
... (truncated)
07588ea
test: give hypothesis a little more time2c96518
build: tags should be signed8d1857f
docs: sample HTML for 7.4.1ddc88f7
docs: prep for 7.4.198cd671
docs: correct two library urls498b8c9
build: coverage runs have to skip windows pypy too75b22f0
test: ignore color in tracebacksb7c41a2
build: show action environment variables for debuggingf8be865
build: run actions on 3.13 since a3 came out.de60a6d
build(deps): bump actions/dependency-review-action from 3 to 4