From 537a21fd484fee53ee9a62a4a045258fc7fb444c Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 4 Jul 2018 19:20:33 +0200 Subject: [PATCH 1/4] Merge pull request #8342 from ahocevar/quickstart-links Fix links and description in quickstart tutorial --- doc/quickstart.hbs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/quickstart.hbs b/doc/quickstart.hbs index bb0d450c55..4c5acffa65 100644 --- a/doc/quickstart.hbs +++ b/doc/quickstart.hbs @@ -7,6 +7,9 @@ layout: doc.hbs This primer shows you how to put a simple map on a web page. +**For production, we strongly recommend bundling the application together with its dependencies, as explained in the [Building an OpenLayers Application](./tutorials/bundle.html) tutorial.** + + ## Put a map on a page Below you'll find a complete working example. Create a new file, copy in the contents below, and open in a browser: @@ -15,14 +18,14 @@ Below you'll find a complete working example. Create a new file, copy in the co - + - + OpenLayers example @@ -56,10 +59,8 @@ To include a map a web page you will need 3 things: ### Include OpenLayers -**Caveat:** In production, it is not recommended to include dependencies as script tag. Instead, we recommend bundling the application together with its dependencies, as explained in the [Building an OpenLayers Application](./tutorials/bundle.html) tutorial. - ```xml - + ``` The first part is to include the JavaScript library. For the purpose of this tutorial, here we simply point to the openlayers.org website to get the whole library. In a production environment, we would build a custom version of the library including only the module needed for our application. From a579b168f7cf1a5834ce4957c836d2f79fb6bc60 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 4 Jul 2018 13:44:37 +0200 Subject: [PATCH 2/4] Merge pull request #8341 from ahocevar/side-effects Set sideEffects: false flag --- src/ol/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/package.json b/src/ol/package.json index d2302f3f68..412eaca106 100644 --- a/src/ol/package.json +++ b/src/ol/package.json @@ -9,5 +9,6 @@ "pbf": "3.1.0", "pixelworks": "1.1.0", "rbush": "2.0.2" - } -} \ No newline at end of file + }, + "sideEffects": "false" +} From 73f1428701ab5b168e25f0a778ea048c0d1df321 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 4 Jul 2018 21:52:27 +0200 Subject: [PATCH 3/4] Changelog for v5.0.1 --- changelog/v5.0.1.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changelog/v5.0.1.md diff --git a/changelog/v5.0.1.md b/changelog/v5.0.1.md new file mode 100644 index 0000000000..151e90c4a6 --- /dev/null +++ b/changelog/v5.0.1.md @@ -0,0 +1,8 @@ +# 5.0.1 + +The v4.6.5 release helps reduce bundle sizes for bundler that support the `"sideEffects": "false"`option in `package.json`, and fixes website documentation regarding cdn locations and debug build which has been replaced by source maps. + +## Fixes + + * [#8341](https://github.com/openlayers/openlayers/pull/8341) - Set sideEffects: false flag ([@ahocevar](https://github.com/ahocevar)) + * [#8342](https://github.com/openlayers/openlayers/pull/8342) - Fix links and description in quickstart tutorial ([@ahocevar](https://github.com/ahocevar)) From 11024ad2949529c498a786d5100ba035a4a0e360 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 4 Jul 2018 21:53:22 +0200 Subject: [PATCH 4/4] Update package version to 5.0.1 --- package.json | 2 +- src/ol/package.json | 2 +- src/ol/util.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5f52a46615..c116ae8806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openlayers", - "version": "5.0.0", + "version": "5.0.1", "description": "OpenLayers mapping library", "keywords": [ "map", diff --git a/src/ol/package.json b/src/ol/package.json index 412eaca106..8a27945710 100644 --- a/src/ol/package.json +++ b/src/ol/package.json @@ -1,6 +1,6 @@ { "name": "ol", - "version": "5.0.0", + "version": "5.0.1", "description": "OpenLayers mapping library", "main": "index.js", "module": "index.js", diff --git a/src/ol/util.js b/src/ol/util.js index 08ccc7b0d3..6aa298f705 100644 --- a/src/ol/util.js +++ b/src/ol/util.js @@ -52,4 +52,4 @@ export function getUid(obj) { * OpenLayers version. * @type {string} */ -export const VERSION = '5.0.0'; +export const VERSION = '5.0.1';