Skip to content

Commit

Permalink
Add Accept to top-level exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Dec 20, 2024
1 parent 1dc26d7 commit 8baf875
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/headers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,21 @@ let headers = new SuperHeaders({ lastModified: ms });
```

- Adds support for

- `headers.accept`
- `headers.connection`
- `headers.host`
- `headers.referer`

- Adds low-level `Accept` API

```ts
import { Accept } from '@mjackson/headers';

let header = new Accept({ 'text/html': 1, 'text/*': 0.9 });
header.get('text/html'); // 1
```

## v0.8.0 (2024-11-14)

- Added CommonJS build
Expand Down
1 change: 1 addition & 0 deletions packages/headers/src/headers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { type AcceptInit, Accept } from './lib/accept.ts';
export { type AcceptLanguageInit, AcceptLanguage } from './lib/accept-language.ts';
export { type CacheControlInit, CacheControl } from './lib/cache-control.ts';
export { type ContentDispositionInit, ContentDisposition } from './lib/content-disposition.ts';
Expand Down

0 comments on commit 8baf875

Please sign in to comment.