- Update
require.jsandr.jsto2.3.5, andalmond.jsto0.3.3. - Add
wrapShimtobuild_config_whitelist.
- Update
require.jsandr.jsto2.1.22. - Fix a
sass-rails3.*.*backwards compatibility issue (credit@merqlove). - Fix a Sprockets
3.3.0backwards compatibility issue (credit@swils).
- Fix an asset digesting regression in #238 (credit @jonhyman).
- Update
require.jsandr.jsto2.1.19.
- Fix a bad regression and yank v0.9.7.
- Fix a corner case where modules could appear in the build config's
paths. - Fix regressions introduced in v0.9.6.
- Allow protocol relative urls for CDNs in the build config's
paths(credit @remybach).
- Update
require.jsandr.jsto2.1.17, andalmond.jsto0.3.1. - Improve handling of Bower packages.
- Make a small fix for Sprockets 3 support.
- Update
require.jsandr.jsto2.1.15, andalmond.jsto0.3.0. - Remove
data-mainattribute generation fromrequirejs_include_tagand replicate its functionality with an explicitrequirecall. This paves the way for proper almond support. - Instead of disabling JS compression everywhere, only do so when staging
r.jsinput files. This enablesrequire.jsitself to be compiled (or not) by the asset pipeline, like any other asset. - Add support for
bower.jsonmodules.
- Restore compression of non-module JS assets if specified, including
require.jsitself. - Update
require.jsto2.1.14.
- Add detection and proper handling of Bower-based modules.
- Update
require.jsto2.1.11andalmond.jsto0.2.9.
- Update
require.jsto2.1.10andalmond.jsto0.2.5. - Rails 4 support.
- Updated to to require.js \ r.js 2.1.2, and almond 0.2.3
- BREAKING CHANGE: Upgrade RequireJS and r.js to v2.0.0
- order.js was removed. See the new RequireJS 2.0 shim config.
- Build support for
empty:is now handled by r.js 2.0 natively.
- Fix for
requirejs_include_tagerror whenconfig/requirejs.ymlhas nopathskey. Thanks to @JustinLove for the issue and failing test!
- Build will now substitute
empty:for the right-hand side ofconfig/requirejs.ymlpaths entries that are URLs. - Documented how to configure assets hosted on a CDN.
- Upgrade RequireJS and r.js to v1.0.8
- Add require.js to config.assets.precompile in all environments. Closes #45. This change allows builds to work in Rails environments other than 'production', e.g. 'staging'. Thanks to @hollow for the fix.
- Liberalize asset path filtering.
0.7.0added filtering on the logical asset path which was too aggressive in that only.jsfiles were allowed in builds. The RequireJS config variablelogical_asset_filterhas been added, which allows.js,.html,.txtfiles by default and is user configurable.
- Support for almond via
config.requirejs.loader = :almondin application.rb. - Builds with
config.assets.initialize_on_precompile = falsenow work. This supports building on Heroku, builds with Devise, etc. all of which require that setting. - We should now play much better with existing Rails Engines that leverage the asset pipeline for their needs. Thanks to @hollow for the patch.
- Fix regression in production env when
pathsspecified in requirejs.yml.
NOTE: Upgrade to 0.6.1! This was yanked due to a regression.
- We now generate a paths config to hit digested assets when needed (in
productionor whenconfig.assets.digestis true). Fixes #20. - Support for generating additional data attributes on the require.js script
tag via
requirejs_include_tag. See README for details. Closes pull request #32; thanks to @hollow for the submission!
- Upgrade to RequireJS and r.js 1.0.7
- Support for Rails 3.2.x. Rails 3.1.x is also supported by this release.
- Upgrade to RequireJS and r.js 1.0.5
- Pull request #31, closes #30. Thanks @karelim!
- Upgrade to RequireJS and r.js 1.0.4
- Pulled #22, fix for asset compliation failure with no config/requirejs.yml. Thanks @arehberg!
- Upgrade to RequireJS and r.js 1.0.3
-
This is a quick turn to fix an issue that could trigger an Anonymous mismatched define() error from require.js and/or r.js.
The preferred way to use the helper tag is now with an argument, like so:
<%= requirejs_include_tag "application" %>
This usage ensures that the above helper will correctly generate a data-main attribute for the script tag. The requirejs_include_tag helper still works without an argument, and won't generate data-main in that case.
Thanks to Andrew de Andrade for the catch.
- Precompilation via
rake assets:precompileis now implemented. - gem configuration via application.js is deprecated.
- Application-specific require.js configuration lives in
config/requirejs.yml. - See README for updated usage details.
- Fixed stupid problems with Rails::Engine instantiation.
- Test improvements
- Upgrade to RequireJS 1.0.2
- Birthday!
- This gem makes
require.jsand theorder.jsplugin available to the Rails 3 Asset Pipeline.