Skip to content

Commit 5f91989

Browse files
committed
updating version number/docs in preparation of a release.
1 parent 8756993 commit 5f91989

5 files changed

Lines changed: 36 additions & 38 deletions

File tree

dist/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
</div>
22
<div id="footer" class="mono">
3-
<span class="line">Latest Release: <a href="http://requirejs.org/docs/download.html">0.22.0</a></span>
3+
<span class="line">Latest Release: <a href="http://requirejs.org/docs/download.html">0.23.0</a></span>
44
<span class="line">Open source: new BSD or MIT licensed</span>
55
<span class="line">design by <a href="http://andychung.ca">Andy Chung</a> &copy; 2011</span>
66
</div>

dist/pre.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h1>a javascript module loader</h1>
156156
</ul>
157157

158158
<ul>
159-
<li class="version">0.22.0 Docs</li>
159+
<li class="version">0.23.0 Docs</li>
160160
</ul>
161161
</div>
162162

docs/download.html

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,27 @@ <h1>Download RequireJS</h1>
1717
</div>
1818

1919
<div class="section">
20-
<h2><a name="latest">Latest Release: 0.22.0</a><span class="sectionMark">&sect; 1</span></h2>
20+
<h2><a name="latest">Latest Release: 0.23.0</a><span class="sectionMark">&sect; 1</span></h2>
2121

2222
<ul>
23-
<li>A <a href="plugins.html">full plugin API</a> that supports also including plugin loaded artifacts in optimized builds.</li>
24-
<li><a href="node.html">Robust Node support</a>: now can use npm-installed modules, .node add-ons, and modules on require.paths.</li>
25-
<li>Support for <a href="optimization.html#hasjs">has.js optimizations</a> in the optimizer, including dead code branch removal via Closure Compiler.</a>
26-
<li><a href="https://github.com/jrburke/requirejs/commits/">Bug Fixes from 2010-12-21 through 2011-01-05</a>.</li>
23+
<li>Calculation of baseUrl changed. This affects the jQuery Sample project, which has been updated in this release. Instead of baseUrl defaulting to the directory containing require.js, it now defaults to the HTML page's directory. If data-main is used, then the directory used in that attribute becomes the baseUrl. Explicitly setting baseUrl in the configuration overrides the aforementioned defaults.</li>
24+
<li>The RequireJS optimizer now uses Node by default. So, build.sh/.bat are now Node-based. Java/Rhino is still supported via the buildj.sh/.bat scripts.</li>
25+
<li><a href="https://github.com/mishoo/UglifyJS">UglifyJS</a> is now the default minifier for the optimizer, since it works both in Node and in Rhino. However, UglifyJS does not do if/else dead code removal, so the <a href="optimization.html#hasjs">has() optimization</a> is not that great when using UglifyJS. Hopefully this will change in a future version of UglifyJS. If you want the full has() optimization, Closure Compiler can still be used, either by using buildj.sh to use Java/Rhino to do the optimization work, or by running Closure Compiler yourself after the optimizer runs.</li>
26+
<li>The behavior of the Node adapter, r.js has changed. It now assumes that any module found via the RequireJS config uses define() to define modules. If a module is not found via the RequireJS path config, r.js uses Node's native require() function and its pathing rules
27+
to find the module. This allows the most compatible use of npm-installed modules. However it means you <strong>should not</strong> include RequireJS configuration for npm-installed modules/packages.</li>
28+
<li>The r.js adapter now works in Node and Rhino.</li>
29+
<li>The config option, <strong>baseUrlMatch</strong> has been removed, since the data-main baseUrl rule mentioned above removes the need for it.</li>
30+
<li>Some important fixes around loader plugins: a fix to allow multiple modules to use the same plugin resources as a common dependency, and to allow loader plugins that use a define() function callback to work in the optimizer.</li>
31+
<li>A fix for the use of jQuery's readyWait capability when jQuery is detected and used as a module.</li>
32+
<li>Some directory shuffling related to making the rhino and node adapters the same for use in command line tools and in the r.js adapter.</li>
2733
</ul>
2834

