From d7234ee463b9d0259a117a083fa946c2a284467e Mon Sep 17 00:00:00 2001 From: Stepan Kuzmin Date: Tue, 31 Jan 2023 13:39:06 +0200 Subject: [PATCH] Release v1.4.0 (#1152) --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 4 ++-- package.json | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12fbb8b40..2c44467b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ ## Changelog +# 1.4.0 + +* Reduce NPM package size and big dependency and dev environment cleanup by @mourner in https://github.com/mapbox/mapbox-gl-draw/pull/1119 https://github.com/mapbox/mapbox-gl-draw/pull/1053 +* Add Bezier Curve mode by @Jeff-Numix in https://github.com/mapbox/mapbox-gl-draw/pull/1068 +* Update control buttons styles by @chriswhong in https://github.com/mapbox/mapbox-gl-draw/pull/1125 +* Use passive event listeners instead of `preventDefault` by @danielsippel in https://github.com/mapbox/mapbox-gl-draw/pull/1146 +* Adding sorting rank value for MultiLineString by @zhangchn in https://github.com/mapbox/mapbox-gl-draw/pull/1142 +* Expose constants and lib APIs to make it easier to write custom draw modes by @thaddmt in https://github.com/mapbox/mapbox-gl-draw/pull/1100 + +# 1.3.0 + +- ⚠️ Removed GeoJSON validation in `draw.add` — responsibility for valid input is now on the user. #1052 +- Fixed NPM security warnings about dependencies. #1052 +- Fixed midpoint calculation when terrain is enabled. #1039 +- Reduced the size of the plugin's CSS code from 33KB to 5KB. #1038 (h/t @johanrd) +- Fixed `simple_select` mode handling on touch devices. #1008 (h/t @corinv) + # 1.2.2 ### Bug Fixes: diff --git a/README.md b/README.md index 0f74efd1b..18f17a672 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ import MapboxDraw from "@mapbox/mapbox-gl-draw"; **When using a CDN** ```html - + ``` #### CSS @@ -40,7 +40,7 @@ import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css' **When using CDN** ```html - + ``` ### Typescript diff --git a/package.json b/package.json index 030cf2e17..499cfd669 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mapbox-gl-draw", - "version": "1.3.0", + "version": "1.4.0", "description": "A drawing component for Mapbox GL JS", "homepage": "https://github.com/mapbox/mapbox-gl-draw", "author": "mapbox",