1 | Changelog
|
2 | ---------
|
3 |
|
4 | ### 7.0.0
|
5 | - **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](https://github.com/jhnns/rewire/commit/6deb9bd3edb1d3531ffa689968339f9fd390a5d5) [092e554955db2591d09b57d3b87a575ee0d510a9](https://github.com/jhnns/rewire/commit/092e554955db2591d09b57d3b87a575ee0d510a9)
|
6 | - **Breaking**: Remove CoffeeScript support [e0ea17d2e13ef4fb054980c1c5c62edcfd10632f](https://github.com/jhnns/rewire/commit/e0ea17d2e13ef4fb054980c1c5c62edcfd10632f)
|
7 | - Add TypeScript support [#204](https://github.com/jhnns/rewire/pull/204)
|
8 |
|
9 | ### 6.0.0
|
10 | - **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.
|
11 | - Update dependencies [#193](https://github.com/jhnns/rewire/issues/193)
|
12 | - Fix Modifying globals within module leaks to global with Node >=10 [#167](https://github.com/jhnns/rewire/issues/167)
|
13 | - Fixed import errors on modules with shebang declarations [#179](https://github.com/jhnns/rewire/pull/179)
|
14 |
|
15 | ### 5.0.0
|
16 | - **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.
|
17 | - Update dependencies [#159](https://github.com/jhnns/rewire/pull/159) [#172](https://github.com/jhnns/rewire/issues/172) [#154](https://github.com/jhnns/rewire/issues/154) [#166](https://github.com/jhnns/rewire/issues/166)
|
18 |
|
19 | ### 4.0.1
|
20 | - Fix a bug where `const` was not properly detected [#139](https://github.com/jhnns/rewire/pull/139)
|
21 |
|
22 | ### 4.0.0
|
23 | - **Breaking**: Remove official node v4 support. It probably still works with node v4, but no guarantees anymore.
|
24 | - **Potentially breaking**: Replace babel with regex-based transformation [9b77ed9a293c538ec3eb5160bcb933e012ce517f](https://github.com/jhnns/rewire/commit/9b77ed9a293c538ec3eb5160bcb933e012ce517f).
|
25 | 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.
|
26 | - Improve runtime performance [#132](https://github.com/jhnns/rewire/issues/132)
|
27 | - Use `coffeescript` package in favor of deprecated `coffee-script` [#134](https://github.com/jhnns/rewire/pull/134)
|
28 |
|
29 | ### 3.0.2
|
30 | - Fix a bug where rewire used the project's .babelrc [#119](https://github.com/jhnns/rewire/issues/119) [#123](https://github.com/jhnns/rewire/pull/123)
|
31 |
|
32 | ### 3.0.1
|
33 | - Fix Unknown Plugin "transform-es2015-block-scoping" [#121](https://github.com/jhnns/rewire/issues/121) [#122](https://github.com/jhnns/rewire/pull/122)
|
34 |
|
35 | ### 3.0.0
|
36 | - **Breaking:** Remove support for node versions below 4
|
37 | - Add support for `const` [#79](https://github.com/jhnns/rewire/issues/79) [#95](https://github.com/jhnns/rewire/issues/95) [#117](https://github.com/jhnns/rewire/pull/117) [#118](https://github.com/jhnns/rewire/pull/118)
|
38 |
|
39 | ### 2.5.2
|
40 | - Fix cluttering of `require.extensions` even if CoffeeScript is not installed [#98](https://github.com/jhnns/rewire/pull/98)
|
41 |
|
42 | ### 2.5.1
|
43 | - Ignore modules that export non-extensible values like primitives or sealed objects [#83](https://github.com/jhnns/rewire/pull/83)
|
44 |
|
45 | ### 2.5.0
|
46 | - Provide shared test cases to other modules that mimic rewire's behavior in other environments [jhnns/rewire-webpack#18](https://github.com/jhnns/rewire-webpack/pull/18)
|
47 |
|
48 | ### 2.4.0
|
49 | - Make rewire's special methods `__set__`, `__get__` and `__with__` writable [#78](https://github.com/jhnns/rewire/pull/78)
|
50 |
|
51 | ### 2.3.4
|
52 | - Add license and keywords to package.json [#59](https://github.com/jhnns/rewire/issues/59) [#60](https://github.com/jhnns/rewire/issues/60)
|
53 |
|
54 | ### 2.3.3
|
55 | - Fix issue where the strict mode was not detected when a comment was before "strict mode"; [#54](https://github.com/jhnns/rewire/issues/54)
|
56 |
|
57 | ### 2.3.2
|
58 | - Fix a problem when a function declaration had the same name as a global variable [#56](https://github.com/jhnns/rewire/issues/56)
|
59 | - Add README section about rewire's limitations
|
60 |
|
61 | ### 2.3.1
|
62 | - Fix problems when global objects like JSON, etc. have been rewired [#40](https://github.com/jhnns/rewire/issues/40)
|
63 |
|
64 | ### 2.3.0
|
65 | - Add possibility to mock undefined, implicit globals [#35](https://github.com/jhnns/rewire/issues/35)
|
66 |
|
67 | ### 2.2.0
|
68 | - Add support for dot notation in __set__(env) calls [#39](https://github.com/jhnns/rewire/issues/39)
|
69 |
|
70 | ### 2.1.5
|
71 | - Fix issues with reverting nested properties [#39](https://github.com/jhnns/rewire/issues/39)
|
72 |
|
73 | ### 2.1.4
|
74 | - Fix problems when an illegal variable name is used for a global
|
75 |
|
76 | ### 2.1.3
|
77 | - Fix shadowing of internal `module`, `exports` and `require` when a global counterpart exists [jhnns/rewire-webpack#6](https://github.com/jhnns/rewire-webpack/pull/6)
|
78 |
|
79 | ### 2.1.2
|
80 | - Fixed missing `var` statement which lead to pollution of global namespace [#33](https://github.com/jhnns/rewire/pull/33)
|
81 |
|
82 | ### 2.1.1
|
83 | - Made magic `__set__`, `__get__` and `__with__` not enumerable [#32](https://github.com/jhnns/rewire/pull/32)
|
84 |
|
85 | ### 2.1.0
|
86 | - Added revert feature of `__set__` method
|
87 | - Introduced `__with__` method to revert changes automatically
|
88 |
|
89 | ### 2.0.1
|
90 | - Added test coverage tool
|
91 | - Small README and description changes
|
92 |
|
93 | ### 2.0.0
|
94 | - Removed client-side bundler extensions. Browserify is not supported anymore. Webpack support has been extracted
|
95 | into separate repository https://github.com/jhnns/rewire-webpack
|
96 |
|
97 | ### 1.1.3
|
98 | - Removed IDE stuff from npm package
|
99 |
|
100 | ### 1.1.2
|
101 | - Added deprecation warning for client-side bundlers
|
102 | - Updated package.json for node v0.10
|
103 |
|
104 | ### 1.1.1
|
105 | - Fixed bug with modules that had a comment on the last line
|
106 |
|
107 | ### 1.1.0
|
108 | - Added Coffee-Script support
|
109 | - Removed Makefile: Use `npm test` instead.
|
110 |
|
111 | ### 1.0.4
|
112 | - Improved client-side rewire() with webpack
|
113 |
|
114 | ### 1.0.3
|
115 | - Fixed error with client-side bundlers when a module was ending with a comment
|
116 |
|
117 | ### 1.0.2
|
118 | - Improved strict mode detection
|
119 |
|
120 | ### 1.0.1
|
121 | - Fixed crash when a global module has been used in the browser
|
122 |
|
123 | ### 1.0.0
|
124 | - Removed caching functionality. Now rewire doesn't modify `require.cache` at all
|
125 | - Added support for [webpack](https://github.com/webpack/webpack)-bundler
|
126 | - Moved browserify-middleware from `rewire.browserify` to `rewire.bundlers.browserify`
|
127 | - Reached stable state :)
|