Skip to content

Commit

Permalink
Merge tag '0.42.0' into development
Browse files Browse the repository at this point in the history
0.42.0
  • Loading branch information
tadams42 committed Aug 18, 2023
2 parents eab3f8e + 118d9b4 commit 4eb1568
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.41.0
current_version = 0.42.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.dev(?P<build>\d+))?
serialize =
{major}.{minor}.{patch}.dev{build}
Expand Down
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# CHANGELOG

## 0.410.0 (2023-07-26)

## 0.42.0 (2023-08-18)

- fix: coerce filter values to Python objects
Combination of SQLAlchemy 2.x and psycopg 3.x no longer accepts query parameters as
strings for ie. integers and date-times. Query like following:

```py
User.query.filter(User.id == "42").first()
```

results with

```log
ProgrammingError: (psycopg.errors.UndefinedFunction) operator does not exist: bigint = character varying
```

Ideally, this would've been resolved in either of these libraries or in applications
themselves. And in most cases this the only solution. But in `flask-rest-jsonapi-next`
we can workaround most of these errors by trying to coerce filter values into correct
types.

## 0.41.0 (2023-07-26)

- fix: don't log stacktrace for common exceptions
- fix: defend from empty filters
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "flask-rest-jsonapi-next"
copyright = "2016-2021 miLibris; 2021-... miLibris, tadams42"
author = "tadams42"
release = "0.41.0"
release = "0.42.0"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = ["setuptools>=64", "wheel"]

[project]
name = "flask-rest-jsonapi-next"
version = "0.41.0"
version = "0.42.0"
description = "Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow and data provider of your choice (SQLAlchemy, MongoDB, ...)"
readme = "README.md"
classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion src/flask_rest_jsonapi_next/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.41.0"
__version__ = "0.42.0"

from .api import Api
from .data_layers.alchemy import SqlalchemyDataLayer
Expand Down

0 comments on commit 4eb1568

Please sign in to comment.