Skip to content
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

chore(release)!: Version 3.0 #3364

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

chore(release)!: Version 3.0 #3364

wants to merge 18 commits into from

Commits on Jun 21, 2024

  1. docs!: update to v3 style (#3324)

    * Trigger documentation build
    
    * Trigger documentation build
    
    * docs: update to v3 style
    
    * docs: move some things to litestar.dev repo, change versioning, add environment tag
    
    * docs: update landing page
    
    * chore: update lockfile
    
    * chore: add AA upper constraint
    
    * fix(docs): re-colonize
    
    * docs: enable sphinx-togglebutton
    
    * docs: use current year var
    
    * deps: update deps
    
    * fix(docs): do not link __name__ for now
    
    * fix(docs): use correct link to page
    
    ---------
    
    Co-authored-by: Peter Schutt <[email protected]>
    2 people authored and provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    e5b01df View commit details
    Browse the repository at this point in the history
  2. refactor!: Remove deprecated StaticFileConfig (#3357)

    * Remove deprecated StaticFiles and StaticFilesConfig
    * remove special casing of static files app from handlers/router
    * remove outdated docs sections
    * Add what's new section
    * Rename tests for consistency
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    2d291d0 View commit details
    Browse the repository at this point in the history
  3. feat!: no implicit default for optional params (#3361)

    This PR changes behavior of parameters that are typed in a union with `None`. Prior behavior was to implicitly default their value to `None` if a value wasn't provided making an apparently non-optional parameter (i.e., no declared default) actually optional. Surprising behavior at best, dangerous at worst.
    
    New behavior is to throw a client error when a parameter without a default is not provided.
    peterschutt authored and provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    13c8827 View commit details
    Browse the repository at this point in the history
  4. refactor: removes deprecated OpenAPIController (#3360)

    * refactor: removes deprecated OpenAPIController
    
    This PR removes all deprecated elements of OpenAPIConfig and the OpenAPIController, removes any obsolete tests and refactors tests that were parametrized to test both OpenAPIController and the router-based approach.
    
    * docs: What's new entry
    
    * Update docs/usage/openapi/ui_plugins.rst
    
    Co-authored-by: Jacob Coffee <[email protected]>
    
    * Update litestar/openapi/config.py
    
    * fix: remove whitespace
    
    * fix: import table formatting
    
    (i hope)
    
    ---------
    
    Co-authored-by: Jacob Coffee <[email protected]>
    2 people authored and provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    7edb992 View commit details
    Browse the repository at this point in the history
  5. refactor!: Remove deprecated app param of `Response.to_asgi_respons…

    …e` (#3393)
    
    * Remove 'app' parameter from `.to_asgi_response`
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    bf35e0f View commit details
    Browse the repository at this point in the history
  6. refactor!: Remove deprecated utils (#3394)

    Remove the deprecated utility functions, `get_litestar_scope_state``, ``set_litestar_scope_state``, ``delete_litestar_scope_state``, and ``is_sync_or_async_generator``.
    peterschutt authored and provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    58389bf View commit details
    Browse the repository at this point in the history
  7. refactor(routing)!: Refactor routes and route handlers (#3386)

    * remove handler names
    * Remove option handler creation from HTTPRoute
    * Remove methods attribute from BaseRoute
    * Move kwargs model to handlers and creation to on_registration
    * Store kwargs model on handlers instead of routes
    * Simplify HTTPRoute route_handler_map creation
    * Simplify Router.route_handler_method_map
    * Relax typing of HTTPRoute
    * Move handling logic to route handlers
    * Remove scope_type
    * Don't pass route to HTTPRouteHandler during handling
    * Don't pass scope to handle methods
    * Resolve and establish connections in routes; Only pass connections to handlers
    
    ---------
    
    Co-authored-by: Jacob Coffee <[email protected]>
    Co-authored-by: Peter Schutt <[email protected]>
    3 people committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    b941c2c View commit details
    Browse the repository at this point in the history
  8. docs!: update to v3 style (#3324) (#3432)

    fix(docs): adjust build script
    JacobCoffee authored and provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    be571f1 View commit details
    Browse the repository at this point in the history
  9. Fix rebase issue

    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    d1a82ef View commit details
    Browse the repository at this point in the history
  10. Resolve merge conflicts

    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    d257b4f View commit details
    Browse the repository at this point in the history
  11. fix: Port CVE-2024-32982 path traversal fix to v3.0 (#3524)

    * Backport static files path traversal fix
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    46745e3 View commit details
    Browse the repository at this point in the history
  12. feat!: Make route handlers functional decorators (#3436)

    * make route handlers functional decorators
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    a4c6ff3 View commit details
    Browse the repository at this point in the history
  13. Fix merge artifact

    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    f17e373 View commit details
    Browse the repository at this point in the history
  14. test: Remove test for warnings when subclassing route handler decorat…

    …ors (#3529)
    
    Remove deprecated test
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    8910ceb View commit details
    Browse the repository at this point in the history
  15. fix merge artifacts

    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    96a28c6 View commit details
    Browse the repository at this point in the history
  16. fix(typing): "Fix" typing for Controller.as_router (#3571)

    ignore type error
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    a5018d3 View commit details
    Browse the repository at this point in the history
  17. feat!: Remove deprecated litestar.middleware.exceptions module and …

    …deprecated params of internal `ExceptionHandlerMiddleware` (#3435)
    
    * refactor!: Remove deprecated `app` param of `Response.to_asgi_response` (#3393)
    * Remove 'app' parameter from `.to_asgi_response`
    * Remove debug param
    * Remove exception_handlers param
    * Remove litestar.middleware.exceptions
    provinzkraut committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    20c0062 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    7de5a82 View commit details
    Browse the repository at this point in the history