-
-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.0.0 #1888
Version 1.0.0 #1888
Conversation
0ad917c
to
c7d5364
Compare
This is good news! Here are my thoughts about deprecation. As Starlette goes 1.0 then it is a good time to drop all deprecated stuff and apply breaking changes. If this is too risky at this moment, then I would advise rolling out a few more 0.xx releases with deprecation warnings and then release 1.0 by the end of the year. |
We may want to get back to #1803 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Exciting! I just have a couple of minor comments.
Another thing to have in mind that might be worth deprecating and can create some strange behaviors/issues now: There are not many cases where this is a problem, but it is in some, for example when dealing with Prometheus, that expects that an object is created and registered only once. I was chatting with @Kludex and he pointed me to that discussion, so, mentioning it here as well. |
I also agree on what @alex-oleshkevich (if I got what you said right) and @tiangolo said about the deprecation. The plan changes a bit then, we should include the deprecation warnings on the next release ( Then, on this PR, we remove all the deprecation warnings - Let's not have any pendency on our stable release. Conceptually, it makes more sense to do this. |
Last night I remembered a couple of extra things I had pending and probably worth discussing here. Closing
|
Thank you for bringing that up Sebastián. I've wanted to fix that for a while (I wrote the implementation at one point) but it required some minor breaking changes (I think it had to do with what errors are raised). If we want to make the change I'm happy to make the PR. |
97eb17a
to
9ab3b84
Compare
With respect to UploadFile: can you add the .close() to the AsyncExitStack for dependencies? It works in Xpresso: https://github.com/adriangb/xpresso/blob/ae1586513b8ee48bfe9a8fdb2e7cc7038c37053d/xpresso/binders/_binders/file_body.py#L76 |
275b3e3
to
24afd4a
Compare
|
Let’s add #2068 |
I'm going to review both (which I also invite others to review):
After a decision is made there, let's release the last zero version release, then wait some weeks, and then prepare for 1.0 with: Comments, feedback, or anything that you want to include before 1.0, please feel free to talk cc @encode/maintainers |
d20b80b
to
04bb396
Compare
I'm just here to write a thank you to all the people here supporting Often open source is thankless and while I may be a random person on the internet you don't know, know I'm a person out there like you, typing away as part of a living supporting my family via a career in programming. Using (this includes Thank you. Really. My job wouldn't be nearly as sane without all the of the great work y'all have already done, both in implementation and documentation. |
@BrettMoan Thank you for saying it. Much appreciated! ❤️ |
Let's go to #2384. I've cleaned the branch. There were too many conflicts, I thought it would be easier to create a new one. |
Description
This PR bumps Starlette to 1.0.0. 🎉
Changes
docs/deprecation.md
).DeprecateBaseHTTPMiddleware
.Deprecate decorator functions in theRouter
method, which were discouraged for some time.Blockers
A blocker is PR or idea that can potentially make us jump to 2.0.0 too fast. If you see one around, please comment.
UploadFile
PRs:Request.url_for
or related PRs:url_for
signature to return aURL
instance #1385Missing
Starlette
- I've only deprecated onRouter
until now.Questions
lifespan
warnings? Is that part of the code supposed to be removed?allow_redirects
deprecation? It was recently added.How to review this PR?
warnings.warn
in code.Deprecation Policy
section using./scripts/docs serve
.