Skip to content

Update dependency peewee to v4#368

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/peewee-4.x
Open

Update dependency peewee to v4#368
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/peewee-4.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Feb 20, 2026

This PR contains the following updates:

Package Change Age Confidence
peewee (changelog) ~3.19.0~4.0.0 age confidence

Release Notes

coleifer/peewee (peewee)

v4.0.4

Compare Source

  • Fix SQL generation for partial indexes with nulls (not) distinct clause.
  • Raise an ImproperlyConfigured if pg driver unavailable at model
    definition-time when field db-hooks are used, rather than AttributeError.

View commits

v4.0.3

Compare Source

  • Refactor test suite - this was a mechanical refactor, just moving things
    around and trying to group things more clearly. Also added new tests covering
    some gaps.
  • Expand multi-value types to include generator expressions, so you can write
    stuff like .in(a for a in iterable if cond).
  • Ensure quotes embedded in entity names are escaped.
  • Improved specification of FOR UPDATE clauses.
  • Fix for negative values in paginate() method.
  • Fix for newer MySQL server versions in feature detection code.
  • More robust handling of unusual aliases / invalid attr names in cursor
    wrapper.
  • Better handling of duplicated column names in cursor wrapper implementations.
  • Improve performance of ModelCursorWrapper when reconstructing model instance
    graphs after multi-table selects.
  • If only psycopg3 is installed, use it by default (#​3036)

View commits

v4.0.2

Compare Source

  • Remove all Python 2.x compatibility code.
  • Add streaming result cursors to pwasyncio module via db.iterate(query).
  • Better serialization and deserialization of datetimes and binary data in the
    DataSet module. Previously binary data was encoded as base64, going forward
    hex is the new default. For base64 specify base64_bytes=True.
  • Improvements to Postgres BinaryJSONField, support atomic removal of
    sub-elements, as well as alternate helper for extracting sub-elements and
    querying array length.
  • Pydantic integration

View commits

v4.0.1

Compare Source

  • Ensure gr_context is set on greenlet in greenlet_spawn so that
    contextvars will be operable in sync handlers.
  • Removed SqliteExtDatabase (it basically served no purpose in 4.0). Use
    SqliteDatabase instead.
  • Moved driver and extension-specific pooled implementations into the
    corresponding extension module rather than putting all into playhouse.pool.
  • Restore custom dumps option for postgres JSON fields.
  • Major docs rewrite / reorganization.

View commits

v4.0.0

Compare Source

  • Adds preliminary support for asyncio via a new playhouse extension. See
    the documentation
    for details.
  • PostgresqlDatabase can use psycopg (psycopg3) if it is installed. If both
    psycopg2 and psycopg3 are installed, Peewee will prefer psycopg2, but this
    can be controlled by specifying prefer_psycopg3=True in the constructor.
    Same applies to PostgresqlExtDatabase.
  • Psycopg3Database class has been moved to playhouse.postgres_ext and is
    now just a thin wrapper around PostgresqlExtDatabase.
  • Postgres JSON operations no longer dump and try to do minimal casts, instead
    relying on the driver-provided Json() wrapper(s).
  • Adds new ISODateTimeField for Sqlite that encodes datetimes in ISO format
    (more friendly when db is shared with other tools), and also properly reads
    back UTC offset info.
  • Remove playhouse.sqlite_ext.ClosureTable implementation.
  • Add a Model.dirty_field_names attribute that is safe for membership
    testing, since testing x in dirty_fields returns True if one or more field
    exists due to operator overloads returning a truthy Expression object.
    Refs #​3028.
  • Removal of Cython _sqlite_ext extension. The C implementations of the FTS
    rank functions are moved to sqlite_udf. Most of the remaining functionality
    is moved to playhouse.cysqlite_ext which supports it natively.

Migrating CSqliteExtDatabase usage:

You can either use sqlite_ext.SqliteExtDatabase or try the new
cysqlite_ext.CySqliteDatabase if you want all the old functionality and are
willing to try a new driver.

View commits


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/peewee-4.x branch from f79cc78 to 11f7ea9 Compare March 1, 2026 22:07
@renovate renovate bot force-pushed the renovate/peewee-4.x branch 3 times, most recently from e732937 to f2b2fb3 Compare March 16, 2026 12:53
@renovate renovate bot force-pushed the renovate/peewee-4.x branch 2 times, most recently from 2d42a13 to 909f7b7 Compare March 27, 2026 01:03
@renovate renovate bot force-pushed the renovate/peewee-4.x branch 2 times, most recently from e7dd65e to ef0fad9 Compare April 4, 2026 00:46
@renovate renovate bot force-pushed the renovate/peewee-4.x branch from ef0fad9 to de717f6 Compare April 6, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants