Skip to content

Commit b0417cb

Browse files
authored
Merge pull request #100 from javierbrea/release
Release
2 parents fd8cfd2 + 0173a8e commit b0417cb

File tree

10 files changed

+143
-159
lines changed

10 files changed

+143
-159
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
### Removed
1212
### BREAKING CHANGES
1313

14+
## [1.2.1] - 2020-06-09
15+
16+
### Fixed
17+
- fix(TypeScript): Fix TypeScript return types declarations
18+
19+
### Changed
20+
- chore(deps): Update devDependencies
21+
1422
## [1.2.0] - 2020-05-31
1523

1624
### Added

index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,40 @@ declare namespace Cypress {
66
* Command to save current localStorage values into an internal "snapshot"
77
* @example cy.saveLocalStorage()
88
*/
9-
saveLocalStorage(): Chainable<Element>
9+
saveLocalStorage(): Chainable<undefined>
1010

1111
/**
1212
* Command to restore localStorage to previously "snapshot" saved values
1313
* @example cy.restoreLocalStorage()
1414
*/
15-
restoreLocalStorage(): Chainable<Element>
15+
restoreLocalStorage(): Chainable<undefined>
1616

1717
/**
1818
* Command to clear localStorage "snapshot" values
1919
* @example cy.clearLocalStorageSnapshot()
2020
*/
21-
clearLocalStorageSnapshot(): Chainable<Element>
21+
clearLocalStorageSnapshot(): Chainable<undefined>
2222

2323
/**
2424
* Command to get localStorage item value
2525
* @param {string} itemKeyName - localStorage item to get
2626
* @example cy.getLocalStorage("cookies-accepted")
2727
*/
28-
getLocalStorage(itemKeyName: string): Chainable<Element>
28+
getLocalStorage(itemKeyName: string): Chainable<string|null>
2929

3030
/**
3131
* Command to set localStorage item value
3232
* @param {string} itemKeyName - localStorage item to set
3333
* @param {string} value - value to be set
3434
* @example cy.setLocalStorage("cookies-accepted", "true")
3535
*/
36-
setLocalStorage(itemKeyName: string, value: string): Chainable<Element>
36+
setLocalStorage(itemKeyName: string, value: string): Chainable<undefined>
3737

3838
/**
3939
* Command to remove localStorage item
4040
* @param {string} itemKeyName - localStorage item to remove
4141
* @example cy.removeLocalStorage("cookies-accepted")
4242
*/
43-
removeLocalStorage(itemKeyName: string): Chainable<Element>
43+
removeLocalStorage(itemKeyName: string): Chainable<undefined>
4444
}
4545
}

package-lock.json

Lines changed: 44 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cypress-localstorage-commands",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Extends Cypress' cy commands with localStorage methods. Allows preserving localStorage between tests",
55
"keywords": [
66
"cypress",
@@ -50,13 +50,13 @@
5050
"@stryker-mutator/jest-runner": "3.2.4",
5151
"babel-eslint": "10.1.0",
5252
"coveralls": "3.0.9",
53-
"eslint": "7.1.0",
53+
"eslint": "7.2.0",
5454
"eslint-config-prettier": "6.11.0",
5555
"eslint-plugin-prettier": "3.1.3",
5656
"eslint-plugin-react": "7.20.0",
5757
"husky": "4.2.5",
5858
"jest": "26.0.1",
59-
"lint-staged": "10.2.6",
59+
"lint-staged": "10.2.9",
6060
"prettier": "2.0.5",
6161
"sinon": "9.0.2"
6262
},

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sonar.organization=javierbrea
22
sonar.projectKey=cypress-localstorage-commands
3-
sonar.projectVersion=1.2.0
3+
sonar.projectVersion=1.2.1
44

55
sonar.javascript.file.suffixes=.js
66
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)