@edge-runtime/cookies
Advanced tools
Comparing version 4.0.3 to 4.1.0
@@ -122,3 +122,3 @@ /** | ||
*/ | ||
interface CookieListItem extends Pick<CookieSerializeOptions, 'domain' | 'path' | 'secure' | 'sameSite'> { | ||
interface CookieListItem extends Pick<CookieSerializeOptions, 'domain' | 'path' | 'secure' | 'sameSite' | 'partitioned'> { | ||
/** A string with the name of a cookie. */ | ||
@@ -125,0 +125,0 @@ name: string; |
@@ -42,2 +42,3 @@ "use strict"; | ||
"sameSite" in c && c.sameSite && `SameSite=${c.sameSite}`, | ||
"partitioned" in c && c.partitioned && "Partitioned", | ||
"priority" in c && c.priority && `Priority=${c.priority}` | ||
@@ -78,2 +79,3 @@ ].filter(Boolean); | ||
secure, | ||
partitioned, | ||
priority | ||
@@ -93,3 +95,4 @@ } = Object.fromEntries( | ||
...secure && { secure: true }, | ||
...priority && { priority: parsePriority(priority) } | ||
...priority && { priority: parsePriority(priority) }, | ||
...partitioned && { partitioned: true } | ||
}; | ||
@@ -96,0 +99,0 @@ return compact(cookie); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/cookies", | ||
"version": "4.0.3", | ||
"version": "4.1.0", | ||
"main": "dist/index.js", | ||
@@ -32,3 +32,3 @@ "module": "dist/index.mjs", | ||
"@edge-runtime/format": "2.2.1", | ||
"@edge-runtime/jest-environment": "2.3.8" | ||
"@edge-runtime/jest-environment": "2.3.10" | ||
}, | ||
@@ -35,0 +35,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57139
826