Use stricter validation when a ULID value from user input. When using ULID.from_str() we will check if the characters match the base32 alphabet. In general, it is ensured that the timestamp part of the ULID is not out of range.
2.5.0
Changed
Generate a more accurate JSON schema with Pydantic’s BaseModel.model_json_schema(). This includes a specification for string and byte representations.
2.4.0
Added
ULID objects are now properly serialized when used as Pydantic types @Avihais12344#21
The new method ULID.to_uuid4 can be used to create an RFC 4122 compliant UUID from
an existing ULID#5.
Changed
The validate_types-decorator that is used for all ULID.from_*-methods to check type
correctness at runtime has now better support for type hints.
Thanks to @johnpaulett
* Ensure that the validation of ULID's timestamp component aligns more closely with
the ULID specification.
2.6.0_ - 2024-05-26
Changed
Use stricter validation when a :class:.ULID value from user input. When using
:meth:.ULID.from_str we will check if the characters match the base32 alphabet. In general,
it is ensured that the timestamp part of the ULID is not out of range.
2.5.0_ - 2024-04-26
Changed
* Generate a more accurate JSON schema with Pydantic's ``BaseModel.model_json_schema()``. This
includes a specification for string and byte representations.
2.4.0_ - 2024-04-02
Added
* :class:`.ULID` objects are now properly serialized when used as Pydantic types `@Avihais12344 <https://github.com/Avihais12344>`_.
`2.3.0`_ - 2024-03-21
---------------------
Added
:class:.ULID objects can now be converted to bytes with bytes(ulid).
The Pydantic v2 protocol is now supported, so that the :class:.ULID class can be directly used
as type annotations in Pydantic models <https://docs.pydantic.dev/latest/concepts/models/#basic-model-usage>_
Changed
The type annotations have been adapted, so that the classmethod constructors properly reflect the
type for :class:.ULID subclasses. Thanks to @johnpaulett <https://github.com/johnpaulett>_
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps python-ulid from 1.1.0 to 2.7.0.
Release notes
Sourced from python-ulid's releases.
... (truncated)
Changelog
Sourced from python-ulid's changelog.
... (truncated)
Commits
0804c91
chore: Adapt release date1d5ed28
fix: ensure the timestamp validation checks the upper limit given in the `uli...419116f
chore: Fix CHANGELOG formattinge25f438
Stricter validation for user provided ULID values76d5740
chore: Add release date14222be
Add more accurate JSON schema for Pydantic (#25)f6a761b
Add project.urls section for display on PyPI (#19)2a249fc
chore: Add projects URLsbcbf3e8
chore: Add changelog for 2.4 release14b4885
Added pydantic serialization to ULID (#21)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show