Marcelo Trylesinski
a5b008838f
Version 0.26.0 ( #2071 )
...
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2023-03-09 23:06:30 +00:00
Marcelo Trylesinski
cc20c8606e
Deprecate `on_startup` and `on_shutdown` events ( #2070 )
...
* Revert "Support lifespan state (#2060 )"
This reverts commit da6461b239
.
* new implementation
* Deprecate `on_startup` and `on_shutdown` events
* Rename `events.md` by `lifespan.md`
---------
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2023-03-09 23:30:28 +01:00
Adrian Garcia Badaracco
92ab71ecb0
Allow returning a State object from lifespans instead of accepting a dict as an argument ( #2065 )
2023-03-09 14:04:12 -06:00
Marcelo Trylesinski
b3add7e7ac
Allow "name" argument on `url_for()` and `url_path_for()` ( #2050 )
...
Co-authored-by: Daniel <709115+dansan@users.noreply.github.com>
2023-03-06 09:00:00 +00:00
Marcelo Trylesinski
5472c4454e
Document Lifespan state ( #2064 )
...
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2023-03-05 17:32:50 +00:00
Amin Alaee
b2f25e5bc3
Change `url_for` signature to return a `URL` instance ( #1385 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-03-05 16:04:51 +01:00
Marcelo Trylesinski
da6461b239
Support lifespan state ( #2060 )
...
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2023-03-05 15:49:07 +01:00
dependabot[bot]
e594de7748
Bump mkdocs-material from 8.5.7 to 9.0.15 ( #2053 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 19:03:02 +01:00
dependabot[bot]
4fdfad20ab
Bump pytest from 7.2.0 to 7.2.1 ( #2051 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 21:22:19 +01:00
dependabot[bot]
986aad9dd3
Bump types-contextvars from 2.4.7 to 2.4.7.1 ( #2054 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 21:19:25 +01:00
dependabot[bot]
bb121e0e5c
Bump mypy from 0.991 to 1.0.1 ( #2055 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 21:16:04 +01:00
dependabot[bot]
01d34ff2ce
Bump build from 0.9.0 to 0.10.0 ( #2052 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 21:10:13 +01:00
migduroli
117562a457
Update Flama description in third-party-packages ( #2049 )
2023-03-01 07:17:34 +01:00
Magnus Watn
f9cfc2dcf0
Update link to jinja2 ( #2043 )
...
The old link doesn't support https, which makes it not work for
https-only users, and it only redirects to this one anyway.
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-02-20 11:14:47 +00:00
François Voron
f5b9acf02d
Docs: Remove SentryMiddleware from third-party list ( #2044 )
2023-02-20 12:11:54 +01:00
Marcelo Trylesinski
fc480890fe
Version 0.25.0 ( #2035 )
2023-02-14 09:06:03 +00:00
Sebastián Ramírez
bb4d8f9d68
🐛 Close all the multipart files on error ( #2036 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-02-14 09:03:29 +00:00
Sebastián Ramírez
8c74c2c8db
Merge pull request from GHSA-74m5-2c7w-9w3x
...
* ♻️ Refactor multipart parser logic to support limiting max fields and files
* ✨ Add support for new request.form() parameters max_files and max_fields
* ✅ Add tests for limiting max fields and files in form data
* 📝 Add docs about request.form() with new parameters max_files and max_fields
* 📝 Update `docs/requests.md`
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* 📝 Tweak docs for request.form()
* ✏ Fix typo in `starlette/formparsers.py`
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
---------
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
2023-02-14 09:01:32 +01:00
kraptor
5771a78c14
Fix test not passing in 32-bit architectures ( #2033 )
...
Some architectures cannot hold values after
2038 year.
This commit fixes the following tests, adjusting
the expiring date for the cookies to a maximum
year value of 2037:
* test_set_cookie
* test_expires_on_set_cookie
2023-02-11 15:24:57 +01:00
Rafał Pitoń
337ae243b1
Document that UploadFile's `filename` and `content_type` can be `None` ( #2029 )
2023-02-08 13:20:19 +08:00
Marcelo Trylesinski
218a6b4f98
Version 0.24.0 ( #1983 )
2023-02-06 17:01:14 +01:00
Rafał Pitoń
e05b632c56
Feature: Add size attribute to UploadFile ( #1405 )
2023-02-06 12:02:29 +00:00
Adrian Garcia Badaracco
c568b55dff
allow using Request.form() as a context manager ( #1903 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-02-06 05:58:21 +00:00
oskipa
0a63a6e586
Support `str` and `datetime` on `expires` parameter on the `set_cookie` method ( #1908 )
...
Co-authored-by: Hugo Estrada <hugoestrada@cal.berkeley.edu>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2023-02-06 05:45:30 +00:00
Kousik Mitra
94a22b865e
Fix url parsing of ipv6 urls on `URL.replace` ( #1965 )
...
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2023-02-06 05:41:54 +00:00
Adrian Garcia Badaracco
51c1de1839
Lazily build middleware stack ( #2017 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-02-06 05:35:09 +00:00
Marcelo Trylesinski
ca1711fab7
Support Debug extension ( #1991 )
2023-02-06 06:31:48 +01:00
Adrian Garcia Badaracco
3697c8db7d
Make the file argument to UploadFile required ( #1413 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-02-04 17:55:25 +00:00
Amin Alaee
ea2e7942fc
Allow StaticFiles follow symlinks ( #1683 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-02-04 18:22:36 +01:00
dependabot[bot]
ea70fd57b2
Bump types-pyyaml from 6.0.12.2 to 6.0.12.3 ( #2023 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 20:25:21 +01:00
dependabot[bot]
dba884af86
Bump coverage from 7.0.1 to 7.1.0 ( #2025 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 20:20:04 +01:00
Alex Oleshkevich
7822568378
Add Config.env_prefix option ( #1990 )
...
* add Config.env_prefix option
* fix variable name in docs
* simplify test case
* rollback markdown formatting
* Update docs/config.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-01-23 00:24:35 +03:00
Tochukwu
01f9975697
Add Ellar to third-party packages ( #2015 )
2023-01-22 09:05:39 +01:00
Marcelo Trylesinski
9450edf282
Document iter methods for WebSockets ( #2011 )
2023-01-18 16:16:20 +01:00
Tiago Silva
33f46a1362
➕ Esmerald to third party packages. ( #2008 )
...
Co-authored-by: Tiago A. Silva <tiago.arasilva@outlook.com>
2023-01-13 16:34:45 +01:00
dependabot[bot]
048643adc2
Bump twine from 4.0.1 to 4.0.2 ( #1996 )
...
Bumps [twine](https://github.com/pypa/twine ) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/4.0.1...4.0.2 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 21:13:12 +01:00
dependabot[bot]
099b41346a
Bump build from 0.8.0 to 0.9.0 ( #1992 )
...
Bumps [build](https://github.com/pypa/build ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/pypa/build/releases )
- [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/build/compare/0.8.0...0.9.0 )
---
updated-dependencies:
- dependency-name: build
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 21:09:37 +01:00
dependabot[bot]
0a0b89fd5c
Bump coverage from 6.5.0 to 7.0.1 ( #1994 )
...
Bumps [coverage](https://github.com/nedbat/coveragepy ) from 6.5.0 to 7.0.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases )
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst )
- [Commits](https://github.com/nedbat/coveragepy/compare/6.5.0...7.0.1 )
---
updated-dependencies:
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 21:06:22 +01:00
dependabot[bot]
32b2c845bb
Bump black from 22.10.0 to 22.12.0 ( #1995 )
...
Bumps [black](https://github.com/psf/black ) from 22.10.0 to 22.12.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/22.10.0...22.12.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-01 20:56:48 +01:00
Alex Oleshkevich
008e3a51c5
Add template context processors. ( #1904 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-12-29 17:41:41 +03:00
Marcelo Trylesinski
fabceb844f
Delete setup.py ( #1989 )
2022-12-29 15:13:02 +01:00
Marcelo Trylesinski
eb76552d53
Add import statement on "Testing template responses" section ( #1986 )
2022-12-25 19:25:51 +01:00
Marcelo Trylesinski
d755851502
Version 0.23.1 ( #1978 )
2022-12-09 15:45:37 +01:00
Marcelo Trylesinski
9ae4ee5f17
Only stop receiving stream on `body_stream` if body is empty ( #1940 )
2022-12-08 09:18:50 +01:00
Marcelo Trylesinski
035afb3144
Version 0.23.0 ( #1974 )
2022-12-05 13:35:37 +01:00
Marcelo Trylesinski
865efebac9
Fix `FloatConvertor` regex ( #1973 )
...
* Bugfix of regex at FloatConvertor (version 2)
For passing your checks of https://github.com/encode/starlette/pull/1942
A correct statement is: regex = r"[0-9]+(\.[0-9]+)?"
Reference: https://www.flake8rules.com/rules/W605.html
I have no problem to corrected without 'r' prefix directly at /site-packages/starlette/convertors.py of my computer.
Having submitted last pull-request, I realized to add a 'r' prefix to pass your tests.
* Add test
Co-authored-by: Ching <thus.kindly@gmail.com>
2022-12-03 12:16:16 +01:00
Marcelo Trylesinski
fd1e91a8de
Deprecate `Starlette` and `Router` decorators ( #1897 )
2022-12-03 08:54:08 +01:00
Roy Pasternak
b77a41db62
Test client init to support headers argument ( #1966 )
...
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Roy Pasternak <roy@larium.co>
Co-authored-by: Roy Pasternak <roy-pstr>
2022-12-03 08:40:48 +01:00
dependabot[bot]
04d8fcbdae
Bump mkdocs from 1.4.0 to 1.4.2 ( #1971 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 23:07:48 +01:00
dependabot[bot]
c3d0c3aa0b
Bump black from 22.8.0 to 22.10.0 ( #1969 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 22:56:18 +01:00