- Breaking: Remove official node v4 support. It probably still works with node v4, but no guarantees anymore.
- Potentially breaking: Replace babel with regex-based transformation 9b77ed9a293c538ec3eb5160bcb933e012ce517f. This should not break, but it has been flagged as major version bump as the regex might not catch all cases reliably and thus fail for some users.
- Improve runtime performance #132
- Use
coffeescript
package in favor of deprecatedcoffee-script
#134
- Fix cluttering of
require.extensions
even if CoffeeScript is not installed #98
- Ignore modules that export non-extensible values like primitives or sealed objects #83
- Provide shared test cases to other modules that mimic rewire's behavior in other environments jhnns/rewire-webpack#18
- Make rewire's special methods
__set__
,__get__
and__with__
writable #78
- Fix issue where the strict mode was not detected when a comment was before "strict mode"; #54
- Fix a problem when a function declaration had the same name as a global variable #56
- Add README section about rewire's limitations
- Fix problems when global objects like JSON, etc. have been rewired #40
- Add possibility to mock undefined, implicit globals #35
- Add support for dot notation in set(env) calls #39
- Fix issues with reverting nested properties #39
- Fix problems when an illegal variable name is used for a global
- Fix shadowing of internal
module
,exports
andrequire
when a global counterpart exists jhnns/rewire-webpack#6
- Fixed missing
var
statement which lead to pollution of global namespace #33
- Made magic
__set__
,__get__
and__with__
not enumerable #32
- Added revert feature of
__set__
method - Introduced
__with__
method to revert changes automatically
- Added test coverage tool
- Small README and description changes
- Removed client-side bundler extensions. Browserify is not supported anymore. Webpack support has been extracted into separate repository https://github.com/jhnns/rewire-webpack
- Removed IDE stuff from npm package
- Added deprecation warning for client-side bundlers
- Updated package.json for node v0.10
- Fixed bug with modules that had a comment on the last line
- Added Coffee-Script support
- Removed Makefile: Use
npm test
instead.
- Improved client-side rewire() with webpack
- Fixed error with client-side bundlers when a module was ending with a comment
- Improved strict mode detection
- Fixed crash when a global module has been used in the browser
- Removed caching functionality. Now rewire doesn't modify
require.cache
at all - Added support for webpack-bundler
- Moved browserify-middleware from
rewire.browserify
torewire.bundlers.browserify
- Reached stable state :)