0.7.0
版本发布时间: 2024-08-03 03:53:27
fastapi/full-stack-fastapi-template最新发布版本:0.7.1(2024-09-27 21:31:04)
Lots of new things! 🎁
- E2E tests with Playwright.
- Mailcatcher configuration, to develop and test email handling.
- Pagination.
- UUIDs for database keys.
- New user sign up.
- Support for deploying to multiple environments (staging, prod).
- Many refactors and improvements.
- Several dependency upgrades.
Features
- ✨ Add User Settings e2e tests. PR #1271 by @alejsdev.
- ✨ Add Reset Password e2e tests. PR #1270 by @alejsdev.
- ✨ Add Sign Up e2e tests. PR #1268 by @alejsdev.
- ✨ Add Sign Up and make
OPEN_USER_REGISTRATION=True
by default. PR #1265 by @alejsdev. - ✨ Add Login e2e tests. PR #1264 by @alejsdev.
- ✨ Add initial setup for frontend / end-to-end tests with Playwright. PR #1261 by @alejsdev.
- ✨ Add mailcatcher configuration. PR #1244 by @patrick91.
- ✨ Introduce pagination in items. PR #1239 by @patrick91.
- 🗃️ Add max_length validation for database models and input data. PR #1233 by @estebanx64.
- ✨ Add TanStack React Query devtools in dev build. PR #1217 by @tomerb.
- ✨ Add support for deploying multiple environments (staging, production) to the same server. PR #1128 by @tiangolo.
- 👷 Update CI GitHub Actions to allow running in private repos. PR #1125 by @tiangolo.
Fixes
- 🐛 Fix welcome page to show logged-in user. PR #1218 by @tomerb.
- 🐛 Fix local Traefik proxy network config to fix Gateway Timeouts. PR #1184 by @JoelGotsch.
- ♻️ Fix tests when first superuser password is changed in .env. PR #1165 by @billzhong.
- 🐛 Fix bug when resetting password. PR #1171 by @alejsdev.
- 🐛 Fix 403 when the frontend has a directory without an index.html. PR #1094 by @tiangolo.
Refactors
- 🚨 Fix Docker build warning. PR #1283 by @erip.
- ♻️ Regenerate client to use UUID instead of id integers and update frontend. PR #1281 by @rehanabdul.
- ♻️ Tweaks in frontend. PR #1273 by @alejsdev.
- ♻️ Add random password util and refactor tests. PR #1277 by @alejsdev.
- ♻️ Refactor models to use cascade delete relationships . PR #1276 by @alejsdev.
- 🔥 Remove
USERS_OPEN_REGISTRATION
config, make registration enabled by default. PR #1274 by @alejsdev. - 🔧 Reuse database url from config in alembic setup. PR #1229 by @patrick91.
- 🔧 Update Playwright config and tests to use env variables. PR #1266 by @alejsdev.
- ♻️ Edit refactor db models to use UUID's instead of integer ID's. PR #1259 by @estebanx64.
- ♻️ Update form inputs width. PR #1263 by @alejsdev.
- ♻️ Replace deprecated utcnow() with now(timezone.utc) in utils module. PR #1247 by @jalvarezz13.
- 🎨 Format frontend. PR #1262 by @alejsdev.
- ♻️ Abstraction of specific AddModal component out of the Navbar. PR #1246 by @ajbloureiro.
- ♻️ Update
login.tsx
to prevent error if username or password are empty. PR #1257 by @jmondaud. - ♻️ Refactor recover password. PR #1242 by @alejsdev.
- 🎨 Format and lint . PR #1243 by @alejsdev.
- 🎨 Run biome after OpenAPI client generation. PR #1226 by @tomerb.
- ♻️ Update DeleteConfirmation component to use new service. PR #1224 by @alejsdev.
- ♻️ Update client services. PR #1223 by @alejsdev.
- ⚒️ Add minor frontend tweaks. PR #1210 by @alejsdev.
- 🚚 Move assets to public folder. PR #1206 by @alejsdev.
- ♻️ Refactor redirect labels to simplify removing the frontend. PR #1208 by @tiangolo.
- 🔒️ Refactor migrate from python-jose to PyJWT. PR #1203 by @estebanx64.
- 🔥 Remove duplicated code. PR #1185 by @alejsdev.
- ♻️ Add delete_user_me endpoint and corresponding test cases. PR #1179 by @alejsdev.
- ✅ Update test to add verification database records. PR #1178 by @estebanx64.
- 🚸 Use
useSuspenseQuery
to fetch members and show skeleton. PR #1174 by @patrick91. - 🎨 Format Utils. PR #1173 by @alejsdev.
- ✨ Use suspense for items page. PR #1167 by @patrick91.
- 🚸 Mark login field as required. PR #1166 by @patrick91.
- 🚸 Improve login. PR #1163 by @patrick91.
- 🥅 Handle AxiosErrors in Login page. PR #1162 by @patrick91.
- 🎨 Format frontend. PR #1161 by @alejsdev.
- ♻️ Regenerate frontend client. PR #1156 by @alejsdev.
- ♻️ Refactor rename ModelsOut to ModelsPublic. PR #1154 by @estebanx64.
- ♻️ Migrate frontend client generation from
openapi-typescript-codegen
to@hey-api/openapi-ts
. PR #1151 by @alejsdev. - 🔥 Remove unused exports and update dependencies. PR #1146 by @alejsdev.
- 🔧 Update sentry dns initialization following the environment settings. PR #1145 by @estebanx64.
- ♻️ Refactor and tweaks, rename
UserCreateOpen
toUserRegister
and others. PR #1143 by @alejsdev. - 🎨 Format imports. PR #1140 by @alejsdev.
- ♻️ Refactor and remove
React.FC
. PR #1139 by @alejsdev. - ♻️ Add email pattern and refactor in frontend. PR #1138 by @alejsdev.
- 🥅 Set up Sentry for FastAPI applications. PR #1136 by @estebanx64.
- 🔥 Remove deprecated Docker Compose version key. PR #1129 by @tiangolo.
- 🎨 Format with Biome . PR #1097 by @alejsdev.
- 🎨 Update quote style in biome formatter. PR #1095 by @alejsdev.
- ♻️ Replace ESLint and Prettier with Biome to format and lint frontend. PR #719 by @santigandolfo.
- 🎨 Replace buttons styling for variants for consistency. PR #722 by @alejsdev.
- 🛠️ Improve
modify-openapi-operationids.js
. PR #720 by @alejsdev. - ♻️ Replace pytest-mock with unittest.mock and remove pytest-cov. PR #717 by @estebanx64.
- 🛠️ Minor changes in frontend. PR #715 by @alejsdev.
- ♻ Update Docker image to prevent errors in M1 Macs. PR #710 by @dudil.
- ✏ Fix typo in variable names in
backend/app/api/routes/items.py
andbackend/app/api/routes/users.py
. PR #711 by @disrupted.
Upgrades
- ⬆️ Update SQLModel to version
>=0.0.21
. PR #1275 by @alejsdev. - ⬆️ Upgrade Traefik. PR #1241 by @tiangolo.
- ⬆️ Bump requests from 2.31.0 to 2.32.0 in /backend. PR #1211 by @dependabot[bot].
- ⬆️ Bump jinja2 from 3.1.3 to 3.1.4 in /backend. PR #1196 by @dependabot[bot].
- Bump gunicorn from 21.2.0 to 22.0.0 in /backend. PR #1176 by @dependabot[bot].
- Bump idna from 3.6 to 3.7 in /backend. PR #1168 by @dependabot[bot].
- 🆙 Update React Query to TanStack Query. PR #1153 by @patrick91.
- Bump vite from 5.0.12 to 5.0.13 in /frontend. PR #1149 by @dependabot[bot].
- Bump follow-redirects from 1.15.5 to 1.15.6 in /frontend. PR #734 by @dependabot[bot].
Docs
- 📝 Update links from tiangolo repo to fastapi org repo. PR #1285 by @tiangolo.
- 📝 Add End-to-End Testing with Playwright to frontend
README.md
. PR #1279 by @alejsdev. - 📝 Update release-notes.md. PR #1220 by @alejsdev.
- ✏️ Update
README.md
. PR #1205 by @Craz1k0ek. - ✏️ Fix Adminer URL in
deployment.md
. PR #1194 by @PhilippWu. - 📝 Add
Enabling Open User Registration
to backend docs. PR #1191 by @alejsdev. - 📝 Update release-notes.md. PR #1164 by @alejsdev.
- 📝 Update
README.md
. PR #716 by @alejsdev. - 📝 Update instructions to clone for a private repo, including updates. PR #1127 by @tiangolo.
- 📝 Add docs about CI keys, LATEST_CHANGES and SMOKESHOW_AUTH_KEY. PR #1126 by @tiangolo.
- ✏️ Fix file path in
backend/README.md
when not wanting to use migrations. PR #1116 by @leonlowitzki. - 📝 Add documentation for pre-commit and code linting. PR #718 by @estebanx64.
- 📝 Fix localhost URLs in
development.md
. PR #1099 by @efonte. - ✏ Update header titles for consistency. PR #708 by @codesmith-emmy.
- 📝 Update
README.md
, dark mode screenshot position. PR #706 by @alejsdev.
Internal
- 🔧 Update deploy workflows to exclude the main repository. PR #1284 by @alejsdev.
- 👷 Update issue-manager.yml GitHub Action permissions. PR #1278 by @tiangolo.
- ⬆️ Bump setuptools from 69.1.1 to 70.0.0 in /backend. PR #1255 by @dependabot[bot].
- ⬆️ Bump certifi from 2024.2.2 to 2024.7.4 in /backend. PR #1250 by @dependabot[bot].
- ⬆️ Bump urllib3 from 2.2.1 to 2.2.2 in /backend. PR #1235 by @dependabot[bot].
- 🔧 Ignore
src/routeTree.gen.ts
in biome. PR #1175 by @patrick91. - 👷 Update Smokeshow download artifact GitHub Action. PR #1198 by @tiangolo.
- 🔧 Update Node.js version in
.nvmrc
. PR #1192 by @alejsdev. - 🔥 Remove ESLint and Prettier from pre-commit config. PR #1096 by @alejsdev.
- 🔧 Update mypy config to ignore .venv directories. PR #1155 by @tiangolo.
- 🚨 Enable
ARG001
to prevent unused arguments. PR #1152 by @patrick91. - 🔥 Remove isort configuration, since we use Ruff now. PR #1144 by @patrick91.
- 🔧 Update pre-commit config to exclude generated client folder. PR #1150 by @alejsdev.
- 🔧 Change
.nvmrc
format. PR #1148 by @patrick91. - 🎨 Ignore alembic from ruff lint and format. PR #1131 by @estebanx64.
- 🔧 Add GitHub templates for discussions and issues, and security policy. PR #1105 by @alejsdev.
- ⬆ Bump dawidd6/action-download-artifact from 3.1.2 to 3.1.4. PR #1103 by @dependabot[bot].
- 🔧 Add Biome to pre-commit config. PR #1098 by @alejsdev.
- 🔥 Delete leftover celery file. PR #727 by @dr-neptune.
- ⚙️ Update pre-commit config with Prettier and ESLint. PR #714 by @alejsdev.