Skip to content

Commit

Permalink
🔖 release v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nbouvrette committed Mar 5, 2024
1 parent 38011b3 commit 6d26e1e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# [3.0.0](https://github.com/Avansai/resolve-accept-language/compare/v2.2.0...v3.0.0) (2024-03-05)

### Features

- major update for improved extensibility and simplicity ([38011b3](https://github.com/Avansai/resolve-accept-language/commit/38011b33aacbd11e0043a42a54e262d033535f66))

### BREAKING CHANGES

- This commit introduces several breaking changes to improve the library's extensibility and simplicity:

* `resolveAcceptLanguage` is now a named import for better dual (CommonJS/ESM) compatibility.
* `resolveAcceptLanguage` now accepts an `options` argument.
* The `ResolveAcceptLanguage` class has been replaced with `resolveAcceptLanguage` used with the `{ returnMatchType: true }` option.
* Introduced a new match type, `languageSpecificLocale`, for more intelligent matches. See the README for more details.
* Renamed match types for consistency: `localeBased` to `locale`, `languageBased` to `language`, and `relatedLocaleBased` to `relatedLocale`.

# [2.2.0](https://github.com/Avansai/resolve-accept-language/compare/v2.1.23...v2.2.0) (2024-03-03)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resolve-accept-language",
"version": "2.2.0",
"version": "3.0.0",
"description": "Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.",
"keywords": [
"accept-language",
Expand Down

0 comments on commit 6d26e1e

Please sign in to comment.