cookie-parser
cookie-parser copied to clipboard
Refactor JSONCookies function for improved readability and modern syntax
- Replaced Object.keys() with Object.entries() for cleaner iteration over key-value pairs.
- Utilized destructuring in the loop to enhance code clarity.
- Improved variable naming for better understanding of the decoded value.
- Maintained functionality of decoding JSON cookies while updating the original object.
We don't have support for ES syntax yet as we support [email protected]
https://github.com/expressjs/cookie-parser/actions/runs/11623042363/job/32384208780?pr=119