forked from requirejs/requirejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
download.html
584 lines (396 loc) · 29.3 KB
/
download.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
<div id="directory" class="section">
<h1>Download RequireJS</h1>
<ul class="index mono">
<li class="hbox"><a href="#latest">Latest Release</a><span class="spacer boxFlex"></span><span class="sect">§ 1</span></li>
<ul>
<li class="hbox"><a href="#requirejs">require.js</a><span class="spacer boxFlex"></span><span class="sect">§ 1.1</span></li>
<li class="hbox"><a href="#rjs">r.js: Optimizer and Node/Rhino/xpcshell adapter</a><span class="spacer boxFlex"></span><span class="sect">§ 1.2</span></li>
</ul>
<li class="hbox"><a href="#plugins">Plugins</a><span class="spacer boxFlex"></span><span class="sect">§ 2</span></li>
<ul>
<li class="hbox"><a href="#text">text</a><span class="spacer boxFlex"></span><span class="sect">§ 2.1</span></li>
<li class="hbox"><a href="#domReady">domReady</a><span class="spacer boxFlex"></span><span class="sect">§ 2.2</span></li>
<li class="hbox"><a href="#cs">cs (CoffeeScript)</a><span class="spacer boxFlex"></span><span class="sect">§ 2.3</span></li>
<li class="hbox"><a href="#i18n">i18n</a><span class="spacer boxFlex"></span><span class="sect">§ 2.4</span></li>
</ul>
<li class="hbox"><a href="#releasenotes">Release Notes</a><span class="spacer boxFlex"></span><span class="sect">§ 3</span></li>
</ul>
</div>
<div class="section">
<h2><a name="latest">Latest Release</a><span class="sectionMark">§ 1</span></h2>
<span class="note">If you want 1.0: <a href="1.0/">Link to 1.0</a>.</span>
<div class="subSection">
<h4 class="hbox">
<a name="requirejs">require.js 2.3.5</a>
<span class="boxFlex"></span>
<a class="download" href="http://requirejs.org/docs/release/2.3.5/minified/require.js">Minified</a>
<a class="download" href="http://requirejs.org/docs/release/2.3.5/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="rjs">r.js: Optimizer and Node/Rhino/Nashorn/xpcshell adapter</a>
<span class="boxFlex"></span>
<a class="download" href="http://requirejs.org/docs/release/2.3.5/r.js">Download</a>
</h4>
<p>The r.js file allows you to run the optimizer as well as run modules in Node, Rhino, Nashorn or xpcshell.</p>
<p>If you are running in Node, and want to use npm to install this file via npm, see the <a href="node.html">Use with Node</a> page for more information.</p>
<p>For information on its use, as well as how to get the JAR files to run it under Rhino/Nashorn, see the <a href="https://github.com/requirejs/r.js">r.js README</a>.</p>
</div>
</div>
<div class="section">
<h2><a name="plugins">Plugins</a><span class="sectionMark">§ 2</span></h2>
<p>These are useful loader plugins that have the same license terms as require.js itself. Download the plugin file and place it as a sibling to your "data-main" main.js script.</p>
<div class="subSection">
<h4 class="hbox">
<a name="text">text</a>
<span class="boxFlex"></span>
<a class="download" href="https://raw.github.com/requirejs/text/latest/text.js">Download</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>
<div class="subSection">
<h4 class="hbox">
<a name="domReady">domReady</a>
<span class="boxFlex"></span>
<a class="download" href="https://raw.github.com/requirejs/domReady/latest/domReady.js">Download</a>
</h4>
<p><a href="api.html#pageload">Wait for the DOM is ready</a>. Useful for pausing execution of top level application
logic until the DOM is ready for querying/modification.</p>
</div>
<div class="subSection">
<h4 class="hbox">
<a name="cs">cs (CoffeeScript)</a>
<span class="boxFlex"></span>
<a class="download" href="https://github.com/requirejs/require-cs/raw/latest/cs.js">Download</a>
</h4>
<p>Load files written in CoffeeScript. With this plugin, it is easy to code in CoffeeScript in the browser, it can participate in the optimizer optimizations, and it works in Node and Rhino/Nashorn via the <a href="#rjs">RequireJS adapter</a>. This is the best way to do cross-environment, modular CoffeeScript. <a href="https://github.com/requirejs/require-cs">The project home</a> has more information on how to install and use it.</p>
</div>
<div class="subSection">
<h4 class="hbox">
<a name="i18n">i18n</a>
<span class="boxFlex"></span>
<a class="download" href="https://raw.github.com/requirejs/i18n/latest/i18n.js">Download</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>
</div>
<div class="section">
<h2><a name="releasenotes">Release Notes</a><span class="sectionMark">§ 3</span></h2>
<h3 id="2-3-5">2.3.5</h3>
<p>Just updates to the optimizer, mainly an update to UglifyJS 2.8.29.</p>
<ul>
<li><a href="https://github.com/requirejs/r.js/milestone/46?closed=1">Fixed r.js issues</a></li>
</ul>
<h3 id="2-3-4">2.3.4</h3>
<p><a href="https://github.com/requirejs/r.js/issues/963">Just an update to the optimizer to use Esprima 4.0.</a></p>
<h3 id="2-3-3">2.3.3</h3>
<p>Optimizer updates for esprima and uglify-js dependencies, and a fix for map config used by plugins in builds. require.js fix for calling plugin normalization more than once. <a href="https://github.com/requirejs/alameda/milestone/11?closed=1">alameda 1.1.1</a> also fixes calling plugin normalization more than once.</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/milestone/48?closed=1">Fixed requirejs issues</a></li>
<li><a href="https://github.com/requirejs/r.js/milestone/44?closed=1">Fixed r.js issues</a></li>
</ul>
<h3 id="2-3-2">2.3.2</h3>
<p>Fixes an issue that prevented the 2.3.x optimizer from running in Java's 8+'s jjs. There was a <a href="https://github.com/requirejs/requirejs/issues/1588">change in require.js</a> and a <a href="https://github.com/requirejs/r.js/issues/933">change in the r.js optimizer</a>.</p>
<h3 id="2-3-1">2.3.1</h3>
<p>Only one change from 2.3.0, and it is in the optimizer. <a href="https://github.com/requirejs/r.js/issues/929">It fixes how the bundled uglifyjs declares the addFile function</a>. Without the fix, it causes an error in Node 0.10/0.12. Newer versions of Node are not affected.</p>
<h3 id="2-3-0">2.3.0</h3>
<p>The way dependencies are found for the <a href="http://requirejs.org/docs/whyamd.html#sugar">sugared syntax</a> changed slightly in <a href="https://github.com/requirejs/requirejs/pull/1582">#1582</a>. It is now faster and should catch more legitimate dependency cases. You should not notice any negative consequences to the change, but given how important that mechanism is, it was best to rev the minor version to 2.3. The r.js optimizer also <a href="https://github.com/requirejs/r.js/issues/921">handles larger directory changes better</a>. If you are using 2.2, you are encouraged to update to 2.3.</p>
<p><a href="https://github.com/requirejs/alameda/releases/tag/1.1.0">alameda was also updated to 1.1.0</a> to include the same dependency searching change as requirejs 2.3.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.3.0+is%3Aclosed">Fixed requirejs issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.3.0+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-2-0">2.2.0</h3>
<p><a href="http://jrburke.com/2016/03/17/requirejs-2.2-alameda-1.0-released/">More details on the higher level motivations for the 2.2 release.</a></p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.2.0+is%3Aclosed">Fixed requirejs issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.2.0+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-22">2.1.22</h3>
<p>The main issue: a change in 2.1.21 of require.js created an extraneous global. While jshint is used in the repo, it was not properly configured to catch that issue, but it is now. Only the require.js loader changed. No r.js optimizer-specific bug fixes, but it uses require.js as a dependency.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.22+is%3Aclosed">Fixed requirejs issues</a></li>
</ul>
<h3 id="2-1-21">2.1.21</h3>
<p>Main changes in the r.js optimizer: updates to the Esprima and UglifyJS dependencies. For require.js: fixes a couple of error conditions.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.21+is%3Aclosed">Fixed requirejs issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.21+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-20">2.1.20</h3>
<p>The main fixes: a fix in require.js to allow out of <a href="https://github.com/requirejs/requirejs/issues/1389">order define calls in a built file</a>, and an optimizer fix to <a href="https://github.com/requirejs/r.js/issues/833">detect another UMD pattern</a> and to skip looking at its internal structure.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.20+is%3Aclosed">Fixed requirejs issue</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.20+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-19">2.1.19</h3>
<p>A new <a href="https://github.com/requirejs/requirejs/pull/1364">onNodeCreated</a> hook in require.js that will allow extending requirejs to support <a href="https://w3c.github.io/webappsec/specs/subresourceintegrity/">Subresource Integrity (SRI)</a>. Updates for esprima and uglifyjs2 in the optimizer.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.19+is%3Aclosed">Fixed requirejs issue</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.19+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-18">2.1.18</h3>
<p>The notable changes are in the r.js optimizer:</p>
<ul>
<li>An update to Esprima 2.2.0 for dependency tracing. Helps properly parse modules that are using some ES2015 features, like template strings.</li>
<li>A fix for detecting when a script exports an publicly visible AMD API and should be hoisted in the built output. The new detection is a bit stricter than before, so if your script with the public AMD API is not hoisted, please open a <a href="https://github.com/requirejs/r.js/issues">r.js issue</a>.</li>
</ul>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.18+is%3Aclosed">Fixed requirejs issue</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.18+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-17">2.1.17</h3>
<p>The notable changes are in the r.js optimizer: an update to Esprima 2.1.0 for dependency tracing, and a fix around "use strict" processing that should help some loader plugins or build scenarios that were using React.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.17+is%3Aclosed">Fixed requirejs issue</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.17+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-16">2.1.16</h3>
<p>The notable changes are in the r.js optimizer:</p>
<ul>
<li><a href="http://esprima.org/">Esprima 2.0</a> is used by the optimizer when parsing modules for dependencies. This allows some ES6 features to be used. Whatever is parsable by Esprima 2.0 is what is supported (when running in xpcshell, <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API">Reflect.parse</a> is still used).</li>
<li><a href="https://github.com/requirejs/r.js#nashorn">The r.js optimizer runs in Nashorn now</a>.</li>
<li>Expanded support of some UMD-wrapped files that start with <code>!function(a) {...`</code>. If you use the <a href="https://github.com/ForbesLindesay/umd">UMD node package</a> to generate your UMD wrappers, upgrade to [email protected] or later to get full compatibility with the r.js optimizer.</li>
</ul>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?q=milestone%3A2.1.16+is%3Aclosed">Fixed requirejs issue</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.16+is%3Aclosed">Fixed r.js issues</a></li>
</ul>
<h3 id="2-1-15">2.1.15</h3>
<p>Mainly fixes a regression from 2.1.14 in the r.js optimizer where <a href="https://github.com/requirejs/r.js/issues/704">some define() calls were not found</a>. The most common manifestations of the bug would be either an extra <code>define('jquery', function(){})</code> in the build output or namespaced builds not working. The fixes for 2.1.15 are just in the optimizer. Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/r.js/issues?q=milestone%3A2.1.15+is%3Aclosed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-14">2.1.14</h3>
<p>A couple more regression fixes for 2.1.12. One to <a href="https://github.com/requirejs/requirejs/issues/1131">fix nested plugin ID normalization</a>, like "pluginA!pluginbB!resource", and one for the <a href="https://github.com/requirejs/requirejs/issues/1133">optimizer incorrectly detecting UMD wrapped code</a>.</p>
<h3 id="2-1-13">2.1.13</h3>
<p>Version 2.1.12 regressed around ID normalization. <a href="https://github.com/requirejs/requirejs/issues/1129">2.1.13 fixes that regression</a>, and it is recommended that you do not use 2.1.12, but use 2.1.13 instead.</p>
<h3 id="2-1-12">2.1.12</h3>
<p>Just a bug fix/maintenance release. Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=34&page=1&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=31&page=1&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-11">2.1.11</h3>
<p>Some bug fixes, with the most notable addition is an optimizer option, <code>wrapShim</code>. This will wrap shimmed dependencies in a define() call so that they work better after a build when their upstream dependencies are also AMD modules with dependencies.</p>
<p>The most notable case is probably when using an AMD-aware version of Backbone, but using shim config for scripts that depend on Backbone. If this is your use case, then setting <code>wrapShim: true</code> in the optimizer config will likely fix any post-build problem you might see. More details in <a href="https://github.com/requirejs/r.js/issues/623">the bug ticket</a>.
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=33&page=1&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=30&page=1&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-10">2.1.10</h3>
<p>Mainly a maintenance release, and improves some cases when reusing code that was installed via npm. There are two new config options for the loader too:</p>
<ul>
<li><a href="api.html#config-nodeIdCompat">nodeIdCompat</a>: some node modules installed by npm use module IDs like <code>example.js</code> and <code>example</code> interchangeably. Setting this config option to true will accommodate that style. <a href="https://github.com/requirejs/almond">almond</a> 0.2.9+ also supports this option.</li>
<li><a href="api.html#config-bundles">bundles</a>: a more compact way to list a set of module IDs belonging to a bundle ID, and supports loader plugin resource IDs.</li>
</ul>
<p>And for the optimizer, the <a href="optimization.html#mainConfigFile">mainConfigFile</a> option can now take an array of file paths that have configs in them. Later values take precedent over earlier values.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=32&page=1&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=29&page=1&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-9">2.1.9</h3>
<p>Full list of changes:</p>
<p>Mainly a maintenance release to fix bugs. There is a new <a href="api.html#config-skipDataMain">skipDataMain</a> option in require.js to avoid the data-main work, which can be useful for browser extensions that should let the main content page's requirejs handle the data-main.</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=31&page=1&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=28&page=1&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-8">2.1.8</h3>
<p>A small release to fix an optimizer issue with <a href="https://github.com/requirejs/r.js/issues/476">parsing config calls for modifications</a>.</p>
<h3 id="2-1-7">2.1.7</h3>
<p>The main changes for this release:</p>
<ul>
<li>For xpcshell, the optimizer uses the built in Reflect parser API instead of Esprima. xpcshell, on Linux and Windows in particular, has a constrained stack, and normal Esprima use was not possible. To accommodate this change, some of the parsing approaches used internally by r.js moved away from token scanning to tree walking. The only visible output change you may see is different use of space characters in transformed code.</li>
<li>The source map support was updated to use the new //# syntax as specified by the spec. This change is still making its way through the browsers, so if you need source map or sourceURL support with 2.1.7, you may need to use Firefox Aurora or Chrome Canary channels. The browser support levels should get better in around six weeks time.</li>
</ul>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?direction=desc&milestone=28&page=1&sort=created&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=26&page=1&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-6">2.1.6</h3>
<p><a href="optimization.html#sourcemaps">Source map support</a> has been expanded. Previously, it was just supported for going from minified, bundled code to the unminified, bundled code. If <code>optimize: 'uglify2'</code> is used, it will now go back to the separated, unbundled files.</p>
<p>Source map support is still considered experimental though, so you may find bugs. If you find one, file an <a href="https://github.com/requirejs/r.js/issues">r.js issue</a>, ideally with a test case.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?direction=desc&milestone=27&page=1&sort=created&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=25&page=1&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-5">2.1.5</h3>
<p>Biggest change is support for running the optimizer and loading AMD modules in
<a href="https://developer.mozilla.org/en-US/docs/XPConnect/xpcshell">xpcshell</a>. Other than that,
just a maintenance release.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?direction=desc&milestone=26&sort=created&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=23&state=closed">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-4">2.1.4</h3>
<p>Quick release for a bug that slipped in the 2.1.3 release in the r.js optimizer.
So even though require.js now has a 2.1.4 version, it is the same as 2.1.3,
and the optimizer is the same as 2.1.3 except for this one fix:</p>
<ul>
<li><a href="https://github.com/requirejs/r.js/issues/356">Bug 356</a>: cssPrefix normalization always needs to happen</li>
</ul>
<p>Without this fix, in some cases 2.1.3 would insert "undefined" in some
optimized CSS files, making them unusable.</p>
<h3 id="2-1-3">2.1.3</h3>
<p>Maintenance release. A change that may be noticeable:</p>
<p><a href="http://requirejs.org/docs/api.html#modulenotes-urls">require.toUrl()</a>
now correctly generates URLs for string values passed to it without an
extension. Previous versions of toUrl() would append a
".js" extension automatically. If you relied on that behavior, when you
update to 2.1.3, then you may need to do a code change to append the .js
extension yourself:</p>
<pre><code>require.toUrl('some/value') + '.js'</code></pre>
<p>The text plugin has been updated to also work with this change, so if you want
to generate non-extension paths for text resources, be sure to upgrade to
to the <a href="https://raw.github.com/requirejs/text/latest/text.js">2.0.4 version of text.js</a>.</p>
<p>Normal use of toUrl with a value that has an extension continues to work the same.</p>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?direction=desc&milestone=24&page=1&sort=created&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=21">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-2">2.1.2</h3>
<p>The big changes for this release are in the optimizer:</p>
<ul>
<li>The optimizer can now <a href="optimization.html#requirements">run in the browser</a>, to enable web-based custom builds of your library.</li>
<li>"uglify2" is an allowed "optimize" value now, using UglifyJS 2.1.11.</li>
<li>Experimental support for <a href="optimization.html#sourcemaps">source maps</a>.</li>
<li>The optimizer runs faster now, and has some <a href="optimization.html#turbo">speed options</a>.</li>
</ul>
<p>Full list of changes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=22&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=20">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-1">2.1.1</h3>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=21&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=19">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-1-0">2.1.0</h3>
<p>See the <a href="https://github.com/requirejs/requirejs/wiki/Upgrading-to-RequireJS-2.1">Upgrading to 2.1 page</a>.
<h3 id="2-0-6">2.0.6</h3>
<p>The main focus of this release was cleaning up some rough edges after switching to esprima for all module parsing. Most notably, findNestedDependencies should work correctly again. The bundled UglifyJS was updated to 1.3.3 too.</p>
<p>Complete list of fixes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=20&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=18">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-0-5">2.0.5</h3>
<p>Probably the most notable changes:</p>
<ul>
<li>require.js: fix for <a href="https://github.com/requirejs/requirejs/issues/392">a 'use strict' issue in Safari 6</a>: should only show up in certain non-optimized scenarios.</li>
<li>r.js optimizer: changed over to <a href="http://esprima.org/">esprima</a> for all dependency tracing. This set the stage for allowing some forms of <a href="https://github.com/requirejs/r.js/issues/72">JavaScript 1.8 to be optimized</a>, with the
help of some regexps.</li>
</ul>
<p>Complete list of fixes:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=19&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=17">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-0-4">2.0.4</h3>
<p>Same as 2.0.3, but rolled back a change in r.js that caused a logging error.</p>
<ul>
<li><a href="https://github.com/requirejs/r.js/issues/225">Fixed r.js logging rollback</a></li>
</ul>
<h3 id="2-0-3">2.0.3</h3>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=17&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=15">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-0-2">2.0.2</h3>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=16&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=14">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-0-1">2.0.1</h3>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=15&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=13">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="2-0-0">2.0.0</h3>
<ul>
<li><a href="https://github.com/requirejs/requirejs/wiki/Upgrading-to-RequireJS-2.0">2.0 changes</a></li>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=13&sort=created&direction=desc&state=closed">Fixed require.js issues</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=10">Fixed r.js optimizer issues</a></li>
</ul>
<h3 id="1-0-8">1.0.8</h3>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=12&sort=created&direction=desc&state=closed">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=9">r.js optimizer</a></li>
</ul>
<h3 id="1-0-7">1.0.7</h3>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=11&sort=created&direction=desc&state=closed">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=8">r.js optimizer</a></li>
</ul>
<h3 id="1-0-6">1.0.6</h3>
<p>Main purpose of the release is to fix a regression in 1.0.5 where the
optimizer's "dir" config option was not applied correctly when passed on the
command line.</p>
<p>The other notable change: the optimizer now supports
<a href="https://github.com/requirejs/r.js/blob/master/build/example.build.js#L320">onBuildRead
and onBuildWrite</a> functions that are called when JS modules are read or written
for an optimized build layer. This allows doing some regexp work to modify their
contents.</p>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=10&sort=created&direction=desc&state=closed">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=7">r.js optimizer</a></li>
</ul>
<h3 id="1-0-5">1.0.5</h3>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=8&sort=created&direction=desc&state=closed">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=6">r.js optimizer</a></li>
</ul>
<h3 id="1-0-4">1.0.4</h3>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=7&sort=created&direction=desc&state=closed">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=5&sort=created&direction=desc&state=closed">r.js optimizer</a></li>
</ul>
<h3 id="1-0-3">1.0.3</h3>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?sort=created&direction=desc&state=closed&page=1&milestone=6">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=4">r.js optimizer</a></li>
</ul>
<h3 id="1-0-2">1.0.2</h3>
<p>Small bug fixes to:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?sort=created&direction=desc&state=closed&page=1&milestone=5">require.js</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?sort=created&direction=desc&state=closed&page=1&milestone=3">r.js optimizer</a></li>
</ul>
<h3 id="1-0-1">1.0.1</h3>
<p>Just small bug fixes related to:</p>
<ul>
<li>allowing full URLs for simplified CommonJS wrapped modules</li>
<li>AST parsing of dependencies for modules that use a variable for the factory function</li>
<li>catching more cases that should have the "namespace" optimizer option applied</li>
</ul>
<p>Detailed list of changes for require.js and the r.js optimizer:</p>
<ul>
<li><a href="https://github.com/requirejs/requirejs/issues?milestone=4&state=closed">require.js 1.0.1 changes</a></li>
<li><a href="https://github.com/requirejs/r.js/issues?milestone=2&state=closed">r.js 1.0.1 changes</a></li>
</ul>
</div>