You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

357 lines
9.8 KiB

4 years ago
  1. 4.2.2 / 2019-08-27
  2. =================
  3. * Fix - Update minimum version of lodash to 4.17.15 in order to avoid `npm audit warning`. #116
  4. * Docs - Improve `merge.unique` documentation. #103
  5. * Docs - Add clear note about precedence. #115
  6. 4.2.1 / 2019-01-04
  7. ==================
  8. * Feature - Support `oneOf` at `merge.smart`. #111
  9. * Fix - If there's only single array to merge, clone it. #106
  10. 4.1.4 / 2018-08-01
  11. ==================
  12. * Maintenance - Remove bitHound from the README as it closed down. #102
  13. 4.1.3 / 2018-06-14
  14. ==================
  15. * Fix - Smart merge respects the existing loader order #79, #101
  16. 4.1.2 / 2017-02-22
  17. ==================
  18. * Maintenance - Update lodash, #97, #98
  19. 4.1.1 / 2017-11-01
  20. ==================
  21. * Docs - Add `customizeArray` and `customizeObject` examples. #93
  22. 4.1.0 / 2017-03-16
  23. ==================
  24. * Feature - `merge.multiple` to allow working with webpack multi-compiler mode. It accepts multiple objects and returns an array you can push to webpack. #74
  25. 4.0.0 / 2017-03-06
  26. ==================
  27. * Breaking feature - `merge.smart` allows re-ordering loaders like below. #70
  28. ```javascript
  29. merge.smart({
  30. loaders: [{
  31. test: /\.js$/,
  32. loaders: ['babel']
  33. }]
  34. }, {
  35. loaders: [{
  36. test: /\.js$/,
  37. loaders: ['react-hot', 'babel']
  38. }]
  39. });
  40. // will become
  41. {
  42. loaders: [{
  43. test: /\.js$/,
  44. // order of second argument is respected
  45. loaders: ['react-hot', 'babel']
  46. }]
  47. }
  48. ```
  49. 3.0.0 / 2017-02-19
  50. ==================
  51. * Breaking fix - `merge.smart` should not merge a child missing `include`/`exclude` to a parent that has either. This is safer and more predictable behavior than the old one. #69
  52. 2.6.1 / 2017-01-29
  53. ==================
  54. * Bug fix - `merge.smart` should not merge rules that have differing `enforce` fields. #65
  55. 2.6.0 / 2017-01-27
  56. ==================
  57. * Bug fix - Support `replace` mode for `merge.smartStrategy`. #63
  58. 2.5.0 / 2017-01-26
  59. ==================
  60. * Bug fix - Make sure `merge.smartStrategy` works with higher level nesting like `'module.rules.use': 'prepend'`. #64
  61. 2.4.0 / 2017-01-12
  62. ==================
  63. * Feature - Add `merge.unique` helper that plugs into `customizeArray`. This allows you to force only one plugin of a type to the end result. #58
  64. 2.3.1 / 2017-01-06
  65. ==================
  66. * Bug fix - Clear up `CopyWebpackPlugin` handling. #56
  67. 2.3.0 / 2017-01-06
  68. ==================
  69. * Refactor - Depend only on `lodash` instead of individual packages as latter has been discontinued. #52
  70. 2.2.0 / 2017-01-05
  71. ==================
  72. * Bug fix - Drop `merge.smartStrategy(rules, plugins)` as that caused other issues (prototype copying for complex cases). That needs a better approach. #55
  73. 2.1.1 / 2017-01-05
  74. ==================
  75. * Bug fix - Avoid recursion at `merge.smart`. #53
  76. 2.1.0 / 2017-01-05
  77. ==================
  78. * Feature - Allow `merge.smartStrategy` to merge plugin contents. API: `merge.smartStrategy(rules, plugins)`. #44. Example:
  79. ```javascript
  80. const output = merge.smartStrategy(
  81. {
  82. entry: 'prepend', // or 'replace'
  83. 'module.loaders': 'prepend'
  84. },
  85. ['LoaderOptionsPlugin']
  86. )(object1, object2, object3, ...);
  87. ```
  88. 2.0.0 / 2016-12-22
  89. ==================
  90. * Breaking - Disallow overriding configuration with empty arrays/objects (#48). If you want to override, use `merge.strategy`. Example:
  91. ```javascript
  92. const a = {
  93. entry: ['foo']
  94. };
  95. const b = {
  96. entry: []
  97. };
  98. merge(a, b); // Yields a result, not b like before.
  99. ```
  100. 1.1.2 / 2016-12-18
  101. ==================
  102. * Bug fix - `merge({ entry: {} })` should return the same result as input instead of a function.
  103. 1.1.1 / 2016-12-11
  104. ==================
  105. * Bug fix - Support previously undocumented, yet used, `merge([<object>])` format. This works with all available functions. #46
  106. 1.1.0 / 2016-12-09
  107. ==================
  108. * Feature - Allow `merge` behavior to be customized with overrides. Example:
  109. ```javascript
  110. var output = merge({
  111. customizeArray(a, b, key) { return [...a, ...b]; },
  112. customizeObject(a, b, key) { return mergeWith(a, b); }
  113. })(object1, object2, object3, ...);
  114. ```
  115. This allows you to guarantee array uniqueness and so on.
  116. 1.0.2 / 2016-11-29
  117. ==================
  118. * Bug fix - `merge` should not mutate inputs with mismatched keys.
  119. 1.0.0 / 2016-11-28
  120. ==================
  121. * Feature: Support merging Webpack 2 Rule.use. #38
  122. * Bug fix - Don't concat loaders if the first matching entry's include/exclude doesn't match. #39
  123. 0.20.0 / 2016-11-27
  124. ===================
  125. * Feature: Add support for merging functions. This feature has been designed `postcss` in mind. It executes the functions, picks their results, and packs them again.
  126. 0.19.0 / 2016-11-26
  127. ===================
  128. * Feature: Add support for 'replace' option at `merge.strategy`. It literally replaces the old field value with the newer one. #40
  129. 0.18.0 / 2016-11-24
  130. ===================
  131. * Feature: Add support for recursive definitions at `merge.strategy`. Example:
  132. ```javascript
  133. var output = merge.strategy({
  134. entry: 'prepend',
  135. 'module.loaders': 'prepend'
  136. })(object1, object2, object3, ...);
  137. ```
  138. * Feature: Add `merge.smartStrategy`. This combines the ideas of `merge.smart` and `merge.strategy` into one. Example:
  139. ```javascript
  140. var output = merge.smartStrategy({
  141. entry: 'prepend',
  142. 'module.loaders': 'prepend'
  143. })(object1, object2, object3, ...);
  144. ```
  145. 0.17.0 / 2016-11-16
  146. ===================
  147. * Feature: Add support for `merge.strategy`. Now you can customize merging behavior per root level configuration field. Example: `merge.strategy({ entry: 'prepend' })(object1, object2, object3, ...);`. #17
  148. 0.16.0 / 2016-11-14
  149. ===================
  150. * Feature: Add support for webpack 2 at `merge.smart`. It should pick up `module.rules` as you might expect now. #35
  151. 0.15.0 / 2016-10-18
  152. ===================
  153. * Breaking: Rework `merge.smart` so that it **appends** loaders instead of **prepending** them. This is the logical thing to do as it allows you to specify behavior better as you `merge`. #32
  154. 0.14.1 / 2016-07-25
  155. ===================
  156. * Docs: Improve package description. #23.
  157. * Bug fix - Let `merge.smart` merge loaders based on their full name instead of first letter. Thanks to @choffmeister. #26.
  158. 0.14.0 / 2016-06-05
  159. ===================
  160. * Feature: Allow `merge.smart` to merge `loaders` if `exclude` is the same. Thanks to @mshwery. #21.
  161. 0.13.0 / 2016-05-24
  162. ===================
  163. * Bug fix: Allow `merge.smart` to merge configuration if `include` is defined. Thanks to @blackrabbit99. #20.
  164. 0.12.0 / 2016-04-19
  165. ===================
  166. * Feature: Support `include/exclude` at `merge.smart` for `loader` definition too. Thanks to @Whoaa512. #16.
  167. 0.11.0 / 2016-04-18
  168. ===================
  169. * Feature: Support `include/exclude` at `merge.smart` when its set only in a parent. #15.
  170. 0.10.0 / 2016-04-10
  171. ===================
  172. * Feature: Support `include/exclude` at `merge.smart`. Thanks to @siready. #14.
  173. 0.9.0 / 2016-04-08
  174. ==================
  175. * Feature: Allow existing objects/arrays to be emptied with an empty object/array later in merge. This overriding behavior is useful for example emptying your `entry` configuration.
  176. 0.8.4 / 2016-03-17
  177. ==================
  178. * Bug fix: *webpack-merge* should not mutate inputs. #12
  179. 0.8.3 / 2016-03-02
  180. ==================
  181. * Bug fix: Drop `files` field from *package.json* as it wasn't including the dist correctly.
  182. 0.8.0 / 2016-03-02
  183. ==================
  184. * Breaking: Change merging behavior so that only loaders get prepended. The rest follow appending logic. This makes `entry` array merging behavior logical. Prepend makes sense only for loaders after all. #10
  185. 0.7.3 / 2016-01-11
  186. ==================
  187. * Bug fix: Do not error when there are no matching loaders. Thanks @GreenGremlin!
  188. 0.7.2 / 2016-01-08
  189. ==================
  190. * Regenerate tarball. The problem was that there were some old dependencies included. Closes #7.
  191. 0.7.1 / 2016-01-03
  192. ==================
  193. * Improve performance by defaulting to `concat` and by dropping a redundant check. Thanks @davegomez!
  194. 0.7.0 / 2015-12-31
  195. ==================
  196. * Bug fix: Arrays get merged within nested structures correctly now. Array items are prepended (reverse order compared to earlier). This is related to the change made in *0.6.0*. Incidentally this change affects normal merge as well.
  197. * Smart merge: If a loader contains either `include` or `exclude`, it will generate separate entries instead of merging. Without this the configuration might change in an unpredictable manner.
  198. 0.6.0 / 2015-12-30
  199. ==================
  200. * Support `preLoaders` and `postLoaders`. Previously only `loaders` were supported.
  201. * Breaking: Change smart merging behavior for `loaders` field so that it prepends loaders instead of appending them. The benefit of this is that now it's possible to specialize loader setup in a predictable manner. For example you can have a linter set up at the root and expect it to become evaluated first always.
  202. 0.5.1 / 2015-12-26
  203. ==================
  204. * Fix `merge` object/array case (missing `bind`). The behavior should be correct now.
  205. 0.5.0 / 2015-12-26
  206. ==================
  207. * Breaking: Push smart merging behind `merge.smart`. Now `merge` behaves exactly as in *0.3.0* series.
  208. 0.4.0 / 2015-12-23
  209. ==================
  210. * Dropped changelog generator. It's better to write these by hand.
  211. * Breaking: Added smart merging (@GreenGremlin)
  212. 0.3.2 / 2015-11-23
  213. ==================
  214. * Tweaked changelog generator process.
  215. 0.3.1 / 2015-11-23
  216. ==================
  217. * Added changelog generator.
  218. 0.3.0 / 2015-11-13
  219. ==================
  220. * Improved formatting
  221. * Allowed an arbitrary amount of objects to be merged
  222. 0.2.0 / 2015-08-30
  223. ==================
  224. * Only require lodash modules used by the package (@montogeek)
  225. * Removed lodash.isarray dependency, use Array.isArray standard object
  226. 0.1.3 / 2015-08-10
  227. ==================
  228. * Improved README example
  229. 0.1.2 / 2015-07-01
  230. ==================
  231. * Simplified example
  232. 0.1.1 / 2015-06-26
  233. ==================
  234. * Fixed travis link
  235. 0.1.0 / 2015-06-26
  236. ==================
  237. * Initial implementation