@shopify/react-cookie
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -6,5 +6,5 @@ import { CookieSerializeOptions } from 'cookie'; | ||
} & CookieSerializeOptions; | ||
export declare type Cookie = { | ||
export interface Cookie { | ||
[key: string]: CookieValue; | ||
}; | ||
} | ||
export interface CookieManager { | ||
@@ -11,0 +11,0 @@ getCookie(name: string): string | undefined; |
{ | ||
"name": "@shopify/react-cookie", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -28,4 +28,4 @@ "description": "Cookies in React for the server and client", | ||
"@shopify/react-effect": "^3.2.5", | ||
"@shopify/react-hooks": "^1.2.5", | ||
"@shopify/react-html": "^9.2.5", | ||
"@shopify/react-hooks": "^1.3.0", | ||
"@shopify/react-html": "^9.2.6", | ||
"@shopify/react-network": "^3.3.4", | ||
@@ -32,0 +32,0 @@ "cookie": "^0.4.0", |
@@ -114,8 +114,8 @@ # `@shopify/react-cookie` | ||
#### createCookies() | ||
#### `createCookies()` | ||
This utility can be used to create an initial set of cookies in the `document.cookie`. This can be useful in test set up. | ||
#### clearCookies() | ||
#### `clearCookies()` | ||
This utility can be used to clear a set of cookies from the `document.cookie`. This can be useful when you need to clear the cookies between tests, such as in an `afterEach` block. |
13939
Updated@shopify/react-hooks@^1.3.0
Updated@shopify/react-html@^9.2.6