Skip to content

chore(deps): Bump python-ulid from 3.2.0 to 4.0.1 - #1180

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/python-ulid-4.0.1
Open

chore(deps): Bump python-ulid from 3.2.0 to 4.0.1#1180
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/python-ulid-4.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 28, 2026

Copy link
Copy Markdown
Contributor

Bumps python-ulid from 3.2.0 to 4.0.1.

Release notes

Sourced from python-ulid's releases.

4.0.1

Changed

  • Renamed ULID.from_uuidv7 to ULID.from_uuid7 for naming symmetry with ULID.to_uuid7, correcting an inconsistency introduced in 3.2.0.

⚠️ If you adopted 3.2.0 or 4.0.0: update calls from ULID.from_uuidv7(...) to ULID.from_uuid7(...). This is the only change in this release.

For the full 4.0.0 feature set (the new ULIDGenerator, monotonicity policies, and default_generator), see the 4.0.0 release.

Full changelog: mdomke/python-ulid@4.0.0...4.0.1

4.0.0

⚠️ Breaking changes

  • ValueProvider and the ULID.provider class attribute have been removed. ULID generation is now handled by the new ULIDGenerator together with pluggable monotonicity policies. Code that replaced ULID.provider or subclassed ValueProvider must migrate to a custom ULIDGenerator assigned to ulid.default_generator.
  • The internal validate_type decorator was removed. The ULID.from_* constructors still raise TypeError for arguments of the wrong type, so runtime behaviour is unchanged.

Added

  • A public ULIDGenerator class that encapsulates ULID generation and can be configured with a custom clock, randomness source, and monotonicity policy.
  • Pluggable monotonicity policies — StrictMonotonicPolicy (the default), LaxMonotonicPolicy, and PureRandomPolicy — together with the MonotonicityPolicy protocol and the BaseMonotonicPolicy base class for implementing custom policies.
  • A module-level ulid.default_generator that can be reassigned to route ULID() and the ULID.from_* constructors through a custom ULIDGenerator.

Migration

import ulid
from ulid import ULIDGenerator, LaxMonotonicPolicy
Before (removed):
ULID.provider = MyValueProvider()
After:
ulid.default_generator = ULIDGenerator(policy=LaxMonotonicPolicy())

alternatively you can just create a generator object with the custom policy and create your ULID values with it

from ulid import ULIDGenerator, LaxMonotonicPolicy
generator = ULIDGenerator(policy=LaxMonotonicPolicy())
generator.generate()

Full changelog: mdomke/python-ulid@3.2.1...4.0.0

Changelog

Sourced from python-ulid's changelog.

4.0.1_ - 2026-07-20

Changed

* Renamed ``ULID.from_uuidv7`` to :meth:`.ULID.from_uuid7` for naming symmetry with
  :meth:`.ULID.to_uuid7`, correcting an inconsistency introduced in 3.2.0.

4.0.0_ - 2026-07-20

.. warning::

Breaking change: the ValueProvider class and the ULID.provider class attribute
have been removed. ULID generation is now handled by the new :class:.ULIDGenerator together
with pluggable monotonicity policies. To customize generation, construct a
:class:.ULIDGenerator (optionally with a custom clock, randomness source, or policy) and
either call its generate() method or assign it to ulid.default_generator.

Added

* Added a public :class:`.ULIDGenerator` class that encapsulates ULID generation and can be
  configured with a custom clock, randomness source, and monotonicity policy.
* Added pluggable monotonicity policies: :class:`.StrictMonotonicPolicy` (the default),
  :class:`.LaxMonotonicPolicy` and :class:`.PureRandomPolicy`, together with the
  :class:`.MonotonicityPolicy` protocol and the :class:`.BaseMonotonicPolicy` base class for
  implementing custom policies.
* Added a module-level ``ulid.default_generator`` that can be reassigned to route ``ULID()`` and
  the ``ULID.from_*`` constructors through a custom :class:`.ULIDGenerator`.

Removed
</code></pre>
<ul>
<li>Removed the <code>ValueProvider</code> class and the <code>ULID.provider</code> attribute in favour of
:class:<code>.ULIDGenerator</code> and the monotonicity policies. Code that replaced <code>ULID.provider</code> or
subclassed <code>ValueProvider</code> must migrate to a custom :class:<code>.ULIDGenerator</code> assigned to
<code>ulid.default_generator</code>.</li>
<li>Removed the internal <code>validate_type</code> decorator. The <code>ULID.from_</code> constructors still raise
<code>TypeError</code> for arguments of the wrong type, so runtime behaviour is unchanged.</li>
</ul>
<h2><code>3.2.1</code>_ - 2026-07-17</h2>
<p>Fixed</p>
<pre><code>
Corrected the build and publish pipeline and the generated source distribution. This release
contains no changes to the library code.
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>

<ul>
<li><a href="https://github.com/mdomke/python-ulid/commit/c8e418c3da4e42b842e200e3e75cf34575a4033c&quot;&gt;&lt;code&gt;c8e418c&lt;/code&gt;&lt;/a> fix(core): rename from_uuidv7 to from_uuid7 for symmetry with to_uuid7</li>
<li><a href="https://github.com/mdomke/python-ulid/commit/aa8b06b3946427475e8f1c842fe8cac23fba82b3&quot;&gt;&lt;code&gt;aa8b06b&lt;/code&gt;&lt;/a> Decouple generator state (<a href="https://redirect.github.com/mdomke/python-ulid/issues/65&quot;&gt;#65&lt;/a&gt;)&lt;/li>
<li><a href="https://github.com/mdomke/python-ulid/commit/7a31bbda7a874320a7ad40b10063531a67259e52&quot;&gt;&lt;code&gt;7a31bbd&lt;/code&gt;&lt;/a> Improve contribution guide</li>
<li><a href="https://github.com/mdomke/python-ulid/commit/4c35bd2f0c01256b701a6ec3ae7fc1dfe6cae336&quot;&gt;&lt;code&gt;4c35bd2&lt;/code&gt;&lt;/a> chore: Add missing build step to publish job</li>
<li>See full diff in <a href="https://github.com/mdomke/python-ulid/compare/3.2.0...4.0.1&quot;&gt;compare view</a></li>
</ul>
</details>

<br />

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Jul 28, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 28, 2026 13:25
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jul 28, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner July 28, 2026 13:25
@dependabot dependabot Bot added the python:uv Pull requests that update python:uv code label Jul 28, 2026
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.77%. Comparing base (f33c29f) to head (7ec92ef).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1180      +/-   ##
==========================================
- Coverage   82.86%   82.77%   -0.09%     
==========================================
  Files         123      123              
  Lines       10130    10130              
==========================================
- Hits         8394     8385       -9     
- Misses       1736     1745       +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@acroca

acroca commented Aug 4, 2026

Copy link
Copy Markdown
Member

@dependabot recreate

Bumps [python-ulid](https://github.com/mdomke/python-ulid) from 3.2.0 to 4.0.1.
- [Release notes](https://github.com/mdomke/python-ulid/releases)
- [Changelog](https://github.com/mdomke/python-ulid/blob/main/CHANGELOG.rst)
- [Commits](mdomke/python-ulid@3.2.0...4.0.1)

---
updated-dependencies:
- dependency-name: python-ulid
  dependency-version: 4.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/python-ulid-4.0.1 branch from dc13c15 to 7ec92ef Compare August 4, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant