From b04728d907d2df72e9751be18bbcdb3e846124b7 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 20 Jul 2018 18:14:58 -0600 Subject: [PATCH 1/4] Changelog for v5.1.0 --- changelog/upgrade-notes.md | 2 +- changelog/v5.1.0.md | 64 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 changelog/v5.1.0.md diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index a403e67c08..8598805720 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -1,6 +1,6 @@ ## Upgrade notes -### Next release +### v5.1.0 #### Geometry constructor and `setCoordinates` no longer accept `null` coordinates diff --git a/changelog/v5.1.0.md b/changelog/v5.1.0.md new file mode 100644 index 0000000000..f4706f52dc --- /dev/null +++ b/changelog/v5.1.0.md @@ -0,0 +1,64 @@ +# v5.1.0 + +The 5.1 release adds a few new features a handful of fixes. You should be able to upgrade without any additional work. See the one note below regarding `null` geometry coordinates. + +We're working toward type checking with TypeScript. This will complete our move away from using the Closure Compiler for type checking and compilation. We're excited about the improved experience for application developers and will highlight some of the benefit in upcoming releases. + +### Upgrade Notes + +#### Geometry constructor and `setCoordinates` no longer accept `null` coordinates + +Geometries (`ol/geom/*`) now need to be constructed with valid coordinates (center for `ol/geom/Circle`) as first constructor argument. The same applies to the `setCoordinates()` (`setCenter() for `ol/geom/Circle`) method. + +### New Features and Fixes + + * [#8409](https://github.com/openlayers/openlayers/pull/8409) - Add abstract translate to ol/geom/Geometry ([@pjeweb](https://github.com/pjeweb)) + * [#8405](https://github.com/openlayers/openlayers/pull/8405) - Minor type fixes ([@tschaub](https://github.com/tschaub)) + * [#8401](https://github.com/openlayers/openlayers/pull/8401) - Make webpack's css loader work ([@ahocevar](https://github.com/ahocevar)) + * [#8403](https://github.com/openlayers/openlayers/pull/8403) - Markdown links ([@tschaub](https://github.com/tschaub)) + * [#8402](https://github.com/openlayers/openlayers/pull/8402) - Type fixes from the typescript checks ([@fredj](https://github.com/fredj)) + * [#8400](https://github.com/openlayers/openlayers/pull/8400) - ESLint config update ([@tschaub](https://github.com/tschaub)) + * [#8399](https://github.com/openlayers/openlayers/pull/8399) - Copy ol.css to build dir when building package ([@ahocevar](https://github.com/ahocevar)) + * [#8397](https://github.com/openlayers/openlayers/pull/8397) - Update rollup ([@tschaub](https://github.com/tschaub)) + * [#8385](https://github.com/openlayers/openlayers/pull/8385) - Use class syntax ([@openlayers](https://github.com/openlayers)) + * [#8383](https://github.com/openlayers/openlayers/pull/8383) - style/Icon: Add `setAnchor()` method ([@Turbo87](https://github.com/Turbo87)) + * [#8368](https://github.com/openlayers/openlayers/pull/8368) - Make render listeners work with image render mode ([@ahocevar](https://github.com/ahocevar)) + * [#8376](https://github.com/openlayers/openlayers/pull/8376) - copy ZM values to polygon in makeRegular ([@virtualcitySYSTEMS](https://github.com/virtualcitySYSTEMS)) + * [#8372](https://github.com/openlayers/openlayers/pull/8372) - Release v5.0.3 ([@openlayers](https://github.com/openlayers)) + * [#8364](https://github.com/openlayers/openlayers/pull/8364) - Make examples work in IE11 ([@ahocevar](https://github.com/ahocevar)) + * [#8363](https://github.com/openlayers/openlayers/pull/8363) - Autogenerate src/ol/package.json ([@ahocevar](https://github.com/ahocevar)) + * [#8371](https://github.com/openlayers/openlayers/pull/8371) - Skip rendering when there is no replay group ([@ahocevar](https://github.com/ahocevar)) + * [#8362](https://github.com/openlayers/openlayers/pull/8362) - Smart flat coordinates ([@ahocevar](https://github.com/ahocevar)) + * [#8352](https://github.com/openlayers/openlayers/pull/8352) - Set `sideEffects` to `false` instead of `"false"` ([@tschaub](https://github.com/tschaub)) + * [#8351](https://github.com/openlayers/openlayers/pull/8351) - Fix typo in release notes ([@ahocevar](https://github.com/ahocevar)) + * [#8350](https://github.com/openlayers/openlayers/pull/8350) - Updates for v5.0.2 ([@ahocevar](https://github.com/ahocevar)) + * [#8349](https://github.com/openlayers/openlayers/pull/8349) - Release v5.0.1 ([@ahocevar](https://github.com/ahocevar)) + * [#8343](https://github.com/openlayers/openlayers/pull/8343) - Starter projects ([@tschaub](https://github.com/tschaub)) + * [#8347](https://github.com/openlayers/openlayers/pull/8347) - Fix typos in release notes ([@ahocevar](https://github.com/ahocevar)) + * [#8346](https://github.com/openlayers/openlayers/pull/8346) - Release v5.0.1 ([@openlayers](https://github.com/openlayers)) + * [#8342](https://github.com/openlayers/openlayers/pull/8342) - Fix links and description in quickstart tutorial ([@ahocevar](https://github.com/ahocevar)) + * [#8344](https://github.com/openlayers/openlayers/pull/8344) - Updated issue and pr templates ([@tschaub](https://github.com/tschaub)) + * [#8341](https://github.com/openlayers/openlayers/pull/8341) - Set sideEffects: false flag ([@ahocevar](https://github.com/ahocevar)) + * [#8333](https://github.com/openlayers/openlayers/pull/8333) - Fix wrong return type for readHref function ([@openlayers](https://github.com/openlayers)) + * [#8329](https://github.com/openlayers/openlayers/pull/8329) - Better jsdoc typing ([@fredj](https://github.com/fredj)) + * [#8319](https://github.com/openlayers/openlayers/pull/8319) - Remove reference to setProj4 function in documentation ([@fredj](https://github.com/fredj)) + + +
+ Dependency Updates + + * [#8410](https://github.com/openlayers/openlayers/pull/8410) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8408](https://github.com/openlayers/openlayers/pull/8408) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8386](https://github.com/openlayers/openlayers/pull/8386) - Update fs-extra to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8382](https://github.com/openlayers/openlayers/pull/8382) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8373](https://github.com/openlayers/openlayers/pull/8373) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8355](https://github.com/openlayers/openlayers/pull/8355) - Update recast to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8354](https://github.com/openlayers/openlayers/pull/8354) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8348](https://github.com/openlayers/openlayers/pull/8348) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8338](https://github.com/openlayers/openlayers/pull/8338) - Update recast to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8332](https://github.com/openlayers/openlayers/pull/8332) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8326](https://github.com/openlayers/openlayers/pull/8326) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8321](https://github.com/openlayers/openlayers/pull/8321) - Update rollup to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + * [#8318](https://github.com/openlayers/openlayers/pull/8318) - Update webpack to the latest version 🚀 ([@openlayers](https://github.com/openlayers)) + +
From 9061e93c5900633c9e0697bfc05fc74239201a3f Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 20 Jul 2018 18:16:47 -0600 Subject: [PATCH 2/4] Update package version to 5.1.0 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2f064f5b7d..fd00f54f06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ol", - "version": "5.0.3", + "version": "5.1.0", "description": "OpenLayers mapping library", "keywords": [ "map", @@ -84,5 +84,7 @@ "eslintConfig": { "extends": "openlayers" }, - "sideEffects": ["ol.css"] + "sideEffects": [ + "ol.css" + ] } From f8c5a79242a4c631318c2fdea3bba2b104786466 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 20 Jul 2018 18:22:28 -0600 Subject: [PATCH 3/4] Collapsed dependency updates --- tasks/changelog.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/changelog.sh b/tasks/changelog.sh index 8e3f7f4b88..78d599ad22 100755 --- a/tasks/changelog.sh +++ b/tasks/changelog.sh @@ -62,8 +62,12 @@ main() { if [ -n "$greenkeeper_output" ]; then echo - echo "Additionally a number of updates where made to our dependencies:" + echo "
" + echo " Dependency Updates" + echo echo -e "$greenkeeper_output" + echo + echo "
" fi } } From 1b745dc7b7d754fa11f070d58eace6699a373dbf Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 20 Jul 2018 18:29:28 -0600 Subject: [PATCH 4/4] Update the publish.sh script --- tasks/publish.sh | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/tasks/publish.sh b/tasks/publish.sh index 4ae20c9c95..eff9d57145 100755 --- a/tasks/publish.sh +++ b/tasks/publish.sh @@ -8,15 +8,9 @@ set -o errexit # -# All profiles to be built. Must correspond to .json files in the config -# directory. +# Destination directory for the package. # -PROFILES="ol ol-debug" - -# -# Destination directory for builds. -# -BUILDS=dist +BUILT_PACKAGE=build/ol # # URL for canonical repo. @@ -61,21 +55,6 @@ assert_version_match() { fi } -# -# Build all of the distribution profiles. -# -build_js() { - for p in ${@}; do - echo building ${BUILDS}/${p}.js - node ./tasks/build.js config/${p}.json ${BUILDS}/${p}.js - done -} - -build_css() { - ./node_modules/.bin/cleancss css/ol.css -o ${BUILDS}/ol.css - cp css/ol.css ${BUILDS}/ol-debug.css -} - # # Check out the provided tag. This ensures that the tag has been pushed to # the canonical remote. @@ -86,7 +65,7 @@ checkout_tag() { } # -# Build all profiles and publish. +# Build the package and publish. # main() { root=$(cd -P -- "$(dirname -- "${0}")" && pwd -P)/.. @@ -94,10 +73,9 @@ main() { assert_clean checkout_tag ${1} assert_version_match ${1} - rm -rf ${BUILDS} npm install - build_js ${PROFILES} - build_css + npm run build-package + cd ${BUILT_PACKAGE} npm publish }