1 | # Change Log
|
2 |
|
3 | All notable changes to this project will be documented in this file.
|
4 |
|
5 | The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6 | and this project adheres to [Semantic Versioning](http://semver.org/).
|
7 |
|
8 | ## Unreleased
|
9 |
|
10 |
|
11 | ## 6.4.0 - 2017-10-31 🎃
|
12 |
|
13 | * Updated package.json:
|
14 | * Upgraded dependencies async, chai, cleankill, findup-sync, sinon, and socket.io.
|
15 | * Upgraded devDependencies update-notifier
|
16 | * Added `define:webserver` hook to enable substitution of the generated express app for the webserver through a callback, to support use cases where a plugin might want to inject handlers or middleware in front of polyserve.
|
17 | * Added support for `proxy: {path: string, target: string}` config which is forwarded to `polyserve`.
|
18 |
|
19 | ## 6.3.0 - 2017-10-02
|
20 |
|
21 | * Updated wct-browser-legacy to use a module version of a11ySuite to get access to Polymer.dom.flush.
|
22 | * Updated generated index for webserver to use a11ySuite as a module.
|
23 | * Updated polyserve to get support for on-the-fly module compilation and `<script type=module>` conversion for browsers that don't support modules.
|
24 |
|
25 | ## 6.2.0 - 2017-09-19
|
26 |
|
27 | * Updated the browser.js file for npm case to use test-fixture as JS module instead of html import.
|
28 | * Updated the integration tests to support running on Sauce via wct-sauce plugin.
|
29 | * Updated polyserve to 0.22.1 for better compilation support and ES modules in HTML script tags and bug fixes.
|
30 | * Updated bower.json to reference newly published test-fixture version 3.0.0.
|
31 | * No longer require `?npm=true` url parameter, as `web-component-tester` and `wct-browser-legacy` versions of `browser.js` now contain explicit npm/non-npm directives of the form `window.__wctUseNpm` as a first step towards splitting out the client-side environment-specific config and behavior.
|
32 | * Added support for scoped package names under npm.
|
33 |
|
34 | ## 6.1.5 - 2017-08-31
|
35 |
|
36 | * Removed reliance on `document.currentScript` in browser.js because IE11 doesn't have it. (Second reference found)
|
37 |
|
38 | ## 6.1.4 - 2017-08-31
|
39 |
|
40 | * Removed reliance on `document.currentScript` in browser.js because IE11 doesn't have it.
|
41 | * To use WCT tests with NPM in browser without WCT (or polymer-cli) running on the commandline, you must include an `?npm=true` or `&npm=true` parameter in the URL for the test document; WCT does this automatically when opening its own browsers.
|
42 |
|
43 | ## 6.1.3 - 2017-08-26
|
44 |
|
45 | * Added `sinon` as dependency of `sinon-chai` in web context to suppress the npm installation warning/error of unmet peer dependency, even though `@polymer/sinonjs` fulfills the runtime dependency and `sinon` will be unused.
|
46 | * Set `@polymer/test-fixture` back to ^0.0.3 because of dependency install errors related to yarn's "flat".
|
47 |
|
48 | ## 6.1.2 - 2017-08-22
|
49 |
|
50 | * Updated npm browser dependency on `@polymer/test-fixture` v3.0.0-pre.1
|
51 |
|
52 | ## 6.1.1 - 2017-08-21
|
53 |
|
54 | * Updated browser dependency to a browser-ready sinon npm package for `wct --npm` option.
|
55 |
|
56 | ## 6.1.0 - 2017-08-17
|
57 |
|
58 | * Added an *experimental* `--npm` flag to support web packages which are installed in `node_modules` by npm (instead of installed in `bower_components` by Bower.
|
59 | * Builds a `wct-browser-legacy` package directory used to publish npm-specific client support package to npm, suitable for use with devDependencies of custom elements.
|
60 | * Added version flag to CLI. Available using `--version` or `-V`.
|
61 |
|
62 | ## 6.0.1 - 2017-08-08
|
63 |
|
64 | * Updated package.json dependencies:
|
65 | * Upgraded @types/gulp
|
66 | * Moved all @types to devDependencies
|
67 | * Removed PolymerElements/test-fixture from npm dependencies (is already installed by bower)
|
68 |
|
69 | ## 6.0.0 - 2017-05-15
|
70 |
|
71 | * Major changes:
|
72 | * In an effort to reduce magical behavior and make `wct` easier to understand, it no longer will automatically serve some resources from its own `npm` dependencies and some resources from the project under test. Instead, all resources are served out of the project under test. This gives the project under test control over its testing dependencies and their versions.
|
73 | * As part of this, wct will also require that the project under test have an installation of the client side web-component-tester bower package.
|
74 | * This release unifies the behavior of `wct` and `polyserve`, so if your code works without warnings in one it should work in the other.
|
75 | * `webserver.webRunnerPath`, `webserver.webRunnerContent`, and `webserver.urlPrefix`, `webserver.staticContent` were internal properties that were exposed on the `config` object. They have been refactored and their replacement has been prefixed with an underscore to clarify that they're internal implementation details.
|
76 | * Dropped support for node v4, added support for node v8. See our [node version support policy](https://www.polymer-project.org/2.0/docs/tools/node-support) for details.
|
77 |
|
78 | <details>
|
79 | <summary>Click for full details</summary>
|
80 |
|
81 | ## New in 6.0.0 stable
|
82 |
|
83 | * Update wct-local to remove deprecation warnings on install.
|
84 | * Remove warning when running wct if it's not installed into `node_modules`.
|
85 |
|
86 | ## 6.0.0-prerelease.9 - 2017-04-19
|
87 |
|
88 | * The default `waitFor` doesn't rely on `HTMLImports.whenReady` or `Polymer.whenReady` timings, but only waits for the `WebComponentsReady` event to be fired. For a different wait time, set `WCT = { waitFor: function(cb){ cb(); }}`.
|
89 |
|
90 | ## 6.0.0-prerelease.8 - 2017-04-13
|
91 |
|
92 | * [BREAKING] Dropped support for node v4, added support for node v8. See our [node version support policy](https://www.polymer-project.org/2.0/docs/tools/node-support) for details.
|
93 |
|
94 | ## 6.0.0-prerelease.7 - 2017-03-15
|
95 |
|
96 | * Fixed #505 – Work around an issue in Chrome 57 where dynamically inserted HTML Imports did not block subsequent script execution. See https://bugs.chromium.org/p/chromium/issues/detail?id=701601
|
97 |
|
98 | ## 6.0.0-prerelease.1 through 6.0.0-prerelease.6
|
99 |
|
100 | ### Breaking change
|
101 |
|
102 | * In an effort to reduce magical behavior and make `wct` easier to understand, it no longer will automatically serve some resources from its own `npm` dependencies and some resources from the project under test. Instead, all resources are served out of the project under test. This gives the project under test control over its testing dependencies and their versions.
|
103 | * As part of this, wct will also require that the project under test have an installation of the client side web-component-tester bower package. We recommend that all projects also have a dependency on the npm web-component-tester node module, and in a future release will will require it. This is to makes results more reproducible, and ensures that they'll be protected from future breaking changes.
|
104 | * This release also unifies the behavior of `wct` and `polyserve`, so if your code works without warnings in one it should work in the other.
|
105 | * Calling `replace(...)` will use sinon to stub `document.importNode` until `teardown` is called.
|
106 |
|
107 | ### Added
|
108 |
|
109 | * Polymer.dom.flush() call in a11ySuite to ensure lazy dom is loaded
|
110 | * Added beforeEach parameter to a11ySuite
|
111 | * Added first pass of _variants_. Variants different configurations of testing the same code.
|
112 | * Add support for _variant dependencies_.
|
113 | * wct already supports loading dependencies from your `bower_components` directory, mapping them to `../` in your code. You can now add variant dependency directories named like `bower_components-foo`. When these are detected, tests will then run separately for each such dependency directory, mapping `../` appropriately. See README for more details.
|
114 |
|
115 | ### Removed
|
116 |
|
117 | * `webserver.webRunnerPath`, `webserver.webRunnerContent`, and `webserver.urlPrefix`, `webserver.staticContent` were internal properties that were exposed on the `config` object. They have been refactored and their replacement has been prefixed with an underscore to clarify that they're internal implementation details.
|
118 |
|
119 | ### Fixed
|
120 |
|
121 | * Fixed #392
|
122 | * Fixed #373 and #383 which were caused by `emitHook` not handling arguments correctly.
|
123 | * Fixed error log message for loading WCT config
|
124 |
|
125 | </details>
|
126 |
|
127 | ## 5.0.1
|
128 |
|
129 | * Backport of fix for #505 – Work around an issue in Chrome 57 where dynamically inserted HTML Imports did not block subsequent script execution. See https://bugs.chromium.org/p/chromium/issues/detail?id=701601
|
130 |
|
131 | ## 5.0.0
|
132 | * Mocha upgraded to `v3.1.2`. This shouldn't require any new code, but make sure your tests still pass as there were some more subtle changes made to Mocha behavior for v3 (Add IE7 support, update dependencies). See https://github.com/mochajs/mocha/pull/2350 for more info.
|
133 |
|
134 | ## 4.2.2
|
135 | * Update bower dependencies to match node dependencies
|
136 | * Update rollup to 0.25
|
137 | * Update README to point to webcomponents-lite.js
|
138 |
|
139 | ## 4.2.1
|
140 | * Fix `grep` for upstream mocha bug
|
141 |
|
142 | ## 4.2.0
|
143 | * Add `httpbin` functionality to check `POST` requests
|
144 | * `POST` to `/httpbin`, response will be contents of `POST`
|
145 |
|
146 | ## 4.1.0
|
147 | * Add `ignoreRules` option to `a11ySuite`
|
148 | * Array of a11ySuite rules to ignore for that suite
|
149 | * Example: https://github.com/PolymerElements/paper-tooltip/commit/bf22b1dfaf7f47312ddb7f5415f75ae81fa467bf
|
150 |
|
151 | ## 4.0.3
|
152 | * Fix npm 3 serving for lodash and sinon
|
153 |
|
154 | ## 4.0.2
|
155 | * Fix serving from `node_modules` for npm 3
|
156 |
|
157 | ## 4.0.1
|
158 | * Fix Polymer 0.5 testing
|
159 |
|
160 | ## 4.0.0
|
161 | * Remove `bower` as a dependency, serve testing files out of `node_modules`
|
162 | * Upgrade to `wct-local` 2.0, which needs node 0.12+ for `launchpad` 0.5
|
163 | * Replace esperanto with rollup for building browser bundle
|
164 |
|
165 | # 3.x
|
166 |
|
167 | ## 3.4.0
|
168 | * Integrate [test-fixture](https://github.com/PolymerElements/test-fixture)
|
169 |
|
170 | ## 3.3.0
|
171 | * Add ability to cancel running tests from library
|
172 |
|
173 | ## 3.2.0
|
174 | * Add accessibility testing with `a11ySuite` and
|
175 | [accessibility-developer-tools](https://github.com/GoogleChrome/accessibility-developer-tools)
|
176 |
|
177 | ## 3.1.3
|
178 |
|
179 | * `.bowerrc` included in the package to ensure that packages don't get placed in
|
180 | unexpected locations.
|
181 |
|
182 | ## 3.1.2
|
183 |
|
184 | * `--verbose` now includes logging from [`serve-waterfall`](https://github.com/PolymerLabs/serve-waterfall).
|
185 |
|
186 | ## 3.1.1
|
187 |
|
188 | * WCT now depends on `wct-sauce ^1.5.0`
|
189 |
|
190 | ## 3.1.0
|
191 |
|
192 | * WCT proper no longer periodically executes webdriver commands to ensure remote
|
193 | keepalive. Logic has moved into `wct-sauce`.
|
194 |
|
195 | * Fix for verbose mode breaking IE10.
|
196 |
|
197 | ## 3.0.7
|
198 |
|
199 | * Mixing TDD & BDD Mocha interfaces is now an error.
|
200 |
|
201 | * Calls to `console.error` now generate an error.
|
202 |
|
203 | * Errors that occur during WCT's initialization are more reliably reported.
|
204 |
|
205 | * WCT now treats dependencies installed into `bower_components/` as if they are
|
206 | siblings of the current repo (much like polyserve).
|
207 |
|
208 | * Browser libraries are no longer bundled with WCT.
|
209 |
|
210 | * They are now bower-managed, and by default installed to `bower_components/`
|
211 | within `web-component-tester`.
|
212 |
|
213 | * The libraries loaded can be configured via `WCT = {environmentScripts: []}`.
|
214 |
|
215 | * Massive overhaul of `browser.js` to support this & `environment.js` no
|
216 | longer exists.
|
217 |
|
218 | * Support for newer versions of webcomponents.js (also Polymer 0.8).
|
219 |
|
220 | * Mocha configuration can be specified by the `mochaOptions` key in client
|
221 | options (i.e. `<script>WCT = {mochaOptions: {}};</script>`).
|
222 |
|
223 | * Browser options can be specified in `wct.conf.js` via the `clientOptions` key.
|
224 |
|
225 | * WCT now always generates an index when run via the command line.
|
226 |
|
227 | * `wct.conf.json` can be used as an alternative to `wct.conf.js`.
|
228 |
|
229 | ## 3.0.0-3.0.6
|
230 |
|
231 | Yanked. See `3.0.7` for rolled up notes.
|
232 |
|
233 |
|
234 | # 2.x
|
235 |
|
236 | There were changes made, and @nevir failed to annotate them. What a slacker.
|
237 |
|
238 |
|
239 | # 1.x
|
240 |
|
241 | What are you, an archaeologist?
|