UNPKG

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