Comparing version 0.38.0 to 0.38.1
# Changelog | ||
## 0.38.1 | ||
* Fixing `SparseQueueSet` deopt. | ||
## 0.38.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "mnemonist", | ||
"version": "0.38.0", | ||
"version": "0.38.1", | ||
"description": "Curated collection of data structures for the JavaScript language.", | ||
@@ -81,11 +81,11 @@ "scripts": { | ||
"damerau-levenshtein": "^1.0.6", | ||
"eslint": "^7.3.1", | ||
"eslint": "^7.15.0", | ||
"leven": "^3.1.0", | ||
"lodash": "^4.17.15", | ||
"matcha": "^0.7.0", | ||
"mocha": "^8.0.1", | ||
"pandemonium": "^1.5.0", | ||
"mocha": "^8.2.1", | ||
"pandemonium": "^2.0.0", | ||
"seedrandom": "^3.0.5", | ||
"static-kdtree": "^1.0.2", | ||
"typescript": "^3.9.5" | ||
"typescript": "^4.1.2" | ||
}, | ||
@@ -92,0 +92,0 @@ "eslintConfig": { |
@@ -51,5 +51,12 @@ /** | ||
var inBounds = (index >= this.start) ? | ||
(index < (this.start + this.size)) : | ||
(index < ((this.start + this.size) % this.capacity)); | ||
var inBounds = ( | ||
index < this.capacity && | ||
( | ||
index >= this.start && | ||
index < this.start + this.size | ||
) || | ||
( | ||
index < ((this.start + this.size) % this.capacity) | ||
) | ||
); | ||
@@ -71,8 +78,17 @@ return ( | ||
var inBounds = (index >= this.start) ? | ||
(index < (this.start + this.size)) : | ||
(index < ((this.start + this.size) % this.capacity)); | ||
if (this.size !== 0) { | ||
var inBounds = ( | ||
index < this.capacity && | ||
( | ||
index >= this.start && | ||
index < this.start + this.size | ||
) || | ||
( | ||
index < ((this.start + this.size) % this.capacity) | ||
) | ||
); | ||
if (this.size !== 0 && inBounds && this.dense[index] === member) | ||
return this; | ||
if (inBounds && this.dense[index] === member) | ||
return this; | ||
} | ||
@@ -108,3 +124,3 @@ index = (this.start + this.size) % this.capacity; | ||
this.sparse[member] = index + 1; | ||
this.sparse[member] = this.capacity; | ||
@@ -111,0 +127,0 @@ return member; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
365104
13108