Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
d8b851e
Prevent click on popup tip from firing on map. (#7541)
Nov 1, 2021
12ac953
Tooltip: make Map.openTooltip to consider `interactive` option (like …
Nov 1, 2021
e0af258
Tooltip: stop relying on Browser `touch` property (#7535)
Nov 1, 2021
404e1b9
Control.Layers: stop relying on Browser `android` and `touch` propert…
Nov 1, 2021
0ae68f4
Correct Browser.touch (and more related changes) (#7029)
Nov 1, 2021
4c590a2
Map: fix contextmenu default-preventing when there are >1 target cand…
Nov 1, 2021
4106ad1
Map/closeTooltip: make argument not optional (#7533)
Nov 1, 2021
ef928c5
DomEventSpec.js: add more tests (#7126)
Nov 1, 2021
a4a11f5
Handle touchcancel separately from touchend (#7084)
Nov 1, 2021
f018e2d
Fix tests failing in IE (#7461)
Nov 1, 2021
61eb5f1
DivOverlay/Popup/Tooltip refactoring and fixes (#7540)
Nov 1, 2021
7ef9ae9
Change Tooltip class from leaflet-clickable to leaflet-interactive (#…
Falke-Design Nov 1, 2021
ab2806a
new plugin "leaflet-geoserver-request" (#7180)
iamtekson Nov 1, 2021
ec74616
Adding "Open User Map" WordPress Plugin (#7690)
100wunder Nov 1, 2021
9216e08
Added leaflet-route-print to plugin list (#7663)
hersle Nov 1, 2021
030387b
Added a new plugin to Mouse Coordinates (#7065)
edihasaj Nov 1, 2021
3ada314
TileLayer: fire a 'tileabort' event when a tile load is cancelled (#6…
dstndstn Nov 1, 2021
e87ed0c
More reliable disableClickPropagation (#7439)
Nov 1, 2021
fe040de
Fix just merged #7439 (#7720)
Nov 1, 2021
7b9b4a3
Reimplement DoubleTap simulation in more simple and reliable way (#7027)
Nov 1, 2021
83d23b9
Add test case for #7439 (#7721)
Nov 1, 2021
eccbd95
Leaflet.Notifications plugin (#7619)
Terrorartist Nov 1, 2021
e66f1dd
Add AutoGraticule and FreieTonne plugins to docs (#7423)
cdauth Nov 1, 2021
06e075f
Added plugin for one finger zoom (#7553)
petoc Nov 1, 2021
a3b9c09
leaflet-geojson-vt plugin added (#7626)
iamtekson Nov 1, 2021
34dbcfb
new plugins: Leaflet.glify, Leaflet.glify.layer (#7534)
danwild Nov 1, 2021
8cfe1c3
Drop PhantomJS from test suite (#7724)
jonkoops Nov 1, 2021
88cf633
Update dependencies to latest version and add Dependabot config (#7725)
jonkoops Nov 1, 2021
5b457c2
update package lock
mourner Nov 1, 2021
e3fde98
Continue running tests even if one fails (#7723)
jonkoops Nov 1, 2021
0388959
New plugin: Leaflet.MousePosition.ts (#7623)
YuukiToriyama Nov 2, 2021
7bccf7e
simplify release process (#7727)
mourner Nov 2, 2021
5f24da5
fix download link, close #7667
mourner Nov 2, 2021
bb04e95
simplify download page
mourner Nov 2, 2021
9f9c549
simplify docs update process on release (#7730)
mourner Nov 2, 2021
cfcff71
DomEvent.Pointer: simplify and cover by tests (#7415)
Nov 3, 2021
f2d625f
DomEvent.Pointer: process touch events only (#7059)
Nov 3, 2021
69f73ed
Get rid of android legacy hacks (#7022)
Nov 3, 2021
cc9f327
Allow to prevent round-off errors, caused by formatNum (#7100)
Nov 3, 2021
7b15104
Avoid modifying source props object in Class.extend (#6766)
Nov 3, 2021
bcc6730
cleanup marker.svg (#7600)
rala72 Nov 3, 2021
541a0f1
Tests: remove non-functional Firefox setting (#7736)
Nov 4, 2021
9e7bf9e
Add Leaflet.CenterMarker to list of plugins (#7312)
heyman Nov 4, 2021
7029c2c
Bump karma from 6.3.6 to 6.3.7 (#7737)
dependabot[bot] Nov 4, 2021
5d4307e
Bump karma-firefox-launcher from 2.1.1 to 2.1.2 (#7738)
dependabot[bot] Nov 4, 2021
d17ac0c
Bump sinon from 11.1.2 to 12.0.0 (#7739)
dependabot[bot] Nov 4, 2021
9e43099
Bump uglify-js from 3.14.2 to 3.14.3
dependabot[bot] Nov 4, 2021
38c330d
simplify workflow config
mourner Nov 4, 2021
89f9970
Fixup #7736 (#7742)
Nov 4, 2021
1703e93
Fix indentation issues in Karma config (#7743)
jonkoops Nov 4, 2021
7f47b29
Plugins.md - Leaflet.Control.Select added to the list of plugins (#7050)
adammertel Nov 5, 2021
36d4858
Evented: protect from common errors (+tests) (#7518)
Nov 5, 2021
9e03bc5
Restore DomEvent.off(el) functionality when calling with one arg (#7125)
Nov 5, 2021
5b9458e
Change undefined argument handling in Layer/hasLayer() and LayerGroup…
Nov 5, 2021
4c1a396
Bump prosthetic-hand from 1.3.1 to 1.4.0
dependabot[bot] Nov 5, 2021
adfafbb
Added plugin Leaflet.AnimatedSearchBox to plugins.md (#7053)
luka1199 Nov 6, 2021
b4a1556
Run tests on Internet Explorer 11 (#7741)
jonkoops Nov 6, 2021
4ec3c5f
Fixup #7518 (#7748)
Nov 6, 2021
257ca09
Bump eslint from 8.1.0 to 8.2.0 (#7747)
dependabot[bot] Nov 6, 2021
59d2cb8
Bump karma from 6.3.7 to 6.3.8
dependabot[bot] Nov 8, 2021
572f4f7
New plugin: Leaflet.Autocomplete (#7236)
tomickigrzegorz Nov 8, 2021
98fb4ab
Lint all files unless explicitly ignored (#7757)
jonkoops Nov 8, 2021
315e4d7
Class.include: keep parent options (#7756)
Nov 8, 2021
d03a2d0
Minor typos (#7758)
riunn Nov 9, 2021
93ebeb7
plugin: leaflet-layervisibility (#7484)
phloose Nov 9, 2021
5bae38b
Adding Leaflet control Routetoaddress (#6500)
astridx Nov 11, 2021
daeb86b
New Plugin: Azure Maps basemap provider (#7408)
rbrundritt Nov 11, 2021
c1e6751
L.Control.Attribution: encapsulate some code from L.Layer (#7764)
Nov 11, 2021
b61dad1
Make docs headings sticky (#7703)
avioli Nov 11, 2021
2c10506
add a redirect from /reference-1.7.1.html
mourner Nov 11, 2021
7cb3c0e
Tests for L.GeoJSON static functions (#7147)
phloose Nov 11, 2021
a37f029
simplify. update description - geojson is popular (#7602)
matkoniecz Nov 11, 2021
b52961a
Add Leaflet.HighlightableLayers and Leaflet.DraggableLines plugins to…
cdauth Nov 15, 2021
bda4004
Bump rollup from 2.59.0 to 2.60.0 (#7785)
dependabot[bot] Nov 15, 2021
dd1ab61
Fixup #7068 and add test (#7781)
Nov 15, 2021
3466cbb
Reset width & padding to prevent cascading CSS from breaking image re…
Spudley Nov 16, 2021
a0efd49
Fix current error in the maser (SVG width: auto in IE) (#7793)
Falke-Design Nov 22, 2021
f1d8644
Bump rollup from 2.60.0 to 2.60.1
dependabot[bot] Nov 22, 2021
2488cfc
Bump eslint from 8.2.0 to 8.3.0
dependabot[bot] Nov 22, 2021
9f0a622
Bump karma from 6.3.8 to 6.3.9
dependabot[bot] Nov 22, 2021
4a28283
add new in plugin lists (#7631)
stefanocudini Nov 23, 2021
dd975a6
Add leaflet-place-groups-picker to plugins list (#7412)
damianc Nov 23, 2021
913e0e9
Update plugins.md with my own plugin (#7392)
rhlt Nov 23, 2021
ba81536
Adding leaflet-area-select to the plugin list (#7367)
keul Nov 23, 2021
ef3e4f0
Update plugins.md (#6547)
ATran31 Nov 23, 2021
3716721
Added GeoRasterLayer Plugin (#6534)
DanielJDufour Nov 23, 2021
0b603ea
Add Leaflet.NonTiledLayers to plugins (#7802)
jonkoops Nov 23, 2021
f4d8f10
Update plugins.md (Leaflet.Signposts) (#7786)
williamlow Nov 23, 2021
5eca469
add/removePointerListener: tolerate wrong event names (#7808)
Nov 25, 2021
8eb9ac2
Converted Plugins.md to single files (jekyll) (#7805)
Falke-Design Nov 25, 2021
842dd30
Remove leaflet-include.js (#7776)
Falke-Design Nov 25, 2021
2eec198
Add fallbacks to font-size (#7800)
Chandu-4444 Nov 25, 2021
c6c82f0
Add keepInView test (#7790)
Falke-Design Nov 25, 2021
1180e7e
Accessibility popup close button (#7794)
Falke-Design Nov 25, 2021
4dadf84
Fix Popup keepInView if the map needs to panned over a long distance …
Falke-Design Nov 25, 2021
6db8d22
Add aria-hidden to the +/- characters of zoom controls (#7795)
Falke-Design Nov 25, 2021
649eaf3
Add documentation for Event Listens Propagate argument. Fixes Leaflet…
riffaud Nov 26, 2021
8fbb149
Update Renderer documentation to clarify tolerance option Canvas only…
Hippl-Eric Nov 26, 2021
25fce16
ignore built docs when running eslint
mourner Nov 26, 2021
18389fb
Improve panInside documentation (#7397)
daverayment Nov 26, 2021
38c0c55
Fix #7439 for mousemove (#7809)
Nov 26, 2021
05fa580
New TapHold handler instead of legacy Tap (#7026)
Nov 26, 2021
2e86387
[GridLayer] redraw tiles properly after changing maxNativeZoom (#6443)
cherniavskii Nov 26, 2021
1e7f273
Simplifiy examples (#7816)
Falke-Design Nov 26, 2021
0a61e90
Tests: simplify .near and .nearLatlng usage (#7820)
Nov 27, 2021
326211d
add linting to examples (WIP)
mourner Nov 29, 2021
31259a9
revert linting examples (accidentally pushed to master)
mourner Nov 29, 2021
80279dd
Lint examples (#7827)
mourner Nov 29, 2021
27f4964
Update zoom buttons documentation text (#7815)
Falke-Design Nov 30, 2021
39c7ea6
Create leaflet-coloricon.md (#7812)
shevekk Dec 1, 2021
2476975
makes L.Browser mutable (#7335)
bozdoz Dec 2, 2021
e8b87ea
bindTooltip should unbind existent tooltip (#7633)
Falke-Design Dec 2, 2021
e7d5a37
Locate - locationfound: Add check if map container has leaflet_id / i…
Falke-Design Dec 2, 2021
4b2946c
Correct condition to add zoom limits for Layer (#7609)
vcoppe Dec 2, 2021
30d91b1
Fix Bug: permanent & sticky tooltip (#7563)
Falke-Design Dec 2, 2021
a340c08
Break the reference to the options of the Class prototype (#7459)
Falke-Design Dec 2, 2021
d00a8b2
Added clarification (#7819)
riunn Dec 2, 2021
8531ede
bump license formatting hoping that GH picks it up now
mourner Dec 3, 2021
a921fdd
Remove all references of Bower (#7831)
jonkoops Dec 3, 2021
a6d6d51
leaflet.zoomfs compatibility (#7832)
brunob Dec 3, 2021
fc9c716
Update plugins compat & demos (#7834)
brunob Dec 3, 2021
a1342a1
add demo url for the plugin (#7833)
brunob Dec 3, 2021
80b2685
Better icon image path detection (#7092)
Dec 5, 2021
7dcc3de
Bump rollup from 2.60.1 to 2.60.2 (#7838)
dependabot[bot] Dec 6, 2021
1e1987e
Bump eslint from 8.3.0 to 8.4.0 (#7837)
dependabot[bot] Dec 6, 2021
e3719a3
Bump uglify-js from 3.14.3 to 3.14.4 (#7836)
dependabot[bot] Dec 6, 2021
f3f28c3
Upload files to AWS even if the file-size is the same (#7853)
jonkoops Dec 10, 2021
06f76d4
Added missing tests to index.html (#7845)
Falke-Design Dec 10, 2021
afe38e0
Add `getCenter` to ImageOverlay (#7848)
Falke-Design Dec 10, 2021
acffb7e
Set `role=button` on the Layer control (#7850)
Malvoz Dec 10, 2021
a9d7c4f
Add print styles to prevent printers from removing background-images …
Malvoz Dec 10, 2021
009748a
Change http to https of https://leafletjs.com (#7857)
Falke-Design Dec 12, 2021
08b39b0
Bump eslint from 8.4.0 to 8.4.1
dependabot[bot] Dec 13, 2021
dc17bd8
Bump rollup from 2.60.2 to 2.61.1
dependabot[bot] Dec 13, 2021
982042c
Bump uglify-js from 3.14.4 to 3.14.5
dependabot[bot] Dec 13, 2021
d86ad49
Publish package to NPM when pushing tag (#7854)
jonkoops Dec 13, 2021
7e938af
Increase captureTimeout and browserSocketTimeout (#7856)
Falke-Design Dec 13, 2021
e9fc60c
Fixup #7544 (#7861)
Dec 13, 2021
26ba65a
Fix opening / closing tooltip while dragging map (#7862)
Falke-Design Dec 15, 2021
abf16d5
Update the doc of DivOverlay (#7778)
Falke-Design Dec 16, 2021
911f578
Replace http with https (#7860)
Falke-Design Dec 16, 2021
d7bf36c
Bump eslint from 8.4.1 to 8.5.0 (#7873)
dependabot[bot] Dec 20, 2021
1d3e3a0
Remove will-change (#7872)
Dec 20, 2021
c9f8650
Add drustack/Leaflet.ResetView to plugins (#7874)
hswong3i Dec 22, 2021
d52d2fa
Add drustack/Leaflet.SyncView to plugins (#7875)
hswong3i Dec 22, 2021
ab9c909
Bump rollup from 2.61.1 to 2.62.0
dependabot[bot] Dec 27, 2021
de29669
Add django-leaflet in frameworks-build-systems documentation. (#7885)
Gagaro Jan 3, 2022
e9bc859
Bump eslint from 8.5.0 to 8.6.0
dependabot[bot] Jan 3, 2022
e0c92a3
Add Leaflet Geoapify Address Search plugin (#7896)
geoapify Jan 10, 2022
10d0031
Update marker: role=button, alt=marker (#7895)
tmiaa Jan 10, 2022
64d8866
Bump rollup from 2.62.0 to 2.63.0 (#7897)
dependabot[bot] Jan 10, 2022
32783c9
Bump karma from 6.3.9 to 6.3.10 (#7898)
dependabot[bot] Jan 10, 2022
2e205bf
Improve site accesibility (#7901)
MxDui Jan 13, 2022
142ffde
Fix issues in the layout (#7906)
Falke-Design Jan 13, 2022
ee71642
Update LICENSE to 2022 and automate on website (#7907)
Falke-Design Jan 14, 2022
47eab07
Bump karma from 6.3.10 to 6.3.11
dependabot[bot] Jan 17, 2022
06ac977
Bump mocha from 9.1.3 to 9.1.4
dependabot[bot] Jan 17, 2022
8d0f926
Bump rollup from 2.63.0 to 2.64.0
dependabot[bot] Jan 17, 2022
103c361
Bump eslint from 8.6.0 to 8.7.0
dependabot[bot] Jan 17, 2022
ba7fdb9
Remove gap between `leaflet-popup-tip-container` and `leaflet-popup-c…
Malvoz Jan 19, 2022
4d63087
Add bundlemon to watch bundle size (#7905)
jonkoops Jan 19, 2022
f3f27b0
Fixing noConflict and merge rollup-config (#7855)
Falke-Design Jan 19, 2022
fb0b2a1
Refactor Popup/Tooltip to use common code from DivOverlay (#6639)
Jan 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .bundlemonrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"baseDir": "dist",
"files": [
{
"path": "leaflet.js"
}
],
"reportOutput": [
[
"github",
{
"checkRun": true,
"commitStatus": true,
"prComment": false
}
]
]
}
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
open-pull-requests-limit: 999
rebase-strategy: disabled
schedule:
interval: weekly
ignore:
- dependency-name: eslint-config-mourner
update-types: ["version-update:semver-major"]
- dependency-name: sinon
update-types: ["version-update:semver-major"]
84 changes: 50 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ env:
NODE_VERSION: 16
jobs:
setup:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019]
steps:
- name: Check out repository
uses: actions/checkout@v2
Expand All @@ -29,25 +32,27 @@ jobs:

- name: Build project
run: npm run build
env:
NODE_ENV: ${{ startsWith(github.ref, 'refs/tags/v') && 'release' || '' }}

- name: Cache setup
uses: actions/cache@v2
with:
path: ./*
key: ${{ github.sha }}
key: ${{ runner.os }}-${{ github.sha }}

run:
needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
command: [lint]
command: [lint, bundlemon]
steps:
- name: Restore setup
uses: actions/cache@v2
with:
path: ./*
key: ${{ github.sha }}
key: ${{ runner.os }}-${{ github.sha }}

- name: Set up Node
uses: actions/setup-node@v2
Expand All @@ -56,26 +61,30 @@ jobs:

- name: Run ${{ matrix.command }} task
run: npm run ${{ matrix.command }}
env:
BUNDLEMON_PROJECT_ID: 61e0545915f6c3000980d0ed
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}

test:
needs: setup
runs-on: ubuntu-latest
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
browser:
[
PhantomJSCustom,
Chrome1280x1024,
FirefoxPointer,
FirefoxTouch,
FirefoxPointerTouch,
]
include:
- browser: Chrome1280x1024
- browser: FirefoxTouch
- browser: FirefoxNoTouch
- browser: IE
os: windows-2019
- browser: IE10
os: windows-2019
steps:
- name: Restore setup
uses: actions/cache@v2
with:
path: ./*
key: ${{ github.sha }}
key: ${{ runner.os }}-${{ github.sha }}

- name: Set up Node
uses: actions/setup-node@v2
Expand All @@ -85,31 +94,16 @@ jobs:
- name: Run tests on ${{ matrix.browser }}
run: npm test -- --browsers ${{ matrix.browser }}

check-secrets:
needs: [setup]
runs-on: ubuntu-latest
publish-artifacts:
needs: setup
if: github.repository_owner == 'Leaflet' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
outputs:
ok: ${{ steps.ok.outputs.defined }}
steps:
- id: ok
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: env.AWS_S3_BUCKET && env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY
run: echo "::set-output name=defined::true"

deploy:
needs: [check-secrets]
if: needs.check-secrets.outputs.ok == 'true'
runs-on: ubuntu-latest
steps:
- name: Restore setup
uses: actions/cache@v2
with:
path: ./*
key: ${{ github.sha }}
key: ${{ runner.os }}-${{ github.sha }}

- name: Compress artifacts
working-directory: dist
Expand All @@ -121,13 +115,35 @@ jobs:
VERSION=$(git tag --points-at HEAD)
echo "::set-output name=path::content/leaflet/${VERSION:-master}"

- name: Deploy artifacts
- name: Publish artifacts
uses: jakejarvis/s3-sync-action@v0.5.1
with:
args: --acl public-read --delete
args: --acl public-read --delete --exact-timestamps
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: dist
DEST_DIR: ${{ steps.artifacts-directory.outputs.path }}

publish-npm:
needs: setup
if: github.repository_owner == 'Leaflet' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Restore setup
uses: actions/cache@v2
with:
path: ./*
key: ${{ runner.os }}-${{ github.sha }}

- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dist/reference.html
coverage/
*.js.html
.mailmap
bower.json
component.json
debug/local/
Gemfile.lock
Expand Down
6 changes: 2 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,13 @@ on rebuilding the bundles whenever any source file changes.

## Running the Tests

To run the tests from the command line,
install [PhantomJS](http://phantomjs.org/) (and make sure it's in your `PATH`),
then run:
To run the tests from the command line, install [Google Chrome](https://www.google.com/chrome/) then run:

```
npm test
```

To run all the tests in actual browsers at the same time, you can do:
To run the tests in other browsers at the same time, you can do:

```
npm test -- -- --browsers Firefox,Chrome,Safari,IE
Expand Down
2 changes: 0 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,3 @@ updated automatically on each commit to the repo.

We removed the built versions from the repository because it's a chore to build and commit them manually on each change,
and it often complicates merging branches and managing contributions.

There's a common complaint that Leaflet can't be used with [Bower](http://bower.io/) because of that, but we'll resolve the issue soon.
37 changes: 20 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
Copyright (c) 2010-2021, Vladimir Agafonkin
BSD 2-Clause License

Copyright (c) 2010-2022, Vladimir Agafonkin
Copyright (c) 2010-2011, CloudMade
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion PLUGIN-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Now your plugin is available as an AMD and CommonJS module and can be used in mo
Once your plugin is published, it is a good idea to add it to the [Leaflet plugins list](http://leafletjs.com/plugins.html). To do so:

* [Fork](https://help.github.com/articles/fork-a-repo/) the Leaflet repo.
* In the `docs/plugins.md` file, find the section your plugin should go in, and add a table row with information and links about your plugin.
* In the `docs/_plugins/` folder, copy the `template.md` file and add it to a category folder. Then put the information and links about your plugin into the new plugin file.
* Commit the code to your fork.
* [Open a pull request](https://help.github.com/articles/creating-a-pull-request/) from your fork to Leaflet's original repo.

Expand Down
39 changes: 16 additions & 23 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
Documentation for the release process of Leaflet.
## Releasing a new version 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**
- [ ] Make a new release branch (for example named `prepare-X.Y.Z`)
- [ ] 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
- [ ] Update [the changelog](https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md) since last release and commit to the release branch
- [ ] Write a blog post about the new release and put in `/docs/_posts` and commit to the release branch
- [ ] Bump version number in `package.json` and commit to `master`
- [ ] Run `npm run release`
- [ ] Update [the changelog](https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md) since last release and commit.
- [ ] Run `npm version <patch | minor | major>` (this will bump the version in `package.json` and create a new tag).
- [ ] Run `git push --follow-tags` to push the commit created by NPM to Github (together with the tag).
- [ ] Wait for the CI to complete and follow the logs to make sure it runs successfully.
- [ ] 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/)
- [ ] Update API docs:
- [ ] run `npm run docs`
- [ ] Copy the built docs from `dist/reference-X.Y.Z.html` to `docs/reference-X.Y.Z.html`, remove content before first and after second "CUT HERE" comment
- [ ] Insert YAML front matter, see old `docs/reference-X.Y.Z.html` for reference
- [ ] Commit the new docs to the release branch
- [ ] Update `docs/reference.html` to redirect to the new version and commit the change to the release branch
- [ ] 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
- [ ] Update link to latest release in `docs/download.html`, and commit to the release branch
- [ ] Add link to new version reference in `docs/reference-versions.html`, and commit to the release branch
- [ ] Update `latest_leaflet_version` (and possibly `latest_leaflet_reference`) in `docs/_config.yml` and commit to the release branch
- [ ] Update the announcement section in `docs/index.html` and commit to the release branch
- [ ] If it looks like everything is good at this point, merge the release branch into `master`
- [ ] Make a new release on [Leaflet's GitHub release page](https://github.com/Leaflet/Leaflet/releases/) with the most important parts of the changelog

### Updating docs after the release

- [ ] Make a new branch for the update
- [ ] Write a blog post about the new release and put it in `/docs/_posts`
- [ ] If necessary to preserve previous version's docs, rename `dist/reference.html` to `dist/reference-X.Y.Z.html` and add it to the list in `docs/reference-versions.html`
- [ ] Run `npm run docs` to generate the new `docs/reference.html`
- [ ] Run `npm run integrity` and make sure `docs/_config.yml` is updated with new hashes
- [ ] Update link to latest release in `docs/download.md`
- [ ] Update the announcement section in `docs/index.html`
- [ ] Commit all the changes and submit a PR for someone to review
2 changes: 1 addition & 1 deletion build/banner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function createBanner(version) {
return `/* @preserve
* Leaflet ${version}, a JS library for interactive maps. http://leafletjs.com
* Leaflet ${version}, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-${new Date().getFullYear()} Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/
`;
Expand Down
4 changes: 1 addition & 3 deletions build/docs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var packageDef = require('../package.json');

function buildDocs() {

console.log('Building Leaflet documentation with Leafdoc ...');
Expand Down Expand Up @@ -27,7 +25,7 @@ function buildDocs() {
doc.addFile('build/docs-misc.leafdoc', false);

var out = doc.outputStr();
var path = 'dist/reference-' + packageDef.version + '.html';
var path = 'docs/reference.html';

var fs = require('fs');

Expand Down
Loading