Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use default cookie decoder instead of bare native
SvelteKit currently depends on cookie@0.6.0 which has known security vulnerability. User can create an override if they do not need to keep the backward compatibility. cookie@0.6.0 wraps the passed decoder in try..catch but the new version does not. When overriding, the `cookies.get` will throw if passed in cookie contains malformed content. In both cases the default `decode` of `cookie` library also has small performance optimization so removing the passing of decodeURIComponent should be win already.
- Loading branch information