Permalink
Browse files

Prep for 0.26.0 release.

  • Loading branch information...
1 parent d485cda commit b0c988cf576ddba6744a914f5b682d0464161f8b @jrburke jrburke committed Aug 17, 2011
Showing with 92 additions and 33 deletions.
  1. +10 −1 dist/README.md
  2. +1 −1 dist/post.html
  3. +1 −1 dist/pre.html
  4. +1 −1 docs/api.html
  5. +65 −12 docs/download.html
  6. +2 −2 i18n.js
  7. +2 −2 order.js
  8. +2 −2 require.js
  9. +0 −7 tasks.txt
  10. +1 −2 tests/README.md
  11. +2 −2 text.js
  12. +5 −0 updatesubs.sh
View
@@ -21,7 +21,16 @@ When doing a release, do the following:
* Commit/push changes
* Commit changes to:
* require-cs: make a new tag if cs.js changed since last release.
- * jquery-amd: update the downloadable content if necessary.
+ * jqueryui-amd: update the downloadable content if necessary.
+* Update the require-npm directory
+ * Update version in package.json
+ * Modify bin/r.js to add: #!/usr/bin/env node
+ * npm uninstall -g requirejs
+ * npm install . -g
+ * r.js -v
+ * node (then use repl to do require("requirejs"))
+ * Try a local install.
+ * npm publish (in the requirejs-npm/requirejs directory)
* Tag the tree:
* git tag -am "Release 0.0.0" 0.0.0
View
@@ -1,6 +1,6 @@
</div>
<div id="footer" class="mono">
- <span class="line">Latest Release: <a href="http://requirejs.org/docs/download.html">0.25.0</a></span>
+ <span class="line">Latest Release: <a href="http://requirejs.org/docs/download.html">0.26.0</a></span>
<span class="line">Open source: new BSD or MIT licensed</span>
<span class="line">web design by <a href="http://andychung.ca">Andy Chung</a> &copy; 2011</span>
</div>
View
@@ -161,7 +161,7 @@
</ul>
<ul>
- <li class="version">0.25.0 Docs</li>
+ <li class="version">0.26.0 Docs</li>
</ul>
</div>
View
@@ -584,7 +584,7 @@
<p id="config-locale"><strong>locale</strong>: The locale to use for loading i18n bundles. By default navigator.language or navigator.userLanguage will be used. The proper syntax for specifying a locale is using lowercase and separating values by dashes, for instance: "fr-fr-paris" or "en-us".</p>
-<p id="config-context"><strong>context</strong>: A name to give to a loading context. This allows require.js to load multiple versions of modules in a page, as long as each top-level require call specifies a unique context string. To use it correctly, see the <a href="#multiversion">Multiversion Support</strong> section.</p>
+<p id="config-context"><strong>context</strong>: A name to give to a loading context. This allows require.js to load multiple versions of modules in a page, as long as each top-level require call specifies a unique context string. To use it correctly, see the <a href="#multiversion">Multiversion Support</a> section.</p>
<p id="config-deps"><strong>deps</strong>: An array of dependencies to load. Useful when require is defined as a config object before require.js is loaded, and you want to specify dependencies to load as soon as require() is defined.</p>
View
@@ -24,20 +24,20 @@
<div class="subSection">
<h4 class="hbox">
-<a name="requirejs">require.js 0.25.0</a>
+<a name="requirejs">require.js 0.26.0</a>
<span class="boxFlex"></span>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/minified/require.js">Minified</a>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/comments/require.js">With Comments</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/minified/require.js">Minified</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/comments/require.js">With Comments</a>
</h4>
<p>All you need to start using require.js in the browser.</p>
</div>
<div class="subSection">
<h4 class="hbox">
-<a name="samplejquery">Sample RequireJS 0.25.0 + jQuery 1.6.2 project</a>
+<a name="samplejquery">Sample RequireJS 0.26.0 + jQuery 1.6.2 project</a>
<span class="boxFlex"></span>
-<a class="download" href="http://requirejs.org/docs/release/jquery-require/jquery1.6.2-requirejs0.25.0/jquery-require-sample.zip">Download</a>
+<a class="download" href="http://requirejs.org/docs/release/jquery-require/jquery1.6.2-requirejs0.26.0/jquery-require-sample.zip">Download</a>
</h4>
<p>A zip file containing a sample project that uses jQuery and RequireJS.</p>
@@ -48,7 +48,7 @@ <h4 class="hbox">
<h4 class="hbox">
<a name="rjs">r.js: Optimizer and Node and Rhino adapter</a>
<span class="boxFlex"></span>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/r.js">Download</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/r.js">Download</a>
</h4>
<p>The r.js file allows you to run the optimizer as well as run modules in Node or Rhino.</p>
@@ -68,8 +68,8 @@ <h4 class="hbox">
<h4 class="hbox">
<a name="text">text</a>
<span class="boxFlex"></span>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/minified/text.js">Minified</a>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/comments/text.js">With Comments</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/minified/text.js">Minified</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/comments/text.js">With Comments</a>
</h4>
<p><a href="api.html#text">Load text files and treat them as dependencies</a>. Great for loading templates. The text strings can be inlined in an optimized build when the optimizer is used.</p>
</div>
@@ -78,8 +78,8 @@ <h4 class="hbox">
<h4 class="hbox">
<a name="order">order</a>
<span class="boxFlex"></span>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/minified/order.js">Minified</a>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/comments/order.js">With Comments</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/minified/order.js">Minified</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/comments/order.js">With Comments</a>
</h4>
<p><a href="api.html#order">Load script in the order specified in the dependency array</a>. Useful for existing scripts that have implied dependencies instead of calling define() to create modular code.</p>
</div>
@@ -99,8 +99,8 @@ <h4 class="hbox">
<h4 class="hbox">
<a name="i18n">i18n</a>
<span class="boxFlex"></span>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/minified/i18n.js">Minified</a>
-<a class="download" href="http://requirejs.org/docs/release/0.25.0/comments/i18n.js">With Comments</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/minified/i18n.js">Minified</a>
+<a class="download" href="http://requirejs.org/docs/release/0.26.0/comments/i18n.js">With Comments</a>
</h4>
<p><a href="api.html#i18n">Load string bundles</a> used in internationalization (i18n) that are made up of separate country/language/locale-specific bundles.</p>
</div>
@@ -110,6 +110,59 @@ <h4 class="hbox">
<div class="section">
<h2><a name="releasenotes">Release Notes</a><span class="sectionMark">&sect; 3</span></h2>
+<h3 id="0-26-0">0.26.0</h3>
+
+<ul>
+ <li><strong>npm install requirejs</strong> to allow require("requirejs"). This allows you to:
+ <ul>
+ <li><a href="node.html#usage">Load AMD modules inside node</a> without running a bootstrap script. It also
+ fixes some path issues using traditional Node modules alongside AMD modules.</li>
+ <li>Exposes the optimizer as require("requirejs").optimize() to
+ <a href="https://github.com/jrburke/r.js/blob/master/build/tests/http/httpBuild.js">allow dynamic server builds</a>
+ for people who like to do "<a href="node.html#optimizer">only one script tag
+ in the page at the end of body" development</a>. With the "excludeShallow" optimizer config,
+ you can still debug a single module/script while having the rest combined into one script.</li>
+ </ul>
+ This is now the recommended path for using RequireJS in Node. More information on
+ the <a href="node.html">Use with Node</a> page.</li>
+
+ <li>UglifyJS in the minifier is updated to 1.0.6. The upside: now
+ <a href="optimization.html#hasjs">has() branch trimming</a> now works with
+ the default minifier.</li>
+
+ <li>Fixes for running under Node on Windows using the native node.exe builds that are now available
+ in the Node 0.5.x series. Now there is less of a need to use Java to drive the RequireJS
+ Optimizer!</li>
+
+ <li>Configuration is now done via a require.config({}) call, to get in line with
+ the <a href="https://github.com/amdjs/amdjs-api/wiki/require#wiki-globalConfig">amdjs require API</a>.
+ The old require({}) method works on the global require()
+ for backwards compatibility, but the suggested API going forward is require.config({}).
+ The <a href="api.html">API doc</a> has been updated to show proper usage.
+
+ <li>There is <a href="faq-advanced.html#rename">a namespace option now for builds</a>,
+ to allow moving require() and define()
+ calls under a different namespace. This allows you to build an optimized file that uses
+ RequireJS but does not interfere with any other AMD loader on the page, and you can make
+ sure only your modules are loaded in that namespaced object.</li>
+
+ <li>The default error behavior when a define() factory function throws an error is
+ to not catch it. The catching done in 0.25.0 made it more difficult to debug. However,
+ there are some situations where catching the errors is preferred. Setting the config
+ value <a href="api.html#config-catchError">catchError.define = true</a> will switch to catching the errors
+ and allow processing via require.onError()</li>
+
+ <li>Closure Compiler in the optimizer was updated. As a result, the code
+ to invoke Closure Compiler changed, and will likely only work with the latest
+ Closure Compiler release. You can grab a version known to work with
+ the optimizer in the optimizer's <a href="https://github.com/jrburke/r.js/tree/master/lib/closure">lib/closure directory</a>.</li>
+
+ <li>There is now a pragmasOnSave build option, which is used in the
+ <a href="https://github.com/jrburke/require-cs/blob/master/demo/build.js">require-cs CoffeeScript loader plugin build profile</a>
+ to strip out the
+ CoffeeScript compiler after a build. The end result: tiny build layers
+ of converted CoffeeScript code.</li>
+</ul>
<h3 id="0-25-0">0.25.0</h3>
View
@@ -1,5 +1,5 @@
/**
- * @license RequireJS i18n 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * @license RequireJS i18n 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
@@ -79,7 +79,7 @@
}
define({
- version: '0.25.0',
+ version: '0.26.0',
/**
* Called when a dependency needs to be loaded.
*/
View
@@ -1,5 +1,5 @@
/**
- * @license RequireJS order 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * @license RequireJS order 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
@@ -85,7 +85,7 @@
}
define({
- version: '0.25.0',
+ version: '0.26.0',
load: function (name, req, onLoad, config) {
var url = req.nameToUrl(name, null);
View
@@ -1,5 +1,5 @@
/** vim: et:ts=4:sw=4:sts=4
- * @license RequireJS 0.25.0+ Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * @license RequireJS 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
@@ -11,7 +11,7 @@
var requirejs, require, define;
(function () {
//Change this version number for each release.
- var version = "0.25.0+",
+ var version = "0.26.0",
commentRegExp = /(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,
cjsRequireRegExp = /require\(\s*["']([^'"\s]+)["']\s*\)/g,
currDirRegExp = /^\.\//,
View
@@ -1,12 +1,5 @@
Release Notes
-------------------
-- Fix for running scripts in 0.5.3, use embedded, also fixes path issue via config value.
-- Better native windows support via the 0.5.3 node.exe file.
-- this version of uglify does has() branch removal
-- catchError: define
-- require.config
-- npm install requirejs, web build/single script tag.
-- update for closure compiler call
Next release
--------------
View
@@ -7,8 +7,6 @@ This is a list of things to test before doing a RequireJS release.
## Items in tests directory
* All browsers: tests/doh/runner.html?testUrl=../all in all the browsers
-* Node: ./alln.sh
-* Rhino: ./allj.sh
* Optional, only do on major refactors: tests/commonjs, run each file in browser.
## Node testing
@@ -17,6 +15,7 @@ Go to r.js project and run the following:
* cd tests
* ./alln.sh
+* node allNode.js
* ./allj.sh
* node ../../r.js index.js
* node ../../r.js canvasTest.js (use nave and do the npm installs listed in the JS file)
View
@@ -1,5 +1,5 @@
/**
- * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * @license RequireJS text 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
@@ -81,7 +81,7 @@
}
text = {
- version: '0.25.0',
+ version: '0.26.0',
strip: function (content) {
//Strips <?xml ...?> declarations so that external SVG and XML
View
@@ -31,3 +31,8 @@ cp ../r.js/r.js ../r.no.de/server.js
echo "Updating jqueryui-amd"
cp ../require-jquery/jquery-require-sample/webapp/scripts/require-jquery.js ../jqueryui-amd/example/webapp/scripts/require-jquery.js
cp ../r.js/r.js ../jqueryui-amd/example/r.js
+
+# The npm container stuff
+echo "Updating requirejs-npm"
+cp require.js ../requirejs-npm/requirejs/require.js
+cp ../r.js/r.js ../requirejs-npm/requirejs/bin/r.js

0 comments on commit b0c988c

Please sign in to comment.