rsnext/packages/next/server/web/spec-extension
Luis Alvarez D 5d1f33f5c4
Add deprecated JSDoc comments for the previous middleware signature (#35448)
Something I noticed while using Middleware is that the older and no longer working methods are still accessible for the `event` with autocompletion because of their types, and the way of knowing they're deprecated is by running the app and seeing the error message, this should improve that when coding in tools like VS Code.

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [x] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-03-28 21:15:08 +00:00
..
fetch-event.ts Add deprecated JSDoc comments for the previous middleware signature (#35448) 2022-03-28 21:15:08 +00:00
request.ts fix(types): add missing ua types for NextRequest (#31901) 2021-11-30 15:59:02 -06:00
response.ts fix: match redirect and rewrite destination types (#34617) 2022-02-21 12:21:54 -06:00