Comparing version 0.17.2 to 0.17.3
# Changelog | ||
## 0.17.3 | ||
### Changed | ||
* Moved hot load delete of stores up to remove the warning shown in console. [commit](https://github.com/goatslacker/alt/commit/d3befc5) | ||
## 0.17.2 | ||
@@ -4,0 +10,0 @@ |
@@ -165,2 +165,5 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/*istanbul ignore next*/ | ||
if (false) delete this.stores[key]; | ||
if (this.stores[key] || !key) { | ||
@@ -182,5 +185,2 @@ if (this.stores[key]) { | ||
/*istanbul ignore next*/ | ||
if (false) delete this.stores[key]; | ||
this.stores[key] = storeInstance; | ||
@@ -187,0 +187,0 @@ StateFunctions.saveInitialSnapshot(this, key); |
@@ -102,2 +102,5 @@ /*global window*/ | ||
/*istanbul ignore next*/ | ||
if (module.hot) delete this.stores[key]; | ||
if (this.stores[key] || !key) { | ||
@@ -119,5 +122,2 @@ if (this.stores[key]) { | ||
/*istanbul ignore next*/ | ||
if (module.hot) delete this.stores[key]; | ||
this.stores[key] = storeInstance; | ||
@@ -124,0 +124,0 @@ StateFunctions.saveInitialSnapshot(this, key); |
{ | ||
"name": "alt", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "A flux implementation", | ||
@@ -49,7 +49,10 @@ "main": "lib", | ||
"build-alt-browser": "webpack --config dist.config.js && webpack -p --config dist.min.config.js", | ||
"clean": "rimraf lib && rimraf utils", | ||
"coverage": "npm run transpile-cover && istanbul cover node_modules/mocha/bin/_mocha -- -u exports -R tap --require ./test/babel test", | ||
"clean": "rimraf lib && rimraf utils", | ||
"lint": "eslint src components", | ||
"postversion": "git push && git push --tags", | ||
"prepublish": "npm run lint && npm run build", | ||
"pretest": "npm run clean && npm run transpile", | ||
"preversion": "npm run clean && npm run lint", | ||
"release": "npm run build && mversion patch -m", | ||
"size": "npm run build-alt; browserify flux.js > flux-build.js; uglifyjs -m -c 'comparisons=false,keep_fargs=true,unsafe=true,unsafe_comps=true,warnings=false' flux-build.js > flux-build.min.js", | ||
@@ -60,3 +63,4 @@ "test": "npm run test-node", | ||
"transpile": "babel src/alt --out-dir lib && babel src/utils --out-dir utils", | ||
"transpile-cover": "babel src/alt --out-dir lib -r && babel src/utils --out-dir utils -r" | ||
"transpile-cover": "babel src/alt --out-dir lib -r && babel src/utils --out-dir utils -r", | ||
"version": "npm run build" | ||
}, | ||
@@ -63,0 +67,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
712397