rsnext/packages
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
..
create-next-app v12.1.2 2022-03-28 13:56:02 -05:00
eslint-config-next v12.1.2 2022-03-28 13:56:02 -05:00
eslint-plugin-next v12.1.2 2022-03-28 13:56:02 -05:00
next Add deprecated JSDoc comments for the previous middleware signature (#35448) 2022-03-28 21:15:08 +00:00
next-bundle-analyzer v12.1.2 2022-03-28 13:56:02 -05:00
next-codemod v12.1.2 2022-03-28 13:56:02 -05:00
next-env v12.1.2 2022-03-28 13:56:02 -05:00
next-mdx v12.1.2 2022-03-28 13:56:02 -05:00
next-plugin-storybook v12.1.2 2022-03-28 13:56:02 -05:00
next-polyfill-module v12.1.2 2022-03-28 13:56:02 -05:00
next-polyfill-nomodule v12.1.2 2022-03-28 13:56:02 -05:00
next-swc v12.1.2 2022-03-28 13:56:02 -05:00
react-dev-overlay v12.1.2 2022-03-28 13:56:02 -05:00
react-refresh-utils v12.1.2 2022-03-28 13:56:02 -05:00