Files
express/test
Jon Church 82fc12a40b Ignore expires and maxAge in res.clearCookie() (#5792)
* add test for removing user provided expires

* rework impl and tests to ignore maxAge, do not set it

this is to take into account the built-in relative expires when passing
a maxAge to res.cookie

I realized that using maxAge to invalidate cookies inherrently hit this
relativee expires behavior, and the goal of this PR is not to rework
that relative expires behavior w/ maxAge, but to prevent users from
overwriting these values by accident when clearing cookies

* update history.md

* explicitly delete maxAge instead of setting as undefined

* drop the spread, use object.assign

* wording, review comment on history.md

Co-authored-by: Chris de Almeida <ctcpip@users.noreply.github.com>

* ♻️ use spread, update supported ecmascript version

---------

Co-authored-by: Chris de Almeida <ctcpip@users.noreply.github.com>
2024-08-02 15:26:45 -05:00
..
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-17 00:27:11 -05:00
2022-02-17 00:27:11 -05:00
2024-03-20 21:14:00 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-17 00:27:11 -05:00
2024-03-20 21:14:00 -05:00
2022-02-17 00:27:11 -05:00
2024-03-20 21:14:00 -05:00
2024-03-20 21:14:00 -05:00
2024-03-20 21:14:00 -05:00
2024-03-20 21:14:00 -05:00
2022-02-17 00:27:11 -05:00
2024-03-20 21:14:00 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-17 00:27:11 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-17 00:27:11 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2024-03-15 10:27:45 -05:00
2024-03-20 21:14:00 -05:00
2024-03-20 21:14:00 -05:00
2022-02-09 01:07:08 -05:00
2022-02-17 00:27:11 -05:00
2022-02-17 00:27:11 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2024-03-20 21:14:00 -05:00
2022-02-09 01:07:08 -05:00
2024-03-20 21:14:00 -05:00
2024-03-20 21:14:00 -05:00
2022-02-09 01:07:08 -05:00
2022-02-09 01:07:08 -05:00
2022-02-17 00:27:11 -05:00
2024-03-20 21:14:00 -05:00
2022-02-21 19:54:52 -05:00