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&" +
20 "component=!web&order=component&milestone=" + version
24 res.on( "data", function( chunk ) {
28 res.on( "end", function() {
32 while ( (match = extract.exec( file )) ) {
33 if ( "#" + match[1] !== match[2] ) {
36 if ( !cur || cur !== cat ) {
41 console.log( "<h3>" + cat.charAt(0).toUpperCase() + cat.slice(1) + "</h3>" );
46 " <li><a href=\"http://bugs.jquery.com/ticket/" + match[1] + "\">#" +
47 match[1] + ": " + match[2] + "</a></li>"