Update changelog and build
This commit is contained in:
parent
f36c27851b
commit
9707a4894e
@ -3,7 +3,11 @@ Leaflet Changelog
|
||||
|
||||
(all changes without author notice are by [@mourner](https://github.com/mourner))
|
||||
|
||||
## 0.3 (master)
|
||||
## 0.4 (master)
|
||||
|
||||
No changes from 0.3 so far.
|
||||
|
||||
## 0.3 (13.02.2012)
|
||||
|
||||
### Major features
|
||||
|
||||
@ -20,6 +24,7 @@ Leaflet Changelog
|
||||
* Limited maximum zoom change on a single mouse wheel movement (so you won't zoom across the whole zoom range in one scroll). [#149](https://github.com/CloudMade/Leaflet/issues/149)
|
||||
* Significantly improved line simplification performance (noticeable when rendering polylines/polygons with tens of thousands of points)
|
||||
* Improved circles performance by not drawing them if they're off the clip region.
|
||||
* Improved stability of zoom animation (less flickering of tiles).
|
||||
|
||||
#### API improvements
|
||||
|
||||
|
20
Jakefile.js
20
Jakefile.js
@ -2,18 +2,18 @@ var build = require('./build/build.js'),
|
||||
lint = require('./build/hint.js');
|
||||
|
||||
var crlf = '\r\n',
|
||||
COPYRIGHT = '/*' + crlf + ' Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin' + crlf +
|
||||
COPYRIGHT = '/*' + crlf + ' Copyright (c) 2010-2012, CloudMade, Vladimir Agafonkin' + crlf +
|
||||
' Leaflet is a modern open-source JavaScript library for interactive maps.' + crlf +
|
||||
' http://leaflet.cloudmade.com' + crlf + '*/' + crlf;
|
||||
|
||||
desc('Check Leaflet source for errors with JSHint');
|
||||
task('lint', function () {
|
||||
var files = build.getFiles();
|
||||
|
||||
|
||||
console.log('Checking for JS errors...');
|
||||
|
||||
|
||||
var errorsFound = lint.jshint(files);
|
||||
|
||||
|
||||
if (errorsFound > 0) {
|
||||
console.log(errorsFound + ' error(s) found.\n');
|
||||
fail();
|
||||
@ -32,26 +32,26 @@ task('build', ['lint'], function (compsBase32, buildName) {
|
||||
|
||||
console.log('Concatenating ' + files.length + ' files...');
|
||||
var content = build.combineFiles(files);
|
||||
|
||||
|
||||
var oldSrc = build.load(srcPath),
|
||||
newSrc = COPYRIGHT + content,
|
||||
srcDelta = build.getSizeDelta(newSrc, oldSrc);
|
||||
|
||||
|
||||
console.log('\tUncompressed size: ' + newSrc.length + ' bytes (' + srcDelta + ')');
|
||||
|
||||
|
||||
if (newSrc === oldSrc) {
|
||||
console.log('\tNo changes');
|
||||
} else {
|
||||
build.save(srcPath, newSrc);
|
||||
console.log('\tSaved to ' + srcPath);
|
||||
}
|
||||
|
||||
|
||||
console.log('Compressing...');
|
||||
|
||||
var oldCompressed = build.load(path),
|
||||
newCompressed = COPYRIGHT + build.uglify(content),
|
||||
delta = build.getSizeDelta(newCompressed, oldCompressed);
|
||||
|
||||
|
||||
console.log('\tCompressed size: ' + newCompressed.length + ' bytes (' + delta + ')');
|
||||
|
||||
if (newCompressed === oldCompressed) {
|
||||
@ -62,4 +62,4 @@ task('build', ['lint'], function (compsBase32, buildName) {
|
||||
}
|
||||
});
|
||||
|
||||
task('default', ['build']);
|
||||
task('default', ['build']);
|
||||
|
2
dist/leaflet-src.js
vendored
2
dist/leaflet-src.js
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin
|
||||
Copyright (c) 2010-2012, CloudMade, Vladimir Agafonkin
|
||||
Leaflet is a modern open-source JavaScript library for interactive maps.
|
||||
http://leaflet.cloudmade.com
|
||||
*/
|
||||
|
2
dist/leaflet.js
vendored
2
dist/leaflet.js
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2010-2011, CloudMade, Vladimir Agafonkin
|
||||
Copyright (c) 2010-2012, CloudMade, Vladimir Agafonkin
|
||||
Leaflet is a modern open-source JavaScript library for interactive maps.
|
||||
http://leaflet.cloudmade.com
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user