---
title: "0.9.1"
url: "https://www.cypress.io/releases/0-9-1"
description: "Features: cy.viewport() can now accept an orientation when providing a preset. Valid orientations are landscape and portrait. Bugfixes: The scaffolded…"
---

# 0.9.1

ReleasedReleased on July 2, 2015

**Features:**

-   [`cy.viewport()`](/api/commands/viewport) can now accept an `orientation` when providing a `preset`. Valid orientations are `landscape` and `portrait`.
    

**Bugfixes:**

-   The scaffolded `spec_helper.js` now correctly returns its object literal in the `onConsole` callback.
    
-   [`.type()`](/api/commands/type) now correctly logs its message to the Command Log when provided options.
    
-   [`.type()`](/api/commands/type) has been upgraded to handle situations where as it's typing, 3rd party code mutates the value either synchronously or asynchronously. The caret is automatically moved to the end position matching browser behavior.
    

**Misc:**

-   Deprecated `Cypress.command`, instead use `Cypress.Log.command` to output a Command Log. Updated scaffolding on new projects to reflect this change.
    
-   [`cy.contains()`](/api/commands/contains) now outputs much more explicit error messages when given command options. Fixes [#49](https://github.com/cypress-io/cypress/issues/49).
    
-   `cy.route()` no longer validates `response` value when `{respond: false}` is passed in as options. Fixes [#48](https://github.com/cypress-io/cypress/issues/48).
    
-   [`.invoke()`](/api/commands/invoke) and [`.its()`](/api/commands/its) will now log out the $el if it's a DOM object, which will now correctly highlight the $el during a command revert. Additionally if these commands have been called on a DOM object, their `onConsole` message will include the DOM objects.