Search code examples
javascriptjqueryjquery-pluginsutilitiesjquery-1.3

Is there an automatic jQuery plugin updater?


Is there some sort of utility available that will check my jQuery plugins and see if they are the latest version? I understand that there is not an easy way to check the version numbers automatically; but I wonder if anyone has taken a look at this.


Solution

  • You could always subscribe to the RSS feed or hit the main page and parse out this bit programmatically, using a DOM parser (or regex if you prefer pain):

    <p class="jq-version"><strong>Current Release:</strong> v.1.3.2</p>
    

    That said, I think the best solution is to manually check the site every couple of weeks or so. If you automatically update your production jQuery libraries, you will almost certainly face at least one catastrophe.

    Also, you could do it with jQuery like so (provided you get jquery homepage via a proxy on your domain):

    $('#someDiv').load('proxyOnMyDomain.php?get=www.jquery.com .jq-version');