Skip to content

Commit

Permalink
chore(release): bump to v0.29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Jan 17, 2025
1 parent d7ce1c2 commit 6a1016f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
0.x Changelog
=============

.. changelog:: 0.29.1
:date: 2025-01-17

.. change:: add convenience hooks for `to_model` operations
:type: feature
:pr: 347

The service layer has always has a `to_model` function that accepts data and optionally an operation name. It would return a SQLAlchemy model no matter the input you gave it.

It is possible to move business logic into this `to_model` layer for populating fields on insert. (i.e. slug fields or tags, etc.).

When having logic for `insert`, `update`, `delete`, and `upsert`, that function can be a bit overwhelcoming. Now, there are helper functions that you can use that is specific to each DML hook:

* `to_model_on_create`
* `to_model_on_update`
* `to_model_on_delete`
* `to_model_on_upsert`


.. changelog:: 0.29.0
:date: 2025-01-17

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ maintainers = [
name = "advanced_alchemy"
readme = "README.md"
requires-python = ">=3.8"
version = "0.29.0"
version = "0.29.1"

[project.urls]
Changelog = "https://docs.advanced-alchemy.litestar.dev/latest/changelog"
Expand Down Expand Up @@ -168,7 +168,7 @@ test = [
allow_dirty = true
commit = true
commit_args = "--no-verify"
current_version = "0.29.0"
current_version = "0.29.1"
ignore_missing_files = false
ignore_missing_version = false
message = "chore(release): bump to v{new_version}"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a1016f

Please sign in to comment.