rewire

Easy monkey-patching for node.js unit tests

MIT License

Downloads
1.5M
Stars
3.1K
Committers
26

Bot releases are visible (Hide)

rewire - v7.0.0 Latest Release

Published by jhnns about 1 year ago

rewire - v6.0.0

Published by jhnns almost 3 years ago

  • 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
rewire - v5.0.0

Published by jhnns almost 3 years ago

  • 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
rewire - v4.0.1

Published by jhnns over 6 years ago

  • Fix a bug where const was not properly detected #139
rewire - v4.0.0

Published by jhnns over 6 years ago

  • 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 deprecated coffee-script #134
rewire - v3.0.2

Published by jhnns almost 7 years ago

  • Fix a bug where rewire used the project's .babelrc #119 #123
rewire - v3.0.1

Published by jhnns almost 7 years ago

  • Fix Unknown Plugin "transform-es2015-block-scoping" #121 #122
rewire - v3.0.0

Published by jhnns almost 7 years ago

  • Breaking: Remove support for node versions below 4
  • Add support for const #79 #95 #117 #118
rewire - v2.5.2

Published by jhnns over 8 years ago

  • Fix cluttering of require.extensions even if CoffeeScript is not installed #98
rewire - v2.5.1

Published by jhnns almost 9 years ago

  • Ignore modules that export non-extensible values like primitives or sealed objects #83
rewire - v2.5.0

Published by jhnns almost 9 years ago

  • Provide shared test cases to other modules that mimic rewire's behavior in other environments jhnns/rewire-webpack#18
rewire - v2.4.0

Published by jhnns almost 9 years ago

  • Make rewire's special methods __set__, __get__ and __with__ writable #78
rewire - v2.3.4

Published by jhnns over 9 years ago

  • Add license and keywords to package.json #59 #60
rewire - v2.3.3

Published by jhnns over 9 years ago

  • Fix issue where the strict mode was not detected when a comment was before "strict mode"; #54
rewire - v2.3.2

Published by jhnns over 9 years ago

  • Fix a problem when a function declaration had the same name as a global variable #56
  • Added README section about rewire's limitations
rewire - v2.3.1

Published by jhnns over 9 years ago

  • Fix problems when global objects like JSON, etc. have been rewired #40
rewire - v2.3.0

Published by jhnns over 9 years ago

  • Add possibility to mock undefined, implicit globals #35
rewire - v2.2.0

Published by jhnns over 9 years ago

  • Add support for dot notation in set(env) calls #39
rewire - v2.1.5

Published by jhnns over 9 years ago

  • Fix issues with reverting nested properties
rewire - v2.1.4

Published by jhnns almost 10 years ago

  • Fix problems when an illegal variable name is used for a global
Package Rankings
Top 0.77% on Npmjs.org
Badges
Extracted from project README
Coverage Status
Related Projects