V3: ESM+CJS, automatic split combined cookies, & general API cleanup #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This has a few big changes all rolled into one:
package.jsonto make it work in either type of project.splitCookieString()is now called automatically when appropriate, with a newsplitoption to override the behaviorparseSetCookie(input, options)I think this will be a non-breaking change for most, if not all, users. But I'm not 100% sure and I had previously stated that the automatic
splitCookieString()would be in a major version, so calling this 3.0 feels like the right move.@bytesnz, @thib3113, @realityking, @benmccann, @renatoaraujoc, & @LenweSaralonde would you each mind giving this a shot sometime in the next week or two? (Or let me know if you need more time than that.)
You can install this branch in your local project with this command:
npm install git+https://github.com/nfriedly/set-cookie-parser#v3Fixes #73
Fixes #50
Relates to #68