Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Version number increasing by multiples of 10 #59
First of all the Dexie.js is awesome, really enjoyed playing with it. Found a bug while trying to do an upgrade event. our upgrade version is lower than indexed Db version. version Dexie created was in multiples of 10
Expected version : 1
Is this intentional. if so curious to know why.
Yes, it is intentional is something that I regret today because it confuse more than it gives, but I cannot change this beause is would affect all existing implementations.
The reason originally was to be able to workaround a specific upgrading issue that Internet Explorer will fail to remove an object store after having read from it. My idea was to open up for working around the issue by doing the upgrade in two steps when needed. To be able to do that, I needed an intermediate step for upgrading. Instead of multiplying the version number with 2, I choosed to multiply it with 10 because it makes it easier to map it to the real number.
Thanks @dfahlander for explaining things , I am pretty much interested to use dexie in on my chrome app and node-webkit project. so in case IE workaround is of not needed in my case. Better i would strip off the dependency to make it work for time being, Until the workaround gets implemented.
But another thought now, it if it was issue on IE based on browser impl would have been dealt with that. only IE based would get the 10 multiplier, other browsers might have worked with original version.
that said. Thank you for your quick reply.