2935
<div class="subSection">
3036
<h4 class="hbox">
3137
<a name="requirejs">require.js</a>
3238
<span class="boxFlex"></span>
33-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/minified/require.js">Minified</a>
34-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/comments/require.js">With Comments</a>
39+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/minified/require.js">Minified</a>
40+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/comments/require.js">With Comments</a>
3541
</h4>
3642

3743
<p>All you need to start using require.js in the browser. Does not include i18n, text, order plugins or Node/Rhino support.</p>
@@ -41,8 +47,8 @@ <h4 class="hbox">
4147
<h4 class="hbox">
4248
<a name="requirejsplugins">require.js with plugins</a>
4349
<span class="boxFlex"></span>
44-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/minified/allplugins-require.js">Minified</a>
45-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/comments/allplugins-require.js">With Comments</a>
50+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/minified/allplugins-require.js">Minified</a>
51+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/comments/allplugins-require.js">With Comments</a>
4652
</h4>
4753

4854
<p>require.js for use in the browser with the i18n, text, and order plugins included. </p>
@@ -52,8 +58,8 @@ <h4 class="hbox">
5258
<h4 class="hbox">
5359
<a name="jqueryrequirejs">jQuery 1.4.4 with require()</a>
5460
<span class="boxFlex"></span>
55-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/minified/require-jquery-1.4.4.js">Minified</a>
56-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/comments/require-jquery-1.4.4.js">With Comments</a>
61+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/minified/require-jquery-1.4.4.js">Minified</a>
62+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/comments/require-jquery-1.4.4.js">With Comments</a>
5763
</h4>
5864

5965
<p>A build of jQuery with integrated require() support. <strong>Does not include</strong> the i18n, text, and order plugins.</p>
@@ -63,8 +69,8 @@ <h4 class="hbox">
6369
<h4 class="hbox">
6470
<a name="jqueryrequirejsplugins">jQuery 1.4.4 with require() and plugins</a>
6571
<span class="boxFlex"></span>
66-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/minified/requireplugins-jquery-1.4.4.js">Minified</a>
67-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/comments/requireplugins-jquery-1.4.4.js">With Comments</a>
72+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/minified/requireplugins-jquery-1.4.4.js">Minified</a>
73+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/comments/requireplugins-jquery-1.4.4.js">With Comments</a>
6874
</h4>
6975

7076
<p>A build of jQuery with integrated require() support that includes the i18n, text, and order plugins.</p>
@@ -74,7 +80,7 @@ <h4 class="hbox">
7480
<h4 class="hbox">
7581
<a name="samplejquery">Sample jQuery 1.4.4 project with require()</a>
7682
<span class="boxFlex"></span>
77-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/jquery-require-sample.zip">Download</a>
83+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/jquery-require-sample.zip">Download</a>
7884
</h4>
7985

8086
<p>A zip file containing a build of jQuery with integrated require() support, with an sample project included to show how it can be used when using jQuery.</p>
@@ -83,13 +89,13 @@ <h4 class="hbox">
8389
<div class="subSection">
8490
<h4><a name="node">RequireJS adapter for Node and Rhino</a></h4>
8591

86-
<p><strong><a href="http://requirejs.org/docs/release/0.22.0/r.js">r.js</a></strong>: use this file if you want to code to the RequireJS module format in Node or Rhino.</p>
92+
<p><strong><a href="http://requirejs.org/docs/release/0.23.0/r.js">r.js</a></strong>: use this file if you want to code to the RequireJS module format in Node or Rhino.</p>
8793

8894
<p><strong>Use in Node</strong></p>
8995

9096
<p>Requires Node 0.4.0 or higher. The <a href="node.html">Node instructions</a> explain how to use it. It includes all the code needed for RequireJS to function with Node.</p>
9197

