| OLD | NEW |
| 1 ## 0.12.0 | 1 ## 0.12.0 |
| 2 | 2 |
| 3 * Add a `Transform.logger.fine` function that doesn't print its messages by | 3 * Add a `Transform.logger.fine` function that doesn't print its messages by |
| 4 default. When using Barback with pub in verbose mode, these messages will be | 4 default. When using Barback with pub in verbose mode, these messages will be |
| 5 printed. | 5 printed. |
| 6 | 6 |
| 7 * Add a `Transform.hasInput` function that returns whether or not a given | 7 * Add a `Transform.hasInput` function that returns whether or not a given |
| 8 secondary input exists. | 8 secondary input exists. |
| 9 | 9 |
| 10 * `Transformer.allowedExtensions` now supports extensions containing multiple | 10 * `Transformer.allowedExtensions` now supports extensions containing multiple |
| 11 periods, such as `.dart.js`. | 11 periods, such as `.dart.js`. |
| 12 | 12 |
| 13 * Transforms now pass their primary inputs through to the next phase by default. | 13 * Transforms now pass their primary inputs through to the next phase by default. |
| 14 A transformer may still overwrite its primary input without causing a | 14 A transformer may still overwrite its primary input without causing a |
| 15 collision. If a transformer doesn't overwrite its primary input, it may cause | 15 collision. If a transformer doesn't overwrite its primary input, it may cause |
| 16 it not to be passed through by calling `Transform.consumePrimary`. The primary | 16 it not to be passed through by calling `Transform.consumePrimary`. The primary |
| 17 input will be consumed by default if a transformer throws an error. | 17 input will be consumed by default if a transformer throws an error. |
| 18 | 18 |
| 19 * If an input requested with `Transform.getInput`, `Transform.readInput`, or | 19 * If an input requested with `Transform.getInput`, `Transform.readInput`, or |
| 20 `Transform.readInputAsString` cannot be found, an `AssetNotFoundException` | 20 `Transform.readInputAsString` cannot be found, an `AssetNotFoundException` |
| 21 will be thrown. This was always what the documentation said, but previously a | 21 will be thrown. This was always what the documentation said, but previously a |
| 22 `MissingInputException` was thrown instead. | 22 `MissingInputException` was thrown instead. |
| 23 | 23 |
| 24 * If a transformer calls `Transform.logger.error`, the transformer will now be | 24 * If a transformer calls `Transform.logger.error`, the transformer will now be |
| 25 considered to have failed after it finishes running `apply()`. This means that | 25 considered to have failed after it finishes running `apply()`. This means that |
| 26 its outputs will not be consumed by future transformers and its primary input | 26 its outputs will not be consumed by future transformers and its primary input |
| 27 will not be passed through to the next phase. | 27 will not be passed through to the next phase. |
| 28 |
| 29 * If a transform calls `Transform.getInput`, `Transform.readInput`, |
| 30 `Transform.readInputAsString`, or `Transform.hasInput` on an input that |
| 31 doesn't exist, the transform will be re-run if that input is created in the |
| 32 future. |
| OLD | NEW |