Skip to content

Commit ae1c051

Browse files
committed
Switch to https:/requirejs.org, for #1741
1 parent af68db7 commit ae1c051

File tree

8 files changed

+22
-27
lines changed

8 files changed

+22
-27
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Contributing to requirejs
22

3-
[See the requirejs.org contributing page](http://requirejs.org/docs/contributing.html).
3+
[See the requirejs.org contributing page](https://requirejs.org/docs/contributing.html).
44

55
If you have a question about a specific setup or using particular libraries or file layouts with requirejs, then it is best to ask that on [Stack Overflow using the requirejs tag](https://stackoverflow.com/questions/tagged/requirejs). New issues here are best used for bug reports that have test cases or examples.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@
22

33
RequireJS loads plain JavaScript files as well as more defined modules. It is
44
optimized for in-browser use, including in
5-
[a Web Worker](http://requirejs.org/docs/api.html#webworker), but it can be used
5+
[a Web Worker](https://requirejs.org/docs/api.html#webworker), but it can be used
66
in other JavaScript environments, like Rhino and
7-
[Node](http://requirejs.org/docs/node.html). It implements the
7+
[Node](https://requirejs.org/docs/node.html). It implements the
88
[Asynchronous Module](https://github.com/amdjs/amdjs-api/wiki/AMD)
99
API.
1010

1111
RequireJS uses plain script tags to load modules/files, so it should allow for
1212
easy debugging. It can be used
13-
[simply to load existing JavaScript files](http://requirejs.org/docs/api.html#jsfiles),
13+
[simply to load existing JavaScript files](https://requirejs.org/docs/api.html#jsfiles),
1414
so you can add it to your existing project without having to re-write your
1515
JavaScript files.
1616

17-
RequireJS includes [an optimization tool](http://requirejs.org/docs/optimization.html)
17+
RequireJS includes [an optimization tool](https://requirejs.org/docs/optimization.html)
1818
you can run as part of your packaging steps for deploying your code. The
1919
optimization tool can combine and minify your JavaScript files to allow for
2020
better performance.
2121

2222
If the JavaScript file defines a JavaScript module via
23-
[define()](http://requirejs.org/docs/api.html#define), then there are other benefits
24-
RequireJS can offer: [improvements over traditional CommonJS modules](http://requirejs.org/docs/commonjs.html)
25-
and [loading multiple versions](http://requirejs.org/docs/api.html#multiversion)
23+
[define()](https://requirejs.org/docs/api.html#define), then there are other benefits
24+
RequireJS can offer: [improvements over traditional CommonJS modules](https://requirejs.org/docs/commonjs.html)
25+
and [loading multiple versions](https://requirejs.org/docs/api.html#multiversion)
2626
of a module in a page. RequireJS also has a plugin system that supports features like
27-
[i18n string bundles](http://requirejs.org/docs/api.html#i18n), and
28-
[text file dependencies](http://requirejs.org/docs/api.html#text).
27+
[i18n string bundles](https://requirejs.org/docs/api.html#i18n), and
28+
[text file dependencies](https://requirejs.org/docs/api.html#text).
2929

3030
RequireJS does not have any dependencies on a JavaScript framework.
3131

3232
RequireJS works in IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+.
3333

34-
[Latest Release](http://requirejs.org/docs/download.html)
34+
[Latest Release](https://requirejs.org/docs/download.html)
3535

3636
## License
3737

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">2.3.5</a></span>
3+
<span class="line">Latest Release: <a href="https://requirejs.org/docs/download.html">2.3.5</a></span>
44
<span class="line">Open source: <a href="https://github.com/requirejs/requirejs/blob/master/LICENSE">new BSD or MIT licensed</a></span>
55
<span class="line">web design by <a href="http://andychung.me/">Andy Chung</a> &copy; 2011-2017</span>
66
</div>

dist/pre.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ <h1>a javascript module loader</h1>
177177

178178
<ul>
179179
<li class="version">2.3.5 Docs (<a href="https://github.com/requirejs/requirejs/wiki/Upgrading-to-RequireJS-2.1">upgrade info</a>)</li>
180-
<li class="version"><a class="local" href="1.0/">1.0 Doc Link</a></li>
181180
</ul>
182181

183182
</div>

docs/api.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<div id="directory" class="section">
22
<h1>RequireJS API</h1>
33

4-
<span class="note">This is the <a href="https://github.com/requirejs/requirejs/wiki/Upgrading-to-RequireJS-2.0">RequireJS 2.0 API</a>. If you want 1.0: <a href="1.0/">Link to 1.0</a>.</span>
5-
64
<ul class="index mono">
75
<li class="hbox"><a href="#usage">Usage</a><span class="spacer boxFlex"></span><span class="sect">&sect;&sect; 1-1.3</span></li>
86
<ul>
@@ -828,7 +826,7 @@ <h2>
828826
});
829827

830828
//bar.js, which uses simplified CJS wrapping:
831-
//http://requirejs.org/docs/whyamd.html#sugar
829+
//https://requirejs.org/docs/whyamd.html#sugar
832830
define(function (require, exports, module) {
833831
//Will be the value 'large'
834832
var size = module.config().size;

docs/download.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ <h1>Download RequireJS</h1>
2121
<div class="section">
2222
<h2><a name="latest">Latest Release</a><span class="sectionMark">&sect; 1</span></h2>
2323

24-
<span class="note">If you want 1.0: <a href="1.0/">Link to 1.0</a>.</span>
25-
2624
<div class="subSection">
2725
<h4 class="hbox">
2826
<a name="requirejs">require.js 2.3.5</a>
2927
<span class="boxFlex"></span>
30-
<a class="download" href="http://requirejs.org/docs/release/2.3.5/minified/require.js">Minified</a>
31-
<a class="download" href="http://requirejs.org/docs/release/2.3.5/comments/require.js">With Comments</a>
28+
<a class="download" href="https://requirejs.org/docs/release/2.3.5/minified/require.js">Minified</a>
29+
<a class="download" href="https://requirejs.org/docs/release/2.3.5/comments/require.js">With Comments</a>
3230
</h4>
3331

3432
<p>All you need to start using require.js in the browser.</p>
@@ -38,7 +36,7 @@ <h4 class="hbox">
3836
<h4 class="hbox">
3937
<a name="rjs">r.js: Optimizer and Node/Rhino/Nashorn/xpcshell adapter</a>
4038
<span class="boxFlex"></span>
41-
<a class="download" href="http://requirejs.org/docs/release/2.3.5/r.js">Download</a>
39+
<a class="download" href="https://requirejs.org/docs/release/2.3.5/r.js">Download</a>
4240
</h4>
4341

4442
<p>The r.js file allows you to run the optimizer as well as run modules in Node, Rhino, Nashorn or xpcshell.</p>
@@ -130,7 +128,7 @@ <h3 id="2-3-1">2.3.1</h3>
130128

131129
<h3 id="2-3-0">2.3.0</h3>
132130

133-
<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>
131+
<p>The way dependencies are found for the <a href="https://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>
134132

135133
<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>
136134

@@ -373,7 +371,7 @@ <h3 id="2-1-3">2.1.3</h3>
373371

374372
<p>Maintenance release. A change that may be noticeable:</p>
375373

376-
<p><a href="http://requirejs.org/docs/api.html#modulenotes-urls">require.toUrl()</a>
374+
<p><a href="https://requirejs.org/docs/api.html#modulenotes-urls">require.toUrl()</a>
377375
now correctly generates URLs for string values passed to it without an
378376
extension. Previous versions of toUrl() would append a
379377
".js" extension automatically. If you relied on that behavior, when you

docs/whyamd.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ <h2>Verbosity vs. Usefulness</h2>
311311
<ul>
312312
<li><strong>Returning a function as the module value</strong>, particularly a constructor function, leads to better API design. Node has module.exports to allow this, but being able to use "return function (){}" is much cleaner. It means not having to get a handle on "module" to do module.exports, and it is a clearer code expression.</li>
313313
<li><strong>Dynamic code loading</strong> (done in AMD systems via <a href="https://github.com/amdjs/amdjs-api/wiki/require">require([], function (){})</a>) is a basic requirement. CJS talked about it, had some proposals, but it was not fully embraced. Node does not have any support for this need, instead relying on the synchronous behavior of require(''), which is not portable to the web.</li>
314-
<li><strong><a href="http://requirejs.org/docs/plugins.html">Loader plugins</a></strong> are incredibly useful. It helps avoid the nested brace indenting common in callback-based programming.</li>
314+
<li><strong><a href="https://requirejs.org/docs/plugins.html">Loader plugins</a></strong> are incredibly useful. It helps avoid the nested brace indenting common in callback-based programming.</li>
315315
<li><strong>Selectively mapping one module</strong> to load from another location makes it easy to provide mock objects for testing.</li>
316316
<li>There should only be at most <strong>one IO action for each module</strong>, and it should be straightforward. Web browsers are not tolerant of multiple IO lookups to find a module. This argues against the multiple path lookups that Node does now, and avoiding the use of a package.json "main" property. Just use module names that map easily to one location based on the project's location, using a reasonable default convention that does not require verbose configuration, but allow for simple configuration when needed.</li>
317317
<li>It is best if there is an <strong>"opt-in" call</strong> that can be done so that older JS code can participate in the new system.</li>
@@ -352,14 +352,14 @@ <h2>
352352
<ul>
353353
<li>Give an AMD loader a try. You have some choices:
354354
<ul>
355-
<li><a href="http://requirejs.org">RequireJS</a></li>
355+
<li><a href="https://requirejs.org">RequireJS</a></li>
356356
<li><a href="https://github.com/cujojs/curl">curl</a></li>
357357
<li><a href="https://github.com/zazl/lsjs">lsjs</a></li>
358358
<li><a href="http://dojotoolkit.org/">Dojo</a> 1.7+</li>
359359
</ul></li>
360360
<li>If you want to use AMD but still use the <strong>load one script at the bottom of the HTML page</strong> approach:
361361
<ul>
362-
<li>Use the <a href="http://requirejs.org/docs/optimization.html">RequireJS optimizer</a> either in command line mode or as an <a href="https://github.com/requirejs/r.js/blob/master/build/tests/http/httpBuild.js">HTTP service</a> with the <a href="https://github.com/requirejs/almond">almond AMD shim</a>.</li>
362+
<li>Use the <a href="https://requirejs.org/docs/optimization.html">RequireJS optimizer</a> either in command line mode or as an <a href="https://github.com/requirejs/r.js/blob/master/build/tests/http/httpBuild.js">HTTP service</a> with the <a href="https://github.com/requirejs/almond">almond AMD shim</a>.</li>
363363
</ul></li>
364364
</ul>
365365

require.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ var requirejs, require, define;
165165
* @returns {Error}
166166
*/
167167
function makeError(id, msg, err, requireModules) {
168-
var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
168+
var e = new Error(msg + '\nhttps://requirejs.org/docs/errors.html#' + id);
169169
e.requireType = id;
170170
e.requireModules = requireModules;
171171
if (err) {

0 commit comments

Comments
 (0)