Skip to content

Commit

Permalink
v5.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
austinksmith committed Aug 6, 2021
1 parent 61cb131 commit d4bb365
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 deletions.
8 changes: 6 additions & 2 deletions build/hamsters.node.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/hamsters.node.min.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions build/hamsters.web.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/hamsters.web.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Austin K Smith",
"description": "100% Vanilla Javascript Multithreading & Parallel Execution Library",
"homepage": "http://www.hamsters.io/",
"version": "5.3.4",
"version": "5.3.5",
"main": "build/hamsters.node.min.js",
"scripts": {
"build": "rm -rf ./build && webpack --config ./hamsters.webpack.config.js && npm run copy-common",
Expand Down
2 changes: 1 addition & 1 deletion src/core/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

const majorVersion = 5;
const minorVersion = 3;
const patchVersion = 4;
const patchVersion = 5;
const hamstersVersion = `${majorVersion}.${minorVersion}.${patchVersion}`;

if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
Expand Down
6 changes: 5 additions & 1 deletion src/hamsters.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ class hamstersjs {
}
}
// Ensure legacy mode is disabled when we pass a third party worker library
if(typeof this.habitat['Worker'] === 'function' && !startOptions['legacy']) {
var forceLegacyMode = (typeof startOptions !== 'undefined' && typeof startOptions.legacy !== 'undefined');
if(forceLegacyMode) {
forceLegacyMode = startOptions.legacy;
}
if(typeof this.habitat['Worker'] === 'function' && !forceLegacyMode) {
this.habitat.legacy = false;
}
}
Expand Down

0 comments on commit d4bb365

Please sign in to comment.