v1.2.0
版本发布时间: 2017-08-07 01:41:30
schickling/chromeless最新发布版本:v1.5.2(2018-05-13 00:36:20)
Summary
This release includes a number of new API methods, a few enhancements, and some fixes. Important to note is that we've made some API method name changes as we've settled on a method naming convention. According to semver, we should bump the version to 2.0.0, however just this time, we're not going to since the project is still new and likely not yet in production in a lot of places. Many profuse apologies to our semver-purist friends.
Many thanks to all the contributors who have contributed much of the new API functionalities. 🙇 🚀🎉 A special thanks to @criticalbh and @joeyvandijk for a great job implementing many of the API methods requested by the community. 🔥 🏆 💯
Changelog
Added
-
clearInput()
API method #151, #133 @criticalbh -
setViewport()
API method #115 @joeyvandijk -
setFileInput()
API method #100, #170 @criticalbh -
clearCache()
API method #122 @joeyvandijk -
scrollToElement()
command andscrollBeforeClick
constructor option #15, #167 @janza -
cookies(name: string)
API method #183 @criticalbh - Mocha E2E tests example #164 @FabioAntunes
Changed
-
Breaking: renamed
cookiesClear()
todeleteCookies()
,cookiesClearAll()
toclearCookies()
#123 @joeyvandijk -
Breaking: renamed
cookiesGet(name: string | query: CookieQuery)
tocookies(name: string | query: CookieQuery)
,cookiesGet()
tocookies()
andcookiesGetAll()
toallCookies()
#183 @criticalbh -
Breaking: renamed
cookiesSet()
tosetCookies()
,cookiesGet()
tocookies()
andcookiesGetAll()
toallCookies()
#185 @adieuadieu
Fixed
- Chromeless can now be imported into TypeScript projects with activated
strictNullChecks
compiler option #154 @clebert - Fixed an issue in
clearCookies()
to check that it can clear cookies before trying to clear them #123 @joeyvandijk - When initialising runtime with
options.launchChrome = false
, useport
fromoptions
instead ofthis.chromeInstance
, the latter of which does not contain port information when Chromeless did not launch Chrome itself (e.g. in the Proxy) #162, #99 (comment), #159 @torbs - Removed packaging excludes in the Proxy so that chrome-launcher dependencies are included in the deployment package. #99 (comment), #173 @adieuadieu
- We're now using
os.tmpdir()
when saving screenshots/pdfs to disk. #129, #172, #137 @Kivol, @elisherer