# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


## [Unreleased]

### Added
- It's now possible to specify an S3 object key prefix in with a `CHROMELESS_S3_OBJECT_KEY_PREFIX` environment variable [#224](https://github.com/graphcool/chromeless/pull/224) @pklingem
- A parameter to specify `waitTimeout` when waiting for a seletor with `wait(selector, waitTimeout)` [#212](https://github.com/graphcool/chromeless/pull/212), [#208](https://github.com/graphcool/chromeless/issues/208) @janza

### Changed

### Fixed
- Mistakes in `scrollTo` parameters API documentation [#220](https://github.com/graphcool/chromeless/pull/220) @okeeffed
- Typo in mocha/chai example [#218](https://github.com/graphcool/chromeless/pull/218) @sul4bh
- Fixed unhandled promise rejection error in `chromeless.end()` [#213](https://github.com/graphcool/chromeless/pull/213), [#187](https://github.com/graphcool/chromeless/issues/187) @janza

## [1.2.0] - 2017-08-06

### Added
- `clearInput()` API method [#151](https://github.com/graphcool/chromeless/pull/151), [#133](https://github.com/graphcool/chromeless/issues/133) @criticalbh
- `setViewport()` API method [#115](https://github.com/graphcool/chromeless/pull/115) @joeyvandijk
- `setFileInput()` API method [#100](https://github.com/graphcool/chromeless/issues/100), [#170](https://github.com/graphcool/chromeless/pull/170) @criticalbh
- `clearCache()` API method [#122](https://github.com/graphcool/chromeless/pull/122) @joeyvandijk
- `scrollToElement()` command and `scrollBeforeClick` constructor option [#15](https://github.com/graphcool/chromeless/issues/15), [#167](https://github.com/graphcool/chromeless/pull/167) @janza
- `cookies(name: string)` API method [#183](https://github.com/graphcool/chromeless/pull/183) @criticalbh
- Mocha E2E tests [example](examples/mocha-chai-test-example.js) [#164](https://github.com/graphcool/chromeless/pull/164) @FabioAntunes

### Changed
- **Breaking:** renamed `cookiesClear()` to `deleteCookies()`, `cookiesClearAll()` to `clearCookies()` and according to semver should bump the version to 2.0.0, however, just-this-time, we're not going to. [#123](https://github.com/graphcool/chromeless/pull/123) @joeyvandijk
- **Breaking:** renamed `cookiesGet(name: string | query: CookieQuery)` to `cookies(name: string | query: CookieQuery)`, `cookiesGet()` to `cookies()` and `cookiesGetAll()` to `allCookies()` [#183](https://github.com/graphcool/chromeless/pull/183) @criticalbh
- **Breaking:** renamed `cookiesSet()` to `setCookies()`, `cookiesGet()` to `cookies()` and `cookiesGetAll()` to `allCookies()` [#185](https://github.com/graphcool/chromeless/pull/185) @adieuadieu

### Fixed
- Chromeless can now be imported into TypeScript projects with activated `strictNullChecks` compiler option [#154](https://github.com/graphcool/chromeless/pull/154) @clebert
- Fixed an issue in `clearCookies()` to check that it can clear cookies before trying to clear them [#123](https://github.com/graphcool/chromeless/pull/123) @joeyvandijk
- When initialising runtime with `options.launchChrome = false`, use `port` from `options` instead of `this.chromeInstance`, the latter of which does not contain port information when Chromeless did not launch Chrome itself (e.g. in the Proxy) [#162](https://github.com/graphcool/chromeless/pull/162), [#99 (comment)](https://github.com/graphcool/chromeless/issues/99#issuecomment-320094029), [#159](https://github.com/graphcool/chromeless/issues/159) @torbs
- Removed packaging excludes in the Proxy so that chrome-launcher dependencies are included in the deployment package. [#99 (comment)](https://github.com/graphcool/chromeless/issues/99#issuecomment-320076119), [#173](https://github.com/graphcool/chromeless/pull/173) @adieuadieu
- We're now using `os.tmpdir()` when saving screenshots/pdfs to disk. [#129](https://github.com/graphcool/chromeless/issues/129), [#172](https://github.com/graphcool/chromeless/pull/172), [#137](https://github.com/graphcool/chromeless/pull/137) @Kivol, @elisherer


## [1.1.0] - 2017-08-02

### Added
- When using Chromeless locally, Chromeless will now boot Chrome automatically [#120](https://github.com/graphcool/chromeless/pull/120) @joelgriffith
- `html()` and `setHtml()` API methods for getting and setting HTML [#112](https://github.com/graphcool/chromeless/pull/112), [#74](https://github.com/graphcool/chromeless/issues/74) @seangransee
- `mousedown()` and `mouseup()` API methods [#118](https://github.com/graphcool/chromeless/pull/118) @criticalbh
- `focus()` API method [#132](https://github.com/graphcool/chromeless/pull/132) @criticalbh
- `pdf()` API method [#84](https://github.com/graphcool/chromeless/pull/84) @seangransee
- `setUserAgent()` API method to set the user-agent [#117](https://github.com/graphcool/chromeless/pull/117) @joeyvandijk
- CODE_OF_CONDUCT.md, CONTRIBUTING.md

### Changed
- CDP options now get passed to `CDP.New()` [#103](https://github.com/graphcool/chromeless/pull/103) @liady
- `.evaluate()` now returns the resulting value or a Promise [#110](https://github.com/graphcool/chromeless/pull/110) @joelgriffith
- README improvements. @timsuchanek @adieuadieu @hax @Chrisgozd @githubixx @d2s @vladgolubev

### Fixed
- Ensure latest version of Serverless is used during deployment. [#58](https://github.com/graphcool/chromeless/issues/58) @adieuadieu
- package repository url [#64](https://github.com/graphcool/chromeless/pull/64) @Hazealign
- Spelling and minor bugfix when Chromeless calls Version in CPD [#120](https://github.com/graphcool/chromeless/pull/120) @joelgriffith


## [1.0.1] - 2017-07-27
### Added
- CHANGELOG.md
- LICENSE file (MIT)
- `implicitWait`: By default wait for `.press` and `.click` for a cleaner workflow

### Changed
- `.end()`: now returns the last value

### Fixed
- The cookie commands broke the queue, now they work like expected

### Changed
- Many README improvements. @schickling @sorenbs @emeth- @timsuchanek @adieuadieu @toddwprice


## [1.0.0] - 2017-07-26
### Added
- Initial public release
- Initial version of Chromeless
- Initial version of Chromeless Proxy
