24 KiB
24 KiB
CHANGELOG
Latest Changes
- feat(sha256): add
Sha256Strfor hex-encoded SHA-256 digests, normalized to lowercase. - fix(pendulum_dt): stop
DateTimedefaulting a timezone-naive input to UTC; it now stays naive, matching pydantic's stdlibdatetimecontract. - fix(mac_address): reject MAC octets with a sign or whitespace (e.g.
-a:...,+a:...,a:...) thatint(..., 16)accepted.
2.11.2
- fix: accept common timezone abbreviations like EDT in TimeZoneName validator by @r266-tech in https://github.com/pydantic/pydantic-extra-types/pull/376
- fix: correct ISO 8601 serialization for negative pendulum Duration values by @r266-tech in https://github.com/pydantic/pydantic-extra-types/pull/377
- ⬆ Bump the python-packages group with 3 updates by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/378
- fix(python): add missing Pendulum Interval wrapper support by @RedZapdos123 in https://github.com/pydantic/pydantic-extra-types/pull/379
- feat(isin): add ISIN type with checksum validation by @RedZapdos123 in https://github.com/pydantic/pydantic-extra-types/pull/380
- feat(json_schema): add JsonSchema type validated by jsonschema by @RedZapdos123 in https://github.com/pydantic/pydantic-extra-types/pull/381
- 🔖 Release version 2.11.2 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/382
2.11.1
- 🐛 fix Cron Tests (Happy New Year 🎉 ) by @anthonycicc in https://github.com/pydantic/pydantic-extra-types/pull/361
- ⬆ Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/362
- ⬆ Bump actions/download-artifact from 6 to 7 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/363
- ⬆ Bump the python-packages group with 4 updates by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/365
- Add UUID v7 support (and v6/v8) by @sshaheerkhann in https://github.com/pydantic/pydantic-extra-types/pull/367
- feat: migrate DSN types from pydantic.networks by @bBlazewavE in https://github.com/pydantic/pydantic-extra-types/pull/368
- Export
Colorfrom package__init__.pyby @bBlazewavE in https://github.com/pydantic/pydantic-extra-types/pull/373 - ⬆ Bump the python-packages group with 2 updates by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/371
- ⬆ Bump actions/download-artifact from 7 to 8 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/370
- ⬆ Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/369
- feat: add IBAN (International Bank Account Number) type by @toroleapinc in https://github.com/pydantic/pydantic-extra-types/pull/372
- 🔖 Release version 2.11.1 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/375
2.11.0
- 📝 docs: improve example formatting in PhoneNumber documentation by @hengky-kurniawan-1 in https://github.com/pydantic/pydantic-extra-types/pull/347
- Fix import typo in the script code's documentation by @wesley312 in https://github.com/pydantic/pydantic-extra-types/pull/349
- ⬆ Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/350
- ⬆ Bump astral-sh/setup-uv from 6 to 7 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/352
- ⬆ Bump actions/download-artifact from 5 to 6 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/351
- 🐛 fix: url typo in docstring by @lch in https://github.com/pydantic/pydantic-extra-types/pull/355
- ♻️ raise
ValueErrorinstead ofAttributeErroron wrongS3Pathvalue by @Danipulok in https://github.com/pydantic/pydantic-extra-types/pull/354 - ⬆ Bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/357
- Refactor type hints to use built-in tuple syntax by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/359
- Update version number for release 2.11.0 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/360
2.10.6
- feat: update credit card brands by @LorhanSohaky in https://github.com/pydantic/pydantic-extra-types/pull/325
- Fix various documentation layout issues by @Viicos in https://github.com/pydantic/pydantic-extra-types/pull/328
- Added test coverage for DomainStr validation including punycode and invalid inputs by @rhealakhotia in https://github.com/pydantic/pydantic-extra-types/pull/330
- ✨ Add time parsing to
pendulumby @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/331 - Fix relative path creation on Windows for fixtures by @denini08 in https://github.com/pydantic/pydantic-extra-types/pull/333
- ⬆ Bump samuelcolvin/check-python-version from 4.1 to 5 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/336
- ⬆ Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/334
- ⬆ Bump actions/download-artifact from 4 to 5 by @dependabot[bot] in https://github.com/pydantic/pydantic-extra-types/pull/335
- docs: fix-isbn-typos by @gem7318 in https://github.com/pydantic/pydantic-extra-types/pull/337
- ♻️ refactor
mac_addressvalidation logic by @Stormageddon37 in https://github.com/pydantic/pydantic-extra-types/pull/338 - 🐛 set
@classmethodinphone_numbersschema by @Stormageddon37 in https://github.com/pydantic/pydantic-extra-types/pull/339 - 📝 chore: fix random typos by @Stormageddon37 in https://github.com/pydantic/pydantic-extra-types/pull/340
- 📝 docs: enhance docstring for
PhoneNumberclass with usage examples by @hengky-kurniawan-1 in https://github.com/pydantic/pydantic-extra-types/pull/341 - Added cron type by @Neko1313 in https://github.com/pydantic/pydantic-extra-types/pull/343
- 🔖 Release version 2.10.6 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/344
2.10.5
- ⬆ Bump astral-sh/setup-uv from 5 to 6 by @dependabot in https://github.com/pydantic/pydantic-extra-types/pull/314
- fix: Install
pre-commithooks with uv by @karta9821 in https://github.com/pydantic/pydantic-extra-types/pull/315 - bump uv lockfile by @07pepa in https://github.com/pydantic/pydantic-extra-types/pull/317
- Add path types by @irtimir in https://github.com/pydantic/pydantic-extra-types/pull/318
- feat: Support
Decimaltype in coordinates by @karta9821 in https://github.com/pydantic/pydantic-extra-types/pull/319 - 🐛 fix: serialize Pendulum zero Duration as valid ISO 8601 'P0D' by @dreglad in https://github.com/pydantic/pydantic-extra-types/pull/320
- Allow constructing an ULID from an
uuid.UUIDby @abhiaagarwal in https://github.com/pydantic/pydantic-extra-types/pull/322 - 🔖 Release version 2.10.5 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/323
2.10.4
- Fix serialization of mongo_object_id by @MaximilianClemens in https://github.com/pydantic/pydantic-extra-types/pull/302
- Default to using system zoneinfo if available by @jelly in https://github.com/pydantic/pydantic-extra-types/pull/303
- fix: disallow bool as input value for ULID by @glowskir in https://github.com/pydantic/pydantic-extra-types/pull/305
- ⬆ Update phonenumbers requirement from <9,>=8 to >=8,<10 in the python-packages group by @dependabot in https://github.com/pydantic/pydantic-extra-types/pull/304
- ♻️ change the Package ecosystem to
uvby @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/306 - ♻️ Fix regex pattern for Domain by @rosscdh-tpg in https://github.com/pydantic/pydantic-extra-types/pull/308
- Fix color parsing when TypeError by @irtimir in https://github.com/pydantic/pydantic-extra-types/pull/312
- 🔖 Release version 2.10.4 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/313
2.10.3
- Add support for pymongo bson ObjectId by @Ale-Cas in https://github.com/pydantic/pydantic-extra-types/pull/290
- Fix checkdigit calculation for ISBN10 by @eumiro in https://github.com/pydantic/pydantic-extra-types/pull/292
- Make checksum calculation more descriptive by @eumiro in https://github.com/pydantic/pydantic-extra-types/pull/293
- Refactor validate_mac_address method by @eumiro in https://github.com/pydantic/pydantic-extra-types/pull/294
- fix (de-)serialization of pendulum durations by @hoesler in https://github.com/pydantic/pydantic-extra-types/pull/296
- limit iso8601 serialization of duration to json by @hoesler in https://github.com/pydantic/pydantic-extra-types/pull/297
- 🔖 Release version 2.10.3 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/298
2.10.2
- Add back Python 3.8 support by @Viicos in https://github.com/pydantic/pydantic-extra-types/pull/249
- ⬆ Bump astral-sh/setup-uv from 4 to 5 by @dependabot in https://github.com/pydantic/pydantic-extra-types/pull/282
- Preserve months when using the Pendulum Duration type by @gareththackeray in https://github.com/pydantic/pydantic-extra-types/pull/283
- ✨ Add type checking support and improve type hints across the codebase by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/285
- 📝 Add additional installation information to README by @oakhan3 in https://github.com/pydantic/pydantic-extra-types/pull/233
2.10.1
- Allow build with python-ulid 3.0.0 by @sunpoet in https://github.com/pydantic/pydantic-extra-types/pull/225
- 🔨 added automatic syntax-upgrade hook ~ pyupgrade by @janas-adam in https://github.com/pydantic/pydantic-extra-types/pull/229
- 🔥 Revert adding pyupgrade as a hook in pre-commit by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/230
- isolate url in Currency by @edasubert in https://github.com/pydantic/pydantic-extra-types/pull/235
- lower case currency is valid by @edasubert in https://github.com/pydantic/pydantic-extra-types/pull/236
- Update SemanticVersion by @viccie30 in https://github.com/pydantic/pydantic-extra-types/pull/237
- Epoch - unix timestamp by @commonism in https://github.com/pydantic/pydantic-extra-types/pull/240
- ♻️ Migrate Pydantic Extra Types to use uv by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/241
- ⬆ Bump astral-sh/setup-uv from 3 to 4 by @dependabot in https://github.com/pydantic/pydantic-extra-types/pull/245
- ⬆ Bump pre-commit/action from 3.0.0 to 3.0.1 by @dependabot in https://github.com/pydantic/pydantic-extra-types/pull/244
- 🔖 Release version 2.10.1 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/246
- Fix check python version for release by @hramezani in https://github.com/pydantic/pydantic-extra-types/pull/247
2.10.0
Types
- Add semantic version type by @jbkroner in https://github.com/pydantic/pydantic-extra-types/pull/199
- feat: add S3Path by @lucianosrp in https://github.com/pydantic/pydantic-extra-types/pull/206
Refactor
- feature: Improve phone number validator by @mZbZ in https://github.com/pydantic/pydantic-extra-types/pull/202
- Feature: Add phone number validator by @mZbZ in https://github.com/pydantic/pydantic-extra-types/pull/203
- Domain name string type by @matter1-git in https://github.com/pydantic/pydantic-extra-types/pull/212
- Adjust test_json_schema() for Pydantic 2.9 by @musicinmybrain in https://github.com/pydantic/pydantic-extra-types/pull/215
- Allow python-ulid 3.0 by @musicinmybrain in https://github.com/pydantic/pydantic-extra-types/pull/222
Dependencies
- ⬆ Bump the python-packages group with 5 updates by @dependabot in https://github.com/pydantic/pydantic-extra-types/pull/201
- ✨ deprecate
semverin favor ofsemantic_versionby @07pepa in https://github.com/pydantic/pydantic-extra-types/pull/209 - 🔖 Release version 2.10.0 by @yezz123 in https://github.com/pydantic/pydantic-extra-types/pull/224
2.9.0
Types
- Add Semantic version type. PR #195 by @nikstuckenbrock
- Add timezone name validation. PR #193 by @07pepa
Refactor
Dependencies
- ⬆ Bump the python-packages group with 4 updates. PR #194 by @dependabot
2.8.2
- 🐛 Preserve timezone information when validating Pendulum DateTimes. #189 by @chrisguidry
2.8.1
Bug Fixes
Types
2.8.0
Refactor
Internal
Types
- Add ISO 15924 and tests. #174 by @07pepa
- add native datetime to pendulum_dt.py. #176 by @07pepa
- add hash and eq to phone_numbers. #177 by @07pepa
Dependencies
- ⬆ Bump the python-packages group with 5 updates. PR #179 by @dependabot
- ⬆ Bump the python-packages group with 4 updates. PR #171 by @dependabot
2.7.0
- 🔥 Remove latest-changes workflow. PR #165 by yezz123
- 🔨 Add latest-changes workflow to generate Changes. PR #164 by yezz123
- Added LanguageAlpha2 and LanguageName types. PR #153 by odelmarcelle
- Added support for pendulum Dates. PR #154 by Woody1193
- Add support for pendulum Duration. PR #162 by tempookian
Dependencies
- ⬆ Bump the python-packages group with 1 update. PR #150 by dependabot
- ⬆ Bump the python-packages group with 6 updates. PR #160 by dependabot
2.6.0
- Allow python-ulid 2.x on Python 3.9 and later. PR #131 by @musicinmybrain
- Do not pin the ”major” version of pycountry. PR #132 by @musicinmybrain
- 🤖 Create dependabot.yml for updating GitHub action. PR #134 by @yezz123
- Refactor Documentation for ISBN and MAC address modules. PR #124 by @yezz123
- Add language code definitions and test. PR #141 by @07pepa
- Create a
changelogto match release notes. PR #142 by @yezz123 - Add currency code ISO 4217 and its subset that includes only currencies. PR #143 by @07pepa
- 🔨 Update code formatting and linting configurations. PR #144 by @yezz123
- 👷 Add Python checking for dependencies. PR #145 by @yezz123
- 🐛 Fix single quote issue. PR #148 by @yezz123
2.5.0
- Add Pendulum DT support. PR #110 by @theunkn0wn1
2.4.1
- Fix refs blocking docs build. PR #125 by @sydney-runkle
2.4.0
- Add: New type ISBN. PR #116 by lucasmucidas
- Fix validate_digits actually allowing non-digit characters. PR #120 by romaincaillon
- Refactor the
validate_brandmethod & add new types. PR #56 by yezz123 - Drop Python 3.7 & support 3.12. PR #122 by yezz123
2.3.0
2.2.0
- Add
longandshortformat toas_hex. PR #93 by DJRHails - Refactor documentation. PR #98 by Kludex
- Add
ULIDtype. PR #73 by JeanArhancet - Add
__get_pydantic_json_schema__method withformat='tel'. PR #106 by hasansezertasan
2.1.0
- Add
MacAddresstype. PR #71 by JeanArhancet - Fix usage of
MAC address. PR #72 by yezz123 - Add docstrings for payment cards. PR #77 by tpdorsey
- Fix MAC address validation. PR #79 by JeanArhancet
- Remove work in progress part from README.md. PR #81 by hramezani
- Add
Latitude,Longitude, andCoordinate. PR #76 by JeanArhancet - Refactor: use stdlib and remove useless code. PR #86 by eumiro
- Make Latitude and Longitude evaluated. PR #90 by Kludex
2.0.0
- Migrate
Color&Payment Card. PR #2 by yezz123 - Add
pydanticto classifiers. PR #13 by yezz123 - Remove dependencies caching. PR #16 by yezz123
- Deprecate
__modify_schema__method. PR #20 by yezz123 - Fix Color JSON schema generation. PR #21 by dmontagu
- Fix issues of
pydantic_core.core_schemahas no attributexxx. PR #23 by yezz123 - Fix Failed tests for
colortype. PR #26 by yezz123 - Created Country type. PR #14 by HomiGrotas
- Add phone number types. PR #25 by JamesHutchison
- Make
phonenumbersa requirement. PR #29 by yezz123 - Add ABARouting number type. PR #30 by RevinderDev
- Add missing countries. PR #32 by EssaAlshammri
- Resolve
pydantic-coredependency conflict. PR #45 by hirotasoshu - Add
MIRcard brand. PR #46 by hirotasoshu - Fix dependencies version. PR #48 by yezz123
- Add documentation for
ColorandPaymentCardNumber. PR #50 by Kludex - Add hooky. PR #51 by Kludex
- Simplify project structure. PR #52 by Kludex
- Add coverage check on the pipeline. PR #53 by Kludex
- Refactor country type using
pycountry. PR #54 by yezz123 - Add 100% coverage. PR #57 by Kludex
- Add support for transparent Color. PR #59 by CollinHeist
- Add documentation for
PhoneNumberandABARoutingNumber. PR #60 by Kludex - Refactor README. PR #61 by Kludex
- Rename
routing_number.mdtorouting_numbers.md. PR #62 by Kludex - Fix code in
paymentdocumentation. PR #63 by yezz123 - Uprev pydantic to b3. PR #69 by samuelcolvin
- Prepare for release 2.0.0. PR #70 by hramezani