1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 |
|
5 | ### [2.0.0](https://github.com/webpack-contrib/val-loader-loader/compare/v1.1.1...v2.0.0) (2019-11-14)
|
6 |
|
7 |
|
8 | ### Bug Fixes
|
9 |
|
10 | * support `webpack@5`
|
11 |
|
12 |
|
13 | ### Features
|
14 |
|
15 | * better handle errors from a module
|
16 | * pass `module.parent` to a module
|
17 | * validate loader options
|
18 |
|
19 |
|
20 | ### BREAKING CHANGES
|
21 |
|
22 | * minimum supported node version is `10.13.0`
|
23 | * minimum supported webpack version is `4.0.0`
|
24 |
|
25 |
|
26 |
|
27 | <a name="1.1.1"></a>
|
28 | ## [1.1.1](https://github.com/webpack-contrib/val-loader/compare/v1.1.0...v1.1.1) (2018-06-21)
|
29 |
|
30 |
|
31 | ### Bug Fixes
|
32 |
|
33 | * add support for `webpack@4` ([#30](https://github.com/webpack-contrib/val-loader/issues/30)) ([fea518d](https://github.com/webpack-contrib/val-loader/commit/fea518d))
|
34 |
|
35 |
|
36 |
|
37 | <a name="1.1.0"></a>
|
38 | # [1.1.0](https://github.com/webpack-contrib/val-loader/compare/v1.0.2...v1.1.0) (2017-11-19)
|
39 |
|
40 |
|
41 | ### Features
|
42 |
|
43 | * add support for `contextDependencies` in the `{Object}` interface (`options.contextDependencies`) ([#23](https://github.com/webpack-contrib/val-loader/issues/23)) ([78aa6fe](https://github.com/webpack-contrib/val-loader/commit/78aa6fe))
|
44 |
|
45 |
|
46 |
|
47 | <a name="1.0.2"></a>
|
48 | ## [1.0.2](https://github.com/webpack-contrib/val-loader/compare/v1.0.1...v1.0.2) (2017-03-21)
|
49 |
|
50 |
|
51 | ### Bug Fixes
|
52 |
|
53 | * **.babelrc:** enable modules ([b0b116a](https://github.com/webpack-contrib/val-loader/commit/b0b116a))
|
54 |
|
55 |
|
56 |
|
57 | <a name="1.0.1"></a>
|
58 | ## [1.0.1](https://github.com/webpack-contrib/val-loader/compare/v1.0.0...v1.0.1) (2017-03-20)
|
59 |
|
60 |
|
61 | ### Bug Fixes
|
62 |
|
63 | * **src:** add CJS wrapper ([cd043f5](https://github.com/webpack-contrib/val-loader/commit/cd043f5))
|
64 |
|
65 |
|
66 |
|
67 | <a name="1.0.0"></a>
|
68 | # [1.0.0](https://github.com/webpack-contrib/val-loader/compare/v0.5.1...v1.0.0) (2017-03-16)
|
69 |
|
70 |
|
71 | ### Features
|
72 |
|
73 | * change expected module API ([caf2aab](https://github.com/webpack-contrib/val-loader/commit/caf2aab))
|
74 |
|
75 |
|
76 | ### BREAKING CHANGES
|
77 |
|
78 | * this commit introduces a major refactoring of the loader.
|
79 | * remove node 0.10 and node 0.12 support
|
80 | * the loaded module must now export a function
|
81 | * this function will be called with the loader options
|
82 | * this function must return an object with this structure
|
83 |
|
84 | Property | Type | Description
|
85 | :--------|:-----|:-----------
|
86 | `code` | `string|Buffer` | **Required**. The code that is passed to the next loader or to webpack.
|
87 | `sourceMap` | [`SourceMap`](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit) | **Optional**. Will be pased to the next loader or to webpack.
|
88 | `ast` | `any` | **Optional**. An [Abstract Syntax Tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree) that will be passed to the next loader. Useful to speed up the build time if the next loader uses the same AST.
|
89 | `dependencies` | `Array<string>` | **Default: `[]`**. An array of absolute, native paths to file dependencies that need to be watched for changes.
|
90 | `cacheable` | `boolean` | **Default: `false`**. Flag whether the code can be re-used in watch mode if none of the `dependencies` have changed.
|
91 |
|
92 | * the function may also return a promise for async results
|
93 | * switch tooling to webpack-defaults
|