3 * jQuery Release Note Generator
6 var http = require("http"),
7 extract = /<a href="\/ticket\/(\d+)" title="View ticket">(.*?)<[^"]+"component">\s*(\S+)/g,
8 version = process.argv[2];
10 if ( !/^\d+\.\d+/.test( version ) ) {
11 console.error( "Invalid version number: " + version );
16 host: "bugs.jquery.com",
19 path: "/query?status=closed&resolution=fixed&max=400&component=!web&order=component&milestone=" + version
23 res.on( "data", function( chunk ) {
27 res.on( "end", function() {
31 while ( (match = extract.exec( file )) ) {
32 if ( "#" + match[1] !== match[2] ) {
35 if ( !cur || cur !== cat ) {
40 console.log( "<h3>" + cat.charAt(0).toUpperCase() + cat.slice(1) + "</h3>" );
45 " <li><a href=\"http://bugs.jquery.com/ticket/" + match[1] + "\">#" +
46 match[1] + ": " + match[2] + "</a></li>"