Releases: fastapi/sqlmodel
Releases Β· fastapi/sqlmodel
0.0.24
0.0.23
Fixes
- π Fix type annotation in
Field
constructor. PR #1304 by @AlanBogarin. - π Fix Pydantic version check for version 2.10.x onwards. PR #1255 by @asiunov.
Refactors
Docs
- π©Ί Take the GH badge only from pushes to the
main
branch. PR #1291 by @svlandeg. - π Update documentation to refer to
list
instead ofList
. PR #1147 by @bubbletroubles. - βοΈ Fix typo in
databases.md
. PR #1113 by @radi-dev. - βοΈ Fix typo in
docs/tutorial/create-db-and-table.md
. PR #1252 by @ArianHamdi. - βοΈ Fix typo in
insert.md
. PR #1256 by @Noushadaliam. - π Update markdown includes format. PR #1254 by @tiangolo.
- π Update fenced code in Decimal docs for consistency. PR #1251 by @tiangolo.
- βοΈ Fix typo in the release notes of v0.0.22. PR #1195 by @PipeKnight.
- π Update includes for
docs/advanced/uuid.md
. PR #1151 by @tiangolo. - π Update includes for
docs/tutorial/create-db-and-table.md
. PR #1149 by @tiangolo. - π Fix internal links in docs. PR #1148 by @tiangolo.
- βοΈ Fix typo in documentation. PR #1106 by @Solipsistmonkey.
- π Remove highlights in
indexes.md
. PR #1100 by @alejsdev.
Internal
- β¬ Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4. PR #1277 by @dependabot[bot].
- π Fix CI test suite for Python 3.7. PR #1309 by @svlandeg.
- π· Revert "Add Codecov to CI, Smokeshow/Cloudflare has been flaky lately (#1303)". PR #1306 by @svlandeg.
- π· Add Codecov to CI, Smokeshow/Cloudflare has been flaky lately. PR #1303 by @tiangolo.
- π· Add retries to Smokeshow. PR #1302 by @svlandeg.
- β¬ Bump astral-sh/setup-uv from 4 to 5. PR #1249 by @dependabot[bot].
- β¬ Bump pillow from 10.3.0 to 11.0.0. PR #1139 by @dependabot[bot].
- β¬ Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.12.3. PR #1240 by @dependabot[bot].
- β¬ Bump astral-sh/setup-uv from 3 to 4. PR #1225 by @dependabot[bot].
- β¬ Bump tiangolo/latest-changes from 0.3.1 to 0.3.2. PR #1207 by @dependabot[bot].
- π¨ Update docs previews script. PR #1236 by @tiangolo.
- π§ Update build-docs filter paths. PR #1235 by @tiangolo.
- π§ Update team members. PR #1234 by @tiangolo.
- β¬οΈ Upgrade markdown-include-variants to version 0.0.3. PR #1152 by @tiangolo.
- π· Update issue manager workflow. PR #1137 by @alejsdev.
- π· Fix smokeshow, checkout files on CI. PR #1136 by @tiangolo.
- π· Use uv in CI. PR #1135 by @tiangolo.
- β Add docs dependency markdown-include-variants. PR #1129 by @tiangolo.
- π¨ Update script to standardize format. PR #1130 by @tiangolo.
- π· Update
labeler.yml
. PR #1128 by @tiangolo. - π· Update worfkow deploy-docs-notify URL. PR #1126 by @tiangolo.
- π· Upgrade Cloudflare GitHub Action. PR #1124 by @tiangolo.
- β¬ [pre-commit.ci] pre-commit autoupdate. PR #1097 by @pre-commit-ci[bot].
- β¬ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. PR #1107 by @dependabot[bot].
- π· Update
issue-manager.yml
. PR #1103 by @tiangolo. - π· Fix coverage processing in CI, one name per matrix run. PR #1104 by @tiangolo.
- π Set
include-hidden-files
toTrue
when using theupload-artifact
GH action. PR #1098 by @svlandeg. - β¬ [pre-commit.ci] pre-commit autoupdate. PR #1088 by @pre-commit-ci[bot].
0.0.22
Fixes
- π Fix support for types with
Optional[Annoated[x, f()]]
, e.g.id: Optional[pydantic.UUID4]
. PR #1093 by @tiangolo.
Docs
- βοΈ Fix a typo in
docs/virtual-environments.md
. PR #1085 by @tiangolo. - π Add docs for virtual environments and environment variables, update contributing. PR #1082 by @tiangolo.
- π Add docs about repo management and team. PR #1059 by @tiangolo.
- βοΈ Fix typo in
cascade_delete
docs. PR #1030 by @tiangolo.
Internal
- β Refactor test_enums to make them independent of previous imports. PR #1095 by @tiangolo.
- π· Update
latest-changes
GitHub Action. PR #1087 by @tiangolo. - β¬ [pre-commit.ci] pre-commit autoupdate. PR #1028 by @pre-commit-ci[bot].
- β¬ Bump ruff from 0.4.7 to 0.6.2. PR #1081 by @dependabot[bot].
- π§ Update lint script. PR #1084 by @tiangolo.
- π· Update Python version for coverage. PR #1083 by @tiangolo.
- π§ Update coverage config files. PR #1077 by @tiangolo.
- π§ Add URLs to
pyproject.toml
, show up in PyPI. PR #1074 by @tiangolo. - π· Do not sync labels as it overrides manually added labels. PR #1073 by @tiangolo.
- π· Update configs for GitHub Action labeler, to add only one label. PR #1072 by @tiangolo.
- π· Update labeler GitHub Actions permissions and dependencies. PR #1071 by @tiangolo.
- π· Add GitHub Action label-checker. PR #1069 by @tiangolo.
- π· Add GitHub Action labeler. PR #1068 by @tiangolo.
- π· Update GitHub Action add-to-project. PR #1067 by @tiangolo.
- π· Add GitHub Action add-to-project. PR #1066 by @tiangolo.
- π Update admonitions in annotations. PR #1065 by @tiangolo.
- π Update links from github.com/tiangolo/sqlmodel to github.com/fastapi/sqlmodel. PR #1064 by @tiangolo.
- π§ Update members. PR #1063 by @tiangolo.
- π Add dark-mode logo. PR #1061 by @tiangolo.
- π¨ Update docs.py script to enable dirty reload conditionally. PR #1060 by @tiangolo.
- π§ Update MkDocs previews. PR #1058 by @tiangolo.
- π Update Termynal line-height. PR #1057 by @tiangolo.
- π· Upgrade build docs configs. PR #1047 by @tiangolo.
- π· Add alls-green for test-redistribute. PR #1055 by @tiangolo.
- π· Update docs-previews to handle no docs changes. PR #1056 by @tiangolo.
- π·π» Show docs deployment status and preview URLs in comment. PR #1054 by @tiangolo.
- π§ Enable auto dark mode. PR #1046 by @tiangolo.
- π· Update issue-manager. PR #1045 by @tiangolo.
- π· Update issue-manager.yml GitHub Action permissions. PR #1040 by @tiangolo.
- β»οΈ Refactor Deploy Docs GitHub Action to be a script and update token preparing for org. PR #1039 by @tiangolo.
0.0.21
Features
- β¨ Add support for cascade delete relationships:
cascade_delete
,ondelete
, andpassive_deletes
. Initial PR #983 by @estebanx64.- New docs at: Cascade Delete Relationships.
Docs
Internal
- β¬ Bump actions/cache from 3 to 4. PR #783 by @dependabot[bot].
- β¬ Bump cairosvg from 2.7.0 to 2.7.1. PR #919 by @dependabot[bot].
- β¬ Bump jinja2 from 3.1.3 to 3.1.4. PR #974 by @dependabot[bot].
- β¬ Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.9.0. PR #987 by @dependabot[bot].
- β¬ Bump mkdocstrings[python] from 0.23.0 to 0.25.1. PR #927 by @dependabot[bot].
- β¬ Bump dorny/paths-filter from 2 to 3. PR #972 by @dependabot[bot].
0.0.20
Features
- β¨ Add official UUID support, docs and tests, internally using new SQLAlchemy 2.0 types. Initial PR #992 by @estebanx64.
- New docs in the Advanced User Guide: UUID (Universally Unique Identifiers).
Docs
- βοΈ Fix internal link in
docs/tutorial/create-db-and-table.md
. PR #911 by @tfpgh. - βοΈ Add missing step in
create-db-and-table-with-db-browser.md
. PR #976 by @alejsdev. - βοΈ Fix typo in
docs/tutorial
. PR #943 by @luco17. - βοΈ Fix typo in
sqlmodel/_compat.py
. PR #950 by @Highfire1. - βοΈ Update pip installation command in tutorial. PR #975 by @alejsdev.
- βοΈ Fix typo in
docs/tutorial/relationship-attributes/index.md
. PR #880 by @UncleGoogle.
Internal
- β¬ [pre-commit.ci] pre-commit autoupdate. PR #979 by @pre-commit-ci[bot].
- π¨ Update docs Termynal scripts to not include line nums for local dev. PR #1018 by @tiangolo.
0.0.19
Fixes
- π Fix pydantic
EmailStr
support andmax_length
in several String subclasses. PR #966 by @estebanx64. - π Fix set varchar limit when
max_length
is set on Pydantic models using Pydantic v2. PR #963 by @estebanx64.
Refactors
- β»οΈ Refactor generate select template to isolate templated code to the minimum. PR #967 by @tiangolo.
Upgrades
- β¬οΈ Update minimum SQLAlchemy version to 2.0.14 as that one includes
TryCast
used internally. PR #964 by @tiangolo.
Docs
- βοΈ Fix broken link to
@dataclass_transform
(now PEP 681) indocs/features.md
. PR #753 by @soof-golan.
Internal
- β¬οΈ Upgrade Ruff and Black. PR #968 by @tiangolo.
- β¬ Bump tiangolo/issue-manager from 0.4.1 to 0.5.0. PR #922 by @dependabot[bot].
- π Pin typing-extensions in tests for compatiblity with Python 3.8, dirty-equals, Pydantic. PR #965 by @tiangolo.
- π· Update GitHub Actions to download and upload artifacts. PR #936 by @tiangolo.
- π· Tweak CI for test-redistribute, add needed env vars for slim. PR #929 by @tiangolo.
0.0.18
Internal
In the future SQLModel will include the standard default recommended packages, and sqlmodel-slim
will come without those recommended standard packages and with a group of optional dependencies sqlmodel-slim[standard]
, equivalent to sqlmodel
, for those that want to opt out of those packages.
0.0.17
Refactors
Docs
- π Update ModelRead to ModelPublic documentation and examples. PR #885 by @estebanx64.
- β¨ Add source examples for Python 3.10 and 3.9 with updated syntax. PR #842 by @tiangolo and @estebanx64.
Internal
- β¬ Bump actions/setup-python from 4 to 5. PR #733 by @dependabot[bot].
- π¨ Update internal scripts and remove unused ones. PR #914 by @tiangolo.
- π§ Migrate from Poetry to PDM for the internal build config. PR #912 by @tiangolo.
- π§ Update MkDocs, disable cards while I can upgrade to the latest MkDocs Material, that fixes an issue with social cards. PR #888 by @tiangolo.
- π· Add cron to run test once a week on monday. PR #869 by @estebanx64.
- β¬οΈ Upgrade Ruff version and configs. PR #859 by @tiangolo.
- π₯ Remove Jina QA Bot as it has been discontinued. PR #840 by @tiangolo.
0.0.16
Features
- β¨ Add new method
.sqlmodel_update()
to update models in place, including anupdate
parameter for extra data. And fix implementation for the (now documented)update
parameter for.model_validate()
. PR #804 by @tiangolo.- Updated docs: Update Data with FastAPI.
- New docs: Update with Extra Data (Hashed Passwords) with FastAPI.
0.0.15
Fixes
- π Fix class initialization compatibility with Pydantic and SQLModel, fixing errors revealed by the latest Pydantic. PR #807 by @tiangolo.
Internal
- β¬ Bump tiangolo/issue-manager from 0.4.0 to 0.4.1. PR #775 by @dependabot[bot].
- π· Fix GitHub Actions build docs filter paths for GitHub workflows. PR #738 by @tiangolo.