92-
<p><strong><a href="http://requirejs.org/docs/release/0.22.0/node/index.js">index.js</a></strong>: the standard HTTP server-based Hello World app for Node, but coded to work with the r.js adapter. Download it in the same directory as r.js and then run this command:</p>
98+
<p><strong><a href="http://requirejs.org/docs/release/0.23.0/node/index.js">index.js</a></strong>: the standard HTTP server-based Hello World app for Node, but coded to work with the r.js adapter. Download it in the same directory as r.js and then run this command:</p>
9399

94100
<pre><code>node r.js index.js
95101
</code></pre>
@@ -109,7 +115,7 @@ <h4><a name="node">RequireJS adapter for Node and Rhino</a></h4>
109115
<h4 class="hbox">
110116
<a name="optimizationtool">Optimization Tool / Full Source</a>
111117
<span class="boxFlex"></span>
112-
<a class="download" href="http://requirejs.org/docs/release/0.22.0/requirejs-0.22.0.zip">Download</a></h4>
118+
<a class="download" href="http://requirejs.org/docs/release/0.23.0/requirejs-0.23.0.zip">Download</a></h4>
113119

114120
<p>A zip file that is the optimization tool for RequireJS. It also includes the full source for require.js and its plugins.</p>
115121

@@ -120,6 +126,15 @@ <h4 class="hbox">
120126
<div class="section">
121127
<h2><a name="previous">Previous releases</a><span class="sectionMark">&sect; 2</span></h2>
122128

129+
<h3>0.22.0</h3>
130+
131+
<ul>
132+
<li>A <a href="plugins.html">full plugin API</a> that supports also including plugin loaded artifacts in optimized builds.</li>
133+
<li><a href="node.html">Robust Node support</a>: now can use npm-installed modules, .node add-ons, and modules on require.paths.</li>
134+
<li>Support for <a href="optimization.html#hasjs">has.js optimizations</a> in the optimizer, including dead code branch removal via Closure Compiler.</a>
135+
<li><a href="https://github.com/jrburke/requirejs/commits/">Bug Fixes from 2010-12-21 through 2011-01-05</a>.</li>
136+
</ul>
137+
123138
<h3>0.2.1 (should have been 0.21.0)</h3>
124139

125140
<ul>

require.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** vim: et:ts=4:sw=4:sts=4
2-
* @license RequireJS 0.22.0+ Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
2+
* @license RequireJS 0.23.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
33
* Available via the MIT or new BSD license.
44
* see: http://github.com/jrburke/requirejs for details
55
*/
@@ -11,7 +11,7 @@
1111
var require, define;
1212
(function () {
1313
//Change this version number for each release.
14-
var version = "0.22.0+",
14+
var version = "0.23.0",
1515
commentRegExp = /(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,
1616
cjsRequireRegExp = /require\(["']([^'"\s]+)["']\)/g,
1717
currDirRegExp = /^\.\//,

tasks.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
Release Notes
2-
--------
3-
* Node now supported, and is the default. build.sh is now Node based. If wanting Java, buildj.sh
4-
* Rhino build is slower than before.
5-
* UglifyJS does not do dead code removal, so has() stuff not so useful.
6-
* Node adapter now assumes old node modules always on require.paths: em.com.
7-
* baseUrlMatch is now gone.
8-
* new baseUrl rules: no longer relative to require.js. It is relative to page,
9-
but then if a data-main is found, that directory for that data-main is used.
10-
Explicit setting of baseUrl trumps all.
11-
--> Affects the jquery sample project!
12-
13-
* jquery readywait
14-
* multiple dependencies on same plugin resource.
15-
* jquery 1.5 update waiting
16-
* env plugin
17-
181
Next release
192
--------------
203
- update to jQuery 1.5.1 when released

0 commit comments

Comments
 (0)