[Plz merge] Release 1.2.0 (#5688)

* Add documentation on how to do a release

* Preliminary changelog for next release

* Preliminary blog post

* Modify version to 1.2.0

* Update changelog

* Add 1.2.0 reference

* Point to 1.2.0 docs

* Update hashes and latest version

* Update latest news

* Add 1.2.0 release date
This commit is contained in:
Per Liedman 2017-08-08 16:13:09 +02:00 committed by GitHub
parent 969add49a9
commit 5223528fcd
8 changed files with 23731 additions and 7 deletions

View File

@ -7,6 +7,32 @@ Leaflet Changelog
An in-progress version being developed on the `master` branch.
## 1.2.0 (release date 2017-08-08)
### API Changes
* Make `L.LineUtil._flat` public as `L.LineUtil.isFlat` ([#5667](https://github.com/leaflet/leaflet/issue/5667) by [yohanboniface](https://github.com/yohanboniface))
* `L.ImageOverlay`'s `setBounds` method accepts an array of points, not only a `L.LatLngBounds` instance ([#5687](https://github.com/Leaflet/Leaflet/pull/5687) by [ronikar](https://github.com/ronikar)
### Improvements
* `VideoOverlay` accepts `VideoElement` ([#5661](https://github.com/leaflet/leaflet/issue/5661) by [eavidan-0](https://github.com/eavidan-0))
* Documentation improvements by [ghybs](https://github.com/ghybs), [thachhoang](https://github.com/thachhoang), [colbin8r](https://github.com/colbin8r), [Timmmm](https://github.com/Timmmm), [cyrilf](https://github.com/cyrilf) and [JonDum](https://github.com/JonDum)
* Filter published files on npm ([#5626](https://github.com/leaflet/leaflet/issue/5626) by [TrySound](https://github.com/TrySound)), [e7o-de](https://github.com/e7o-de)
* Throw an error if trying to use `addLayer` with something that is not a `Layer` ([#5689](https://github.com/Leaflet/Leaflet/pull/5689) by [perliedman](https://github.com/perliedman))
* Ensure copyright banner is kept in the minified `leaflet.js` ([#5682](https://github.com/Leaflet/Leaflet/pull/5682) by [jgravois](https://github.com/jgravois))
*
### Bug fixes
* Fix non-extendable objects regression of 1.1.0 ([#5658](https://github.com/Leaflet/Leaflet/pull/5658) by [mourner](https://github.com/mourner))
* `Control.Layers` properly handles adding the same layer multiple times, as well as cleanup ([#5672](https://github.com/leaflet/leaflet/issue/5672), [#5684](https://github.com/leaflet/leaflet/issue/5684) and [#5673](https://github.com/leaflet/leaflet/issue/5673) by [jjimenezshaw](https://github.com/jjimenezshaw))
* Make `L.Draggable._dragging` public again ([#5659](https://github.com/leaflet/leaflet/issue/5659) by [yohanboniface](https://github.com/yohanboniface))
* `DomEvent.off` returns `this` ([#5601](https://github.com/leaflet/leaflet/issue/5601) by [jelhan](https://github.com/jelhan))
* Don't use functions from the global `L` internally ([#5596](https://github.com/leaflet/leaflet/issue/5596) by [atd-schubert](https://github.com/atd-schubert))
* Return `this` instead of `addOne` in `DomEvent.disableScrollPropagation` ([#5595](https://github.com/leaflet/leaflet/issue/5595) by [Eschon](https://github.com/Eschon))
## 1.1.0 (2017-06-27)
### API changes

27
RELEASE.md Normal file
View File

@ -0,0 +1,27 @@
Documentation for the release process of Leaflet.
**Please note that you will need to have a git remote called `origin` that points to Leaflet's GitHub repo, since the publish script assumes it**
1. Make a new release branch (for example named `prepare-X.Y.Z`)
2. Make sure you do not have any `package.lock.json` or `yarn.lock` locally, since they can potentially make you build with the wrong package versions
3. Update [the changelog](https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md) since last release and commit to the release branch
4. Write a blog post about the new release and put in `/docs/_posts` and commit to the release branch
5. Bump version number in `package.json` and commit to `master`
6. Run `npm run release`
7. Verify that the release was correctly published to NPM by checking:
* [Leaflet NPM package page](https://www.npmjs.com/package/leaflet)
* files on [Leaflet unpkg page](https://unpkg.com/leaflet@latest/)
8. Update API docs:
* run `jake docs`
* Copy the built docs from `dist/reference-X.Y.Z.html` to `docs/reference-X.Y.Z.html`
* Update the built docs header to use Jekyll style; see commit [11d716f0964d8bc0d058ca09e9ba8003451b4b8d](https://github.com/Leaflet/Leaflet/commit/11d716f0964d8bc0d058ca09e9ba8003451b4b8d) as reference for the needed changes
* Commit the new docs to the release branch
9. Update `docs/reference.html` to redirect to the new version and commit the change to the release branch
10. Update integrity hashes:
* Checkout the release tag (`git checkout vX.Y.Z`)
* Run `npm run integrity` or simply `node ./build/integrity.js` if you're not on Debian
* Copy the hashes and update `integrity_hash_css`, `integrity_hash_source` and `integrity_hash_uglified` in `docs/_config.yml`; commit changes to the release branch
11. Update `latest_leaflet_version` in `docs/_config.yml` and commit to the release branch
12. Update the "Latest news" section in `docs/index.html` and commit to the release branch
13. If it looks like everything is good at this point, merge the release branch into `master`
14. Make a new release on [Leaflet's GitHub release page](https://github.com/Leaflet/Leaflet/releases/) with the most important parts of the changelog

View File

@ -5,7 +5,7 @@ markdown: kramdown
kramdown:
entity_output: as_input
latest_leaflet_version: 1.1.0
latest_leaflet_version: 1.2.0
gems:
- jekyll-redirect-from
@ -16,6 +16,6 @@ whitelist:
# Integrity hashes for both leaflet.js and leaflet-src.js
# These will be shown in the downloads page
# See https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
integrity_hash_css: "sha512-wcw6ts8Anuw10Mzh9Ytw4pylW8+NAD4ch3lqm9lzAsTxg0GFeJgoAtxuCLREZSC5lUXdVyo/7yfsqFjQ4S+aKw=="
integrity_hash_source: "sha512-sIPSXEX730B6EcdQyVPmIGp7f7ZrxIuECnkwYtPpEltG6NqOVtmBNoxHkMamNsAOHLMnDFaUoJYA4PWtzNZDuA=="
integrity_hash_uglified: "sha512-mNqn2Wg7tSToJhvHcqfzLMU6J4mkOImSPTxVZAdo+lcPlk+GhZmYgACEe0x35K7YzW1zJ7XyJV/TT1MrdXvMcA=="
integrity_hash_css: "sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
integrity_hash_source: "sha512-YLT+I34kEPlk5OqR5XObf40B7sInrIU+bGe5VcwSpfR5OrFVjExFxfhVoJQEPZQWMyB53o3AU/bb5J91nc8CPA=="
integrity_hash_uglified: "sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="

View File

@ -0,0 +1,18 @@
---
layout: post
title: Leaflet 1.2.0 has been released
description: a new bugfix release
author: Per Liedman
authorsite: http://www.liedman.net
---
Leaflet 1.2.0 has just been released. The major reason for this release is to address an unfortunate regression in the 1.1.0 release, [causing trouble with several plugins](https://github.com/Leaflet/Leaflet/issues/5589). Traditionally, Leaflet plugins has altered and added to Leaflet's namespace (the `L` global), something which is no longer allowed after Leaflet was rebuilt on ES6 modules (an imported module is read-only). To preserve backwards compatibility, we have made a workaround to make the Leaflet namespace and its contents mutable again.
For the future, we expect to work out a new recommendation for authoring Leaflet plugins, that takes into account how modern JavaScript is built with ES6 modules, instead of modifying the Leaflet namespace.
As usual, we also managed to close off a number of other bugs and make a couple of minor improvements, all with the help of our many contributors - a big thank you to all who contributed to the release this summer! See the full [changelog](https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md) for details.
To get the new release, update your dependencies in your favorite package manager, or check the [downloads page](http://leafletjs.com/download.html).
Cheers,<br>
The Leaflet team.

View File

@ -2,7 +2,7 @@
layout: v2
---
<div class="announcement">Jun 27, 2017 — <a href="http://leafletjs.com/2017/06/27/leaflet-1.1.0.html">Leaflet 1.1.0</a>, a new version based on ES6 modules, has been released.</div>
<div class="announcement">Jun 27, 2017 — <a href="/2017/08/08/leaflet-1.2.0.html">Leaflet 1.2.0</a> has been released.</div>
<p>Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps.
Weighing just about <abbr title="38 KB gzipped &mdash; that's 133 KB minified and 378 KB in the source form, with 10 KB of CSS (2 KB gzipped) and 11 KB of images.">38 KB of JS</abbr>,

23652
docs/reference-1.2.0.html Normal file

File diff suppressed because it is too large Load Diff

View File

@ -13,5 +13,6 @@ bodyclass: api-page
<li><a href='reference-1.0.0.html'>API reference for 1.0.0 and 1.0.1</a>
<li><a href='reference-1.0.2.html'>API reference for 1.0.2</a>
<li><a href='reference-1.0.3.html'>API reference for 1.0.3</a>
<li><a href='reference-1.1.0.html'>API reference for 1.1.0</a>
<li><a href='reference-1.1.0.html'>API reference for 1.1.0</a>
<li><a href='reference-1.2.0.html'>API reference for 1.2.0</a>
</ul></p>

View File

@ -1,3 +1,3 @@
---
redirect_to: reference-1.1.0.html
redirect_to: reference-1.2.0.html
---