- Breaking: Remove official Node v10, v12, v14 and v16 support. We had to do this because one of our dependencies had security issues and the version with the fix dropped Node v10 as well. Additionally, there were also package-lock.json issues because of a breaking change at npm 6deb9bd3edb1d3531ffa689968339f9fd390a5d5 092e554955db2591d09b57d3b87a575ee0d510a9
- Breaking: Remove CoffeeScript support e0ea17d2e13ef4fb054980c1c5c62edcfd10632f
- Add TypeScript support #204
- Breaking: Remove Node v8 support. We had to do this because one of our dependencies had security issues and the version with the fix dropped Node v8 as well.
- Update dependencies #193
- Fix Modifying globals within module leaks to global with Node >=10 #167
- Fixed import errors on modules with shebang declarations #179
- Breaking: Remove Node v6 support. We had to do this because one of our dependencies had security issues and the version with the fix dropped Node v6 as well.
- Update dependencies #159 #172 #154 #166
- Fix a bug where
const
was not properly detected #139
- 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 :)