Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-06-11 | Change line endings from carriage returns to line feedschange-carriage-returns | Rens Baardman | |
2018-04-24 | Fix const regex | Johannes Ewald | |
Fixes an issue where const wasn't properly detected when using destructering. | |||
2018-04-10 | Merge branch 'master' into pr/origin/127 | Johannes Ewald | |
2018-04-10 | Maintain column width when transforming consts | Johannes Ewald | |
2018-04-09 | Replace babel with a regex-based transformation | Johannes Ewald | |
This regex replacement is not 100% safe because transforming JavaScript requires an actual parser. However, parsing (e.g. via babel) comes with its own problems because now the parser needs to be aware of syntax extensions which might not be supported by the parser, but the underlying JavaScript engine. In fact, rewire used to have babel in place but required an extra transform for the object spread operator (check out commit d9a81c0cdacf6995b24d205b4a2068adbd8b34ff or see https://github.com/jhnns/rewire/pull/128). It was also notable slower (see https://github.com/jhnns/rewire/issues/132). There is another issue: replacing const with let is not safe because of their different behavior. That's why we also have ESLint in place which tries to identify this error case. There is one edge case though: when a new syntax is used *and* a const re-assignment happens, rewire would compile happily in this situation but the actual code wouldn't work. However, since most projects have a seperate linting step which catches these const re-assignment errors anyway, it's probably still a reasonable trade-off. Fixes https://github.com/jhnns/rewire/issues/132 | |||
2018-04-09 | Refactor babel plugin initialization in moduleEnv.js | Johannes Ewald | |
2018-04-09 | Remove unused path import | Johannes Ewald | |
2018-01-24 | Add support for object spread/rest operator. | Marko Žarković | |
Before this commit, using rewire on a module that had object spread/rest operator in it would throw an exception. Now it doesn't. | |||
2018-01-16 | use 'coffeescript' package | Oded Niv | |
2017-11-15 | Make sure rewire is not using a .babelrc file | jeroenvalcke | |
2017-11-13 | Require resolve babel plugin so it searches the plugin from the cwd() | jeroenvalcke | |
2017-11-11 | Remove legacy code for node < 4 | Johannes Ewald | |
2017-11-11 | Update .travis.yml | Johannes Ewald | |
Remove unsupported node versions | |||
2017-11-11 | Refactor code | Johannes Ewald | |
2017-11-08 | Remove opts and only use old load functionality for coffee scripts | jeroenvalcke | |
2017-10-19 | Add optional babel const to let parser. | Jeroen Valcke | |
2016-07-01 | Add empty line after var | Johannes Ewald | |
2016-05-18 | Only add .coffee to extensions if it was present before | Tim Schaub | |
2015-11-30 | Should not blow up on modules that export primitives | Eli White | |
2015-11-16 | Move testLib into dedicated folder inside root folder | Johannes Ewald | |
2015-11-14 | Move shared test cases into lib folder | Johannes Ewald | |
Since new versions of npm respect the .npmignore even when it comes from git urls, we need to move the shared test cases into the lib folder in order to provide these cases to other modules which port rewire's functionality to other environments. As discussed at https://github.com/jhnns/rewire-webpack/pull/18 | |||
2015-10-13 | Make properties writable | Eli White | |
2015-04-28 | Fix issue where the strict mode was not detected when a comment was before ↵ | Johannes Ewald | |
"strict mode"; Fixes #54 | |||
2015-04-28 | Fix wrong comments | Johannes Ewald | |
2015-04-28 | Use IIFE like in ↵ | Johannes Ewald | |
https://github.com/jhnns/rewire-webpack/blob/e6ae0c2be0cd7d273ef272b91c2934ecf3447edf/lib/rewire.loader.js Closes #56 | |||
2015-04-28 | Try to require coffee-script on start-up | Johannes Ewald | |
2015-02-23 | Fix problems when global objects like JSON, etc. have been rewired | Johannes Ewald | |
Fixes #40 | |||
2015-02-17 | Add possibility to mock undefined, implicit globals | Johannes Ewald | |
Fixes #35 | |||
2015-02-06 | Add support for dot notation | Johannes Ewald | |
#39 | |||
2015-02-05 | Fix issues with reverting nested properties | Johannes Ewald | |
Fixes #39 | |||
2015-01-16 | ignore invalid variable names during injection of global params | Zolmeister | |
2014-11-04 | Put src generator into dedicated module `getDefinePropertySrc()` | Johannes Ewald | |
2014-11-04 | Fix shadowing of internal `module`, `exports` and `require` when a global ↵ | Johannes Ewald | |
counterpart exists @see https://github.com/jhnns/rewire-webpack/pull/6 | |||
2014-10-28 | mv var to top of function to be consistent with style in rest of file | Rich Trott | |
2014-10-28 | fix leak, add test, for #33 | Rich Trott | |
2014-10-28 | Small refactorings | Johannes Ewald | |
2014-10-25 | rewire methods as non-enumerable | Nick Bottomley | |
2014-07-08 | Add promise feature to __with__ | Johannes Ewald | |
2014-07-08 | Move __with__-function into own module | Johannes Ewald | |
2014-07-08 | Refactor code to match module style | Johannes Ewald | |
2014-07-07 | added __with__ function according to proposed syntax in issue #29 | Bob Pace | |
2014-07-01 | __set__ returns an 'undo' function that when invoked will restore the module ↵ | Bob Pace | |
to the values it had before it was called | |||
2014-05-20 | Added fix for node 0.11.x tests | Johannes Ewald | |
2014-05-20 | Added istanbul for test coverage | Johannes Ewald | |
2013-10-01 | - removed client-side bundlers (for webpack support take a look at ↵ | jhnns | |
https://github.com/jhnns/rewire-webpack) | |||
2013-03-13 | - Added deprecation warning for client-side bundlers | Johannes Ewald | |
- Updated package.json for node v0.10 - Removed tests for client-side bundlers - Updated .travis.yml for node v0.10 - Updated README | |||
2013-03-01 | support module that without last empty line | suisho | |
2013-02-23 | - added Coffee-Script support closes #8 (jashkenas/coffee-script#2707) | Johannes Ewald | |
- renamed internalRewire.js to simply rewire.js - moved all the stuff related to manipulating the module environment to moduleEnv.js | |||
2013-02-20 | - removed old .reset()-export | Johannes Ewald | |
2013-02-12 | - Improved client-side rewire() with webpack | Johannes Ewald | |
- Fixed webpack-version in "devDependencies" |