Skip to content

Commit

Permalink
Fixup changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Dec 20, 2024
1 parent c164b9e commit fdfa62e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/headers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This release tightens up the type safety and brings `SuperHeaders` more in line
```ts
// before
let headers = new SuperHeaders();
headers.set('Content-Type', { mediaType: 'text/html' }); // don't do this
headers.set('Content-Type', { mediaType: 'text/html' });

// after
headers.set('Content-Type', 'text/html');
Expand Down Expand Up @@ -57,7 +57,6 @@ let h3 = new AcceptLanguage({ 'en-US': 1 });
- All setters now also accept `undefined | null` in addition to `string` and custom object values. Setting a header to `undefined | null` is the same as using `headers.delete()`.

```ts
// before
let headers = new SuperHeaders({ 'Content-Type': 'text/html' });
headers.contentType; // 'text/html'

Expand Down

0 comments on commit fdfa62e

Please sign in to comment.