We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48fc816 commit f2c0307Copy full SHA for f2c0307
CHANGELOG.md
@@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
5
## [Unreleased]
6
+### Changed
7
+- Improve revision comparison to avoid version conficts
8
9
## [0.6.1] - 2017-04-05
10
### Fixed
src/HearthstoneJSON.ts
@@ -78,7 +78,7 @@ export default class HearthstoneJSON {
78
typeof stored["revision"] === "number" &&
79
Array.isArray(typeof stored["cards"])
80
) {
81
- if (stored["revision"] === this.getRevision(build)) {
+ if (stored["revision"] >= this.getRevision(build)) {
82
this.cached = true;
83
return Promise.resolve(stored["cards"]);
84
}
0 commit comments