Skip to content

Commit becee62

Browse files
committed
Merge branch 'main' into feat/ty
2 parents a1e581a + 50de524 commit becee62

File tree

7 files changed

+301
-228
lines changed

7 files changed

+301
-228
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ repos:
4141
entry: uv run ./scripts/generate_select.py
4242
files: ^scripts/generate_select\.py|sqlmodel/sql/_expression_select_gen\.py\.jinja2$
4343

44+
- id: add-release-date
45+
language: unsupported
46+
name: add date to latest release header
47+
entry: uv run python scripts/add_latest_release_date.py
48+
files: ^docs/release-notes\.md$
49+
pass_filenames: false
50+
4451
- id: generate-readme
4552
language: unsupported
4653
name: generate README.md from index.md

docs/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ That way, you can edit the documentation/source files and see the changes live.
9292

9393
/// tip
9494

95-
Alternatively, you can perform the same steps that scripts does manually.
95+
Alternatively, you can perform the same steps that the script does manually.
9696

97-
Go into the docs director at `docs/`:
97+
Go into the docs directory at `docs/`:
9898

9999
```console
100100
$ cd docs/

docs/release-notes.md

Lines changed: 49 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@
22

33
## Latest Changes
44

5+
### Internal
6+
7+
* ⬆ Bump ruff from 0.15.7 to 0.15.9. PR [#1847](https://github.com/fastapi/sqlmodel/pull/1847) by [@dependabot[bot]](https://github.com/apps/dependabot).
8+
* ⬆ Bump mypy from 1.19.1 to 1.20.0. PR [#1843](https://github.com/fastapi/sqlmodel/pull/1843) by [@dependabot[bot]](https://github.com/apps/dependabot).
9+
10+
## 0.0.38 (2026-04-02)
11+
512
### Fixes
613

14+
* 🐛 Fix type annotation in `SQLModel.__new__`, avoid explicitly returning `Any`. PR [#1846](https://github.com/fastapi/sqlmodel/pull/1846) by [@carljm](https://github.com/carljm).
715
* 🐛 Fix `tuple_` return type annotation. PR [#1639](https://github.com/fastapi/sqlmodel/pull/1639) by [@kakeruzoku](https://github.com/kakeruzoku).
816

917
### Docs
1018

19+
* ✏️ Fix typos in `contributing.md`. PR [#1842](https://github.com/fastapi/sqlmodel/pull/1842) by [@GopalGB](https://github.com/GopalGB).
1120
* 🔥 Remove outdated Python 3.9 tutorial file. PR [#1822](https://github.com/fastapi/sqlmodel/pull/1822) by [@svlandeg](https://github.com/svlandeg).
1221
* 📝 Fix ambiguous phrasing regarding `HeroPublicWithTeam` model. PR [#1678](https://github.com/fastapi/sqlmodel/pull/1678) by [@berkaykrc](https://github.com/berkaykrc).
1322
* 🔨 Handle external links `target=_blank` and CSS automatically in JS and CSS. PR [#1799](https://github.com/fastapi/sqlmodel/pull/1799) by [@tiangolo](https://github.com/tiangolo).
@@ -16,6 +25,9 @@
1625

1726
### Internal
1827

28+
* 🔨 Add pre-commit hook to ensure latest release header has date. PR [#1786](https://github.com/fastapi/sqlmodel/pull/1786) by [@YuriiMotov](https://github.com/YuriiMotov).
29+
* ⬆ Bump pillow from 12.1.1 to 12.2.0. PR [#1845](https://github.com/fastapi/sqlmodel/pull/1845) by [@dependabot[bot]](https://github.com/apps/dependabot).
30+
* ⬆ Bump fastapi from 0.135.2 to 0.135.3. PR [#1844](https://github.com/fastapi/sqlmodel/pull/1844) by [@dependabot[bot]](https://github.com/apps/dependabot).
1931
* ⬆ Bump prek from 0.3.6 to 0.3.8. PR [#1829](https://github.com/fastapi/sqlmodel/pull/1829) by [@dependabot[bot]](https://github.com/apps/dependabot).
2032
* ⬆ Bump pygithub from 2.8.1 to 2.9.0. PR [#1827](https://github.com/fastapi/sqlmodel/pull/1827) by [@dependabot[bot]](https://github.com/apps/dependabot).
2133
* ⬆ Bump fastapi from 0.135.1 to 0.135.2. PR [#1828](https://github.com/fastapi/sqlmodel/pull/1828) by [@dependabot[bot]](https://github.com/apps/dependabot).
@@ -56,19 +68,19 @@
5668
* ⬆ Bump fastapi from 0.128.8 to 0.129.0. PR [#1769](https://github.com/fastapi/sqlmodel/pull/1769) by [@dependabot[bot]](https://github.com/apps/dependabot).
5769
* ⬆ Bump black from 25.12.0 to 26.1.0. PR [#1768](https://github.com/fastapi/sqlmodel/pull/1768) by [@dependabot[bot]](https://github.com/apps/dependabot).
5870

59-
## 0.0.37
71+
## 0.0.37 (2026-02-21)
6072

6173
### Internal
6274

6375
* 👷 Fix build CI to not attempt to build `sqlmodel-slim`. PR [#1773](https://github.com/fastapi/sqlmodel/pull/1773) by [@tiangolo](https://github.com/tiangolo).
6476

65-
## 0.0.36
77+
## 0.0.36 (2026-02-21)
6678

6779
### Internal
6880

6981
* ➖ Drop support for `sqlmodel-slim`, no more versions will be released, use only `sqmodel`. PR [#1772](https://github.com/fastapi/sqlmodel/pull/1772) by [@tiangolo](https://github.com/tiangolo).
7082

71-
## 0.0.35
83+
## 0.0.35 (2026-02-20)
7284

7385
### Breaking Changes
7486

@@ -80,7 +92,7 @@
8092
* ⬆ Bump prek from 0.3.2 to 0.3.3. PR [#1761](https://github.com/fastapi/sqlmodel/pull/1761) by [@dependabot[bot]](https://github.com/apps/dependabot).
8193
* ⬆ Bump typer from 0.23.1 to 0.23.2. PR [#1760](https://github.com/fastapi/sqlmodel/pull/1760) by [@dependabot[bot]](https://github.com/apps/dependabot).
8294

83-
## 0.0.34
95+
## 0.0.34 (2026-02-16)
8496

8597
### Internal
8698

@@ -90,7 +102,7 @@
90102
* ⬆ Bump typer from 0.21.2 to 0.23.0. PR [#1756](https://github.com/fastapi/sqlmodel/pull/1756) by [@dependabot[bot]](https://github.com/apps/dependabot).
91103
* ⬆ Bump fastapi from 0.128.7 to 0.128.8. PR [#1755](https://github.com/fastapi/sqlmodel/pull/1755) by [@dependabot[bot]](https://github.com/apps/dependabot).
92104

93-
## 0.0.33
105+
## 0.0.33 (2026-02-11)
94106

95107
### Docs
96108

@@ -114,7 +126,7 @@
114126
* 👷 Run mypy by pre-commit. PR [#1738](https://github.com/fastapi/sqlmodel/pull/1738) by [@YuriiMotov](https://github.com/YuriiMotov).
115127
* ⬆ Bump prek from 0.3.0 to 0.3.1. PR [#1739](https://github.com/fastapi/sqlmodel/pull/1739) by [@dependabot[bot]](https://github.com/apps/dependabot).
116128

117-
## 0.0.32
129+
## 0.0.32 (2026-02-01)
118130

119131
### Fixes
120132

@@ -145,7 +157,7 @@
145157
* ⬆ Update fastapi requirement from >=0.103.2,<0.126.0 to >=0.103.2,<0.129.0. PR [#1703](https://github.com/fastapi/sqlmodel/pull/1703) by [@dependabot[bot]](https://github.com/apps/dependabot).
146158
* ✅ Update tests, remove conditionals for Pydantic v1. PR [#1702](https://github.com/fastapi/sqlmodel/pull/1702) by [@tiangolo](https://github.com/tiangolo).
147159

148-
## 0.0.31
160+
## 0.0.31 (2025-12-28)
149161

150162
### Breaking Changes
151163

@@ -158,7 +170,7 @@
158170
* ⬆ Bump typer from 0.20.1 to 0.21.0. PR [#1694](https://github.com/fastapi/sqlmodel/pull/1694) by [@dependabot[bot]](https://github.com/apps/dependabot).
159171
* 📌 Relax `prek` version pin to `>=0.2.24,<1.0.0`. PR [#1698](https://github.com/fastapi/sqlmodel/pull/1698) by [@YuriiMotov](https://github.com/YuriiMotov).
160172

161-
## 0.0.30
173+
## 0.0.30 (2025-12-26)
162174

163175
### Breaking Changes
164176

@@ -183,13 +195,13 @@
183195
* ⬆ Bump typer from 0.20.0 to 0.20.1. PR [#1685](https://github.com/fastapi/sqlmodel/pull/1685) by [@dependabot[bot]](https://github.com/apps/dependabot).
184196
* ⬆ Bump ruff from 0.14.8 to 0.14.10. PR [#1681](https://github.com/fastapi/sqlmodel/pull/1681) by [@dependabot[bot]](https://github.com/apps/dependabot).
185197

186-
## 0.0.29
198+
## 0.0.29 (2025-12-23)
187199

188200
### Fixes
189201

190202
* 🐛 Fix `alias` support for Pydantic v2. PR [#1577](https://github.com/fastapi/sqlmodel/pull/1577) by [@ravishan16](https://github.com/ravishan16).
191203

192-
## 0.0.28
204+
## 0.0.28 (2025-12-23)
193205

194206
### Fixes
195207

@@ -240,13 +252,13 @@
240252
* ⬆ Bump typer from 0.19.2 to 0.20.0. PR [#1612](https://github.com/fastapi/sqlmodel/pull/1612) by [@dependabot[bot]](https://github.com/apps/dependabot).
241253
* ✅ Remove unused type ignores since SQLAlchemy 2.0.44. PR [#1613](https://github.com/fastapi/sqlmodel/pull/1613) by [@svlandeg](https://github.com/svlandeg).
242254

243-
## 0.0.27
255+
## 0.0.27 (2025-10-08)
244256

245257
### Upgrades
246258

247259
* ⬆️ Add support for Python 3.14. PR [#1578](https://github.com/fastapi/sqlmodel/pull/1578) by [@svlandeg](https://github.com/svlandeg).
248260

249-
## 0.0.26
261+
## 0.0.26 (2025-10-08)
250262

251263
### Fixes
252264

@@ -272,7 +284,7 @@
272284
* ⬆ Bump ruff from 0.13.0 to 0.13.2. PR [#1576](https://github.com/fastapi/sqlmodel/pull/1576) by [@dependabot[bot]](https://github.com/apps/dependabot).
273285
* 💚 Fix CI test suite for Windows and MacOS. PR [#1307](https://github.com/fastapi/sqlmodel/pull/1307) by [@svlandeg](https://github.com/svlandeg).
274286

275-
## 0.0.25
287+
## 0.0.25 (2025-09-17)
276288

277289
### Features
278290

@@ -360,7 +372,7 @@
360372
* ⬆ Bump jinja2 from 3.1.4 to 3.1.6. PR [#1317](https://github.com/fastapi/sqlmodel/pull/1317) by [@dependabot[bot]](https://github.com/apps/dependabot).
361373
*[pre-commit.ci] pre-commit autoupdate. PR [#1319](https://github.com/fastapi/sqlmodel/pull/1319) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
362374

363-
## 0.0.24
375+
## 0.0.24 (2025-03-07)
364376

365377
### Upgrades
366378

@@ -371,7 +383,7 @@
371383
*[pre-commit.ci] pre-commit autoupdate. PR [#1114](https://github.com/fastapi/sqlmodel/pull/1114) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
372384
* ⬆ Bump ruff from 0.6.2 to 0.9.6. PR [#1294](https://github.com/fastapi/sqlmodel/pull/1294) by [@dependabot[bot]](https://github.com/apps/dependabot).
373385

374-
## 0.0.23
386+
## 0.0.23 (2025-02-28)
375387

376388
### Fixes
377389

@@ -429,7 +441,7 @@
429441
* 💚 Set `include-hidden-files` to `True` when using the `upload-artifact` GH action. PR [#1098](https://github.com/fastapi/sqlmodel/pull/1098) by [@svlandeg](https://github.com/svlandeg).
430442
*[pre-commit.ci] pre-commit autoupdate. PR [#1088](https://github.com/fastapi/sqlmodel/pull/1088) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
431443

432-
## 0.0.22
444+
## 0.0.22 (2024-08-31)
433445

434446
### Fixes
435447

@@ -475,7 +487,7 @@
475487
* 👷 Update issue-manager.yml GitHub Action permissions. PR [#1040](https://github.com/tiangolo/sqlmodel/pull/1040) by [@tiangolo](https://github.com/tiangolo).
476488
* ♻️ Refactor Deploy Docs GitHub Action to be a script and update token preparing for org. PR [#1039](https://github.com/tiangolo/sqlmodel/pull/1039) by [@tiangolo](https://github.com/tiangolo).
477489

478-
## 0.0.21
490+
## 0.0.21 (2024-07-21)
479491

480492
### Features
481493

@@ -495,7 +507,7 @@
495507
* ⬆ Bump mkdocstrings[python] from 0.23.0 to 0.25.1. PR [#927](https://github.com/tiangolo/sqlmodel/pull/927) by [@dependabot[bot]](https://github.com/apps/dependabot).
496508
* ⬆ Bump dorny/paths-filter from 2 to 3. PR [#972](https://github.com/tiangolo/sqlmodel/pull/972) by [@dependabot[bot]](https://github.com/apps/dependabot).
497509

498-
## 0.0.20
510+
## 0.0.20 (2024-07-17)
499511

500512
### Features
501513

@@ -516,7 +528,7 @@
516528
*[pre-commit.ci] pre-commit autoupdate. PR [#979](https://github.com/tiangolo/sqlmodel/pull/979) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
517529
* 🔨 Update docs Termynal scripts to not include line nums for local dev. PR [#1018](https://github.com/tiangolo/sqlmodel/pull/1018) by [@tiangolo](https://github.com/tiangolo).
518530

519-
## 0.0.19
531+
## 0.0.19 (2024-06-04)
520532

521533
### Fixes
522534

@@ -543,7 +555,7 @@
543555
* 👷 Update GitHub Actions to download and upload artifacts. PR [#936](https://github.com/tiangolo/sqlmodel/pull/936) by [@tiangolo](https://github.com/tiangolo).
544556
* 👷 Tweak CI for test-redistribute, add needed env vars for slim. PR [#929](https://github.com/tiangolo/sqlmodel/pull/929) by [@tiangolo](https://github.com/tiangolo).
545557

546-
## 0.0.18
558+
## 0.0.18 (2024-04-30)
547559

548560
### Internal
549561

@@ -553,7 +565,7 @@ In the future SQLModel will include the standard default recommended packages, a
553565

554566
* 🔧 Re-enable MkDocs Material Social plugin. PR [#915](https://github.com/tiangolo/sqlmodel/pull/915) by [@tiangolo](https://github.com/tiangolo).
555567

556-
## 0.0.17
568+
## 0.0.17 (2024-04-29)
557569

558570
### Refactors
559571

@@ -574,15 +586,15 @@ In the future SQLModel will include the standard default recommended packages, a
574586
* ⬆️ Upgrade Ruff version and configs. PR [#859](https://github.com/tiangolo/sqlmodel/pull/859) by [@tiangolo](https://github.com/tiangolo).
575587
* 🔥 Remove Jina QA Bot as it has been discontinued. PR [#840](https://github.com/tiangolo/sqlmodel/pull/840) by [@tiangolo](https://github.com/tiangolo).
576588

577-
## 0.0.16
589+
## 0.0.16 (2024-02-17)
578590

579591
### Features
580592

581593
* ✨ Add new method `.sqlmodel_update()` to update models in place, including an `update` parameter for extra data. And fix implementation for the (now documented) `update` parameter for `.model_validate()`. PR [#804](https://github.com/tiangolo/sqlmodel/pull/804) by [@tiangolo](https://github.com/tiangolo).
582594
* Updated docs: [Update Data with FastAPI](https://sqlmodel.tiangolo.com/tutorial/fastapi/update/).
583595
* New docs: [Update with Extra Data (Hashed Passwords) with FastAPI](https://sqlmodel.tiangolo.com/tutorial/fastapi/update-extra-data/).
584596

585-
## 0.0.15
597+
## 0.0.15 (2024-02-17)
586598

587599
### Fixes
588600

@@ -593,13 +605,13 @@ In the future SQLModel will include the standard default recommended packages, a
593605
* ⬆ Bump tiangolo/issue-manager from 0.4.0 to 0.4.1. PR [#775](https://github.com/tiangolo/sqlmodel/pull/775) by [@dependabot[bot]](https://github.com/apps/dependabot).
594606
* 👷 Fix GitHub Actions build docs filter paths for GitHub workflows. PR [#738](https://github.com/tiangolo/sqlmodel/pull/738) by [@tiangolo](https://github.com/tiangolo).
595607

596-
## 0.0.14
608+
## 0.0.14 (2023-12-04)
597609

598610
### Features
599611

600612
* ✨ Add support for Pydantic v2 (while keeping support for v1 if v2 is not available). PR [#722](https://github.com/tiangolo/sqlmodel/pull/722) by [@tiangolo](https://github.com/tiangolo) including initial work in PR [#699](https://github.com/tiangolo/sqlmodel/pull/699) by [@AntonDeMeester](https://github.com/AntonDeMeester).
601613

602-
## 0.0.13
614+
## 0.0.13 (2023-12-04)
603615

604616
### Fixes
605617

@@ -629,7 +641,7 @@ In the future SQLModel will include the standard default recommended packages, a
629641
* 🔧 Show line numbers in docs during local development. PR [#714](https://github.com/tiangolo/sqlmodel/pull/714) by [@tiangolo](https://github.com/tiangolo).
630642
* 📝 Update details syntax with new pymdown extensions format. PR [#713](https://github.com/tiangolo/sqlmodel/pull/713) by [@tiangolo](https://github.com/tiangolo).
631643

632-
## 0.0.12
644+
## 0.0.12 (2023-11-18)
633645

634646
### Features
635647

@@ -640,7 +652,7 @@ In the future SQLModel will include the standard default recommended packages, a
640652
*[pre-commit.ci] pre-commit autoupdate. PR [#686](https://github.com/tiangolo/sqlmodel/pull/686) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
641653
* 👷 Upgrade latest-changes GitHub Action. PR [#693](https://github.com/tiangolo/sqlmodel/pull/693) by [@tiangolo](https://github.com/tiangolo).
642654

643-
## 0.0.11
655+
## 0.0.11 (2023-10-29)
644656

645657
### Features
646658

@@ -660,7 +672,7 @@ In the future SQLModel will include the standard default recommended packages, a
660672
* ⬆ Update black requirement from ^22.10.0 to >=22.10,<24.0. PR [#664](https://github.com/tiangolo/sqlmodel/pull/664) by [@dependabot[bot]](https://github.com/apps/dependabot).
661673
* 👷 Update CI to build MkDocs Insiders only when the secrets are available, for Dependabot. PR [#683](https://github.com/tiangolo/sqlmodel/pull/683) by [@tiangolo](https://github.com/tiangolo).
662674

663-
## 0.0.10
675+
## 0.0.10 (2023-10-26)
664676

665677
### Features
666678

@@ -670,7 +682,7 @@ In the future SQLModel will include the standard default recommended packages, a
670682

671683
* 🔧 Adopt Ruff for formatting. PR [#679](https://github.com/tiangolo/sqlmodel/pull/679) by [@tiangolo](https://github.com/tiangolo).
672684

673-
## 0.0.9
685+
## 0.0.9 (2023-10-23)
674686

675687
### Breaking Changes
676688

@@ -748,7 +760,7 @@ In the future SQLModel will include the standard default recommended packages, a
748760
* ⬆ Bump dawidd6/action-download-artifact from 2.9.0 to 2.24.0. PR [#470](https://github.com/tiangolo/sqlmodel/pull/470) by [@dependabot[bot]](https://github.com/apps/dependabot).
749761
* 👷 Update Dependabot config. PR [#484](https://github.com/tiangolo/sqlmodel/pull/484) by [@tiangolo](https://github.com/tiangolo).
750762

751-
## 0.0.8
763+
## 0.0.8 (2022-08-30)
752764

753765
### Fixes
754766

@@ -760,7 +772,7 @@ In the future SQLModel will include the standard default recommended packages, a
760772
* 📝 Adjust and clarify docs for `docs/tutorial/create-db-and-table.md`. PR [#426](https://github.com/tiangolo/sqlmodel/pull/426) by [@tiangolo](https://github.com/tiangolo).
761773
* ✏ Fix typo in `docs/tutorial/connect/remove-data-connections.md`. PR [#421](https://github.com/tiangolo/sqlmodel/pull/421) by [@VerdantFox](https://github.com/VerdantFox).
762774

763-
## 0.0.7
775+
## 0.0.7 (2022-08-28)
764776

765777
### Features
766778

@@ -824,7 +836,7 @@ In the future SQLModel will include the standard default recommended packages, a
824836
* 🔧 Upgrade MkDocs Material and update configs. PR [#217](https://github.com/tiangolo/sqlmodel/pull/217) by [@tiangolo](https://github.com/tiangolo).
825837
* ⬆ Upgrade mypy, fix type annotations. PR [#218](https://github.com/tiangolo/sqlmodel/pull/218) by [@tiangolo](https://github.com/tiangolo).
826838

827-
## 0.0.6
839+
## 0.0.6 (2021-12-28)
828840

829841
### Breaking Changes
830842

@@ -895,7 +907,7 @@ Here's the new, extensive documentation explaining indexes and how to use them:
895907
* ✏ Fix typo in `docs/tutorial/automatic-id-none-refresh.md`. PR [#14](https://github.com/tiangolo/sqlmodel/pull/14) by [@leynier](https://github.com/leynier).
896908
* ✏ Fix typos in `docs/tutorial/index.md` and `docs/databases.md`. PR [#5](https://github.com/tiangolo/sqlmodel/pull/5) by [@sebastianmarines](https://github.com/sebastianmarines).
897909

898-
## 0.0.5
910+
## 0.0.5 (2021-12-13)
899911

900912
### Features
901913

@@ -913,19 +925,19 @@ Here's the new, extensive documentation explaining indexes and how to use them:
913925
* 🔧 Add MkDocs Material social cards. PR [#90](https://github.com/tiangolo/sqlmodel/pull/90) by [@tiangolo](https://github.com/tiangolo).
914926
* ✨ Update type annotations and upgrade mypy. PR [#173](https://github.com/tiangolo/sqlmodel/pull/173) by [@tiangolo](https://github.com/tiangolo).
915927

916-
## 0.0.4
928+
## 0.0.4 (2021-08-25)
917929

918930
* 🎨 Fix type detection of select results in PyCharm. PR [#15](https://github.com/tiangolo/sqlmodel/pull/15) by [@tiangolo](https://github.com/tiangolo).
919931

920-
## 0.0.3
932+
## 0.0.3 (2021-08-24)
921933

922934
* ⬆️ Update and relax specification range for `sqlalchemy-stubs`. PR [#4](https://github.com/tiangolo/sqlmodel/pull/4) by [@tiangolo](https://github.com/tiangolo).
923935

924-
## 0.0.2
936+
## 0.0.2 (2021-08-24)
925937

926938
* This includes several small bug fixes detected during the first CI runs.
927939
* 💚 Fix CI installs and tests. PR [#2](https://github.com/tiangolo/sqlmodel/pull/2) by [@tiangolo](https://github.com/tiangolo).
928940

929-
## 0.0.1
941+
## 0.0.1 (2021-08-24)
930942

931943
* First release. 🎉

0 commit comments

Comments
 (0)