rsnext/packages
Dominik Ferber feabd54f6b
avoid mutating response.cookie options (#31679)
Previously `response.cookie(name, value, options)` would mutate the passed in `options` which lead to unexpected behaviour as described in #31666.

This PR clones the `options` argument before mutating it.

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] 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

- [x] Make sure the linting passes by running `yarn lint`
2021-11-22 11:20:01 +00:00
..
create-next-app v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
eslint-config-next v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
eslint-plugin-next v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next avoid mutating response.cookie options (#31679) 2021-11-22 11:20:01 +00:00
next-bundle-analyzer v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-codemod v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-env v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-mdx v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-plugin-storybook v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-polyfill-module v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-polyfill-nomodule v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
next-swc Enable require for swc_bundler (#31663) 2021-11-21 17:38:11 +00:00
react-dev-overlay v12.0.5-canary.8 2021-11-21 15:51:15 +01:00
react-refresh-utils v12.0.5-canary.8 2021-11-21 15:51:15 +01:00