Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin committed Dec 20, 2022
1 parent 20a428e commit ef8d949
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1

### Features and improvements

- Add TypeScript types. ([#58](https://github.com/mapbox/mapbox-gl-language/pull/58) h/t @Phillip9587)

## 1.0.0

### ⚠️ Breaking changes
Expand All @@ -7,12 +13,12 @@
- Support for Streets v7 Chinese `zh` is replaced with Traditional Chinese `zh-Hant` and Simplified Chinese `zh-Hans`. ([#39](https://github.com/mapbox/mapbox-gl-language/pull/39))
- Support for token values (e.g. `{name}`) has been removed. The plugin now expects the `text-field` property of a style to use an [expression](https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/) of the form `['get', 'name_en']` or `['get', 'name']`; these expressions can be nested. Note that `get` expressions used as inputs to other expressions may not be handled by this plugin. For example:
```
["match",
["get", "name"],
"California",
"Golden State",
["coalesce",
["get", "name_en"],
["match",
["get", "name"],
"California",
"Golden State",
["coalesce",
["get", "name_en"],
["get", "name"]
]
]
Expand Down
2 changes: 1 addition & 1 deletion 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": "@mapbox/mapbox-gl-language",
"version": "1.0.0",
"version": "1.0.1",
"description": "Mapbox GL JS plugin for switching map language to the browser language.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit ef8d949

Please sign in to comment.