Skip to content

Commit

Permalink
Update changelog and build
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Feb 13, 2012
1 parent f36c278 commit 9707a48
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
20 changes: 10 additions & 10 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand All @@ -62,4 +62,4 @@ task('build', ['lint'], function (compsBase32, buildName) {
}
});

task('default', ['build']);
task('default', ['build']);
2 changes: 1 addition & 1 deletion dist/leaflet-src.js
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/leaflet.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9707a48

Please sign in to comment.