UNPKG

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