UNPKG

6.5 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/)
6and this project adheres to [Semantic Versioning](http://semver.org/).
7
8<!-- ## Unreleased -->
9<!-- Add new, unreleased changes here. -->
10
11## [4.0.3] - 2019-03-01
12* Added support for `treeshake` option to remove dead JavaScript code when bundling.
13
14## [4.0.2] - 2018-06-28
15* Add `modules` to the browser capabilities of the `uncompiled-bundled` and
16 `uncompiled-unbundled` build presets.
17* Fix NPM audit warnings.
18
19## [4.0.1] - 2018-05-09
20* Fix names of `uncompiled-bundled` and `uncompiled-unbundled` build presets.
21
22## [4.0.0] - 2018-05-08
23* Change the default value of `--module-resolution` to "node".
24
25## [3.14.0] - 2018-05-03
26* Dropped support for node v6. This is a soft break, as we aren't
27 making any changes that are known to break node v6, but we're no longer testing against it. See our [node version support policy](https://www.polymer-project.org/2.0/docs/tools/node-support)
28 for details.
29* Removed the `transformImportMeta` option, because it is now always coupled
30 with the `transformModulesToAmd` option.
31* The `import.meta` transform now depends on the special `"meta"` dependency
32 provided by
33 [@polymer/esm-amd-loader](https://github.com/Polymer/tools/tree/master/packages/esm-amd-loader),
34 instead of injecting a static path. As a result, it is now always coupled with
35 the AMD transform, and cannot be enabled independently.
36* Added es5, es2015, es2016, es2017, and es2018 compile targets to the
37 `js.compile` option, to allow fine grained control over which JavaScript
38 features to compile.
39
40## [3.13.0] - 2018-04-03
41* [breaking] Rename `build` option from `js.transformEsModulesToAmd` to `js.transformModulesToAmd`.
42* Add new `build` option: `js.transformImportMeta`.
43
44## [3.12.0] - 2018-03-28
45* Added new `build` option: `js.transformEsModulesToAmd`.
46
47## [3.11.1] - 2018-03-27
48* `ProjectConfig.initializeAnalyzerFromDirectory` should use the given
49 directory as a root dir, even if there is no `polymer.json` file there.
50
51## [3.11.0] - 2018-03-27
52* JSON serialization will now include `npm`, `componentDir`, and `moduleResolution` fields.
53* Add a method to initialize an Analyzer based on a config, as well as
54 a static function ProjectConfig to initialize an Analyzer from a project
55 directory.
56 Because polymer-analyzer 3.0.0 is in prerelease, project-config depends on it
57 as a peer dependency, so that the dependant can choose the specific pre-release version of analyzer to use.
58
59
60## [3.10.0] - 2018-03-12
61* Added new option: `moduleResolution`. Determines algorithm used for resolving module specifiers. Can be 'none' or 'node'.
62
63## [3.9.0] - 2018-02-23
64* Added new options: `npm` and `componentDir`. Setting `npm` automatically sets `componentDir` to "node_modules/", unless explicitly set otherwise.
65
66## [3.8.1] - 2018-01-29
67* Changed name of `excludes` property to more natural `exclude` in `js-minify`, `js-compile`, `css-minify` and `html-minify` options prior to releasing the feature as `exclude` is more natural. The `bundle` options will remain `excludes` for now, as that is already implemented in `polymer-bundler`.
68
69## [3.8.0] - 2018-01-23
70* Updated the `build` options `js-minify`, `js-compile`, `css-minify` and `html-minify` to support an object with `excludes` property to list specific files to exclude from minification or compilation.
71
72## [3.7.0] - 2018-01-01
73* Added new option: `autoBasePath`. This new flag sets `basePath: true` on all builds. See that option for more details.
74* Removed `addPushManifest` from bundled build presets.
75
76## [3.6.0] - 2017-11-28
77* Added a new lint option: `filesToIgnore`. We'll never report warnings for any
78 file that matches any of these globs.
79 * `ignoreWarnings` is a confusing phrasing. Added the `warningsToIgnore`
80 spelling which will be used preferentially. This was better than making the
81 options inconsistent, or spelling the new option `ignoreFiles`.
82* Improved error messages when validation of a polymer.json object fails.
83
84## [3.5.0] - 2017-11-21
85* Added static methods for constructing a ProjectConfig directly from an unvalidated JSON object, in addition to the methods for reading it from disk.
86
87## [3.4.0] - 2017-06-21
88* Modified the `bundle` property in project build options to support the subset of `polymer-bundler` options which can be serialized in a JSON file.
89
90## [3.3.0] - 2017-06-09
91* Removed `insertPrefetchLinks` from build presets. See https://github.com/Polymer/polymer-build/issues/239 for details.
92
93## [3.2.1] - 2017-05-19
94* Turned on insertPrefetchLinks for the bundled presets after prefetch link bugs were fixed.
95
96## [3.2.0] - 2017-05-15
97* Add ProjectConfig toJSON method.
98
99## [3.1.0] - 2017-05-15
100* Add browserCapabilities and basePath options.
101
102## [3.0.0] - 2017-05-09
103* Add build preset support.
104* Remove Node v4 support: Node v4 is no longer in Active LTS, so as per the [Polymer Tools Node.js Support Policy](https://www.polymer-project.org/2.0/docs/tools/node-support) we will not support Node v4 going forward. Please update to Node v6 or later to continue using the latest verisons of Polymer tooling.
105
106
107## [2.1.1] - 2017-04-14
108* Add more documentation, and expose it through the JSON Schema.
109
110## [2.1.0] - 2017-04-11
111* `builds`: Add support for `addPushManifest` build option. See [polymer-build README](https://github.com/Polymer/polymer-build#projectaddpushmanifest) for more information.
112
113
114## [2.0.1] - 2017-02-28
115* Update version of plylog.
116
117## [2.0.0] - 2017-02-10
118
119* [BREAKING] polymer.json is validated upon being read and an error will be thrown if any fields are of the wrong type. All toplevel fields are optional, and no error is thrown on encountering extra fields.
120* Added "lint" config option for configuring polymer-lint.
121
122## [1.2.0] - 2017-01-27
123
124* Added `isSources()` method to ProjectConfig: validates that a given file path matches the project's "sources" globs. Useful for determining if a file should be treated as a source file or as a dependency.
125* New Config Option: `builds` defines project build configurations.
126* `validate()` now checks the `builds` property for missing and duplicate names.
127
128## [1.1.0] - 2016-12-09
129
130* Added `validate()` method to ProjectConfig: validates that polymer.json contains valid paths.
131
132## [1.0.2] - 2016-09-23
133
134* Add `package.json` metadata
135
136## [1.0.1] - 2016-09-23
137
138* Add `.npmignore`
139
140## [1.0.0] - 2016-09-23
141
142* Initial release!