

The new detection is a bit stricter than before, so if your script with the public AMD API is not hoisted, please open a r.js issue. A fix for detecting when a script exports an publicly visible AMD API and should be hoisted in the built output.Helps properly parse modules that are using some ES2015 features, like template strings. An update to Esprima 2.2.0 for dependency tracing.The notable changes are in the r.js optimizer: Updates for esprima and uglifyjs2 in the optimizer. The main fixes: a fix in require.js to allow out of order define calls in a built file, and an optimizer fix to detect another UMD pattern and to skip looking at its internal structure.Ī new onNodeCreated hook in require.js that will allow extending requirejs to support Subresource Integrity (SRI). For require.js: fixes a couple of error conditions. Main changes in the r.js optimizer: updates to the Esprima and UglifyJS dependencies. No r.js optimizer-specific bug fixes, but it uses require.js as a dependency. While jshint is used in the repo, it was not properly configured to catch that issue, but it is now. The main issue: a change in 2.1.21 of require.js created an extraneous global. More details on the higher level motivations for the 2.2 release. If you are using 2.2, you are encouraged to update to 2.3.Īlameda was also updated to 1.1.0 to include the same dependency searching change as requirejs 2.3. The r.js optimizer also handles larger directory changes better. 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.

It is now faster and should catch more legitimate dependency cases. The way dependencies are found for the sugared syntax changed slightly in #1582. Without the fix, it causes an error in Node 0.10/0.12. It fixes how the bundled uglifyjs declares the addFile function.

Only one change from 2.3.0, and it is in the optimizer. There was a change in require.js and a change in the r.js optimizer. alameda 1.1.1 also fixes calling plugin normalization more than once.įixes an issue that prevented the 2.3.x optimizer from running in Java's 8+'s jjs. require.js fix for calling plugin normalization more than once. Optimizer updates for esprima and uglify-js dependencies, and a fix for map config used by plugins in builds. Just an update to the optimizer to use Esprima 4.0. Just updates to the optimizer, mainly an update to UglifyJS 2.8.29.
