You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/headers/CHANGELOG.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,19 @@ This is the changelog for [`headers`](https://github.com/mjackson/remix-the-web/
4
4
5
5
## HEAD
6
6
7
-
- BREAKING CHANGE: `cookie.delete(name)` returns `void` instead of `boolean`
7
+
This release contains several improvements to `Cookie` that bring it more in line with other headers like `Accept`, `AcceptEncoding`, and `AcceptLanguage`.
8
+
9
+
- BREAKING CHANGE: `cookie.names()` and `cookie.values()` are now getters that return `string[]` instead of methods that return `IterableIterator<string>`
8
10
- BREAKING CHANGE: `cookie.forEach()` calls its callback with `(name, value, cookie)` instead of `(value, name, map)`
11
+
- BREAKING CHANGE: `cookie.delete(name)` returns `void` instead of `boolean`
12
+
13
+
```ts
14
+
// before
15
+
let cookieNames =Array.from(headers.cookie.names());
0 commit comments