@curtissimo/elm-hot 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.8
4
+ - Remove the error check for when Nav Key moves
5
+ (See [GitHub issue 46](https://github.com/klazuka/elm-hot/pull/46/files)
6
+ created on 3 December 2020)
7
+
3
8
  ## 1.1.7
4
9
  - Remove the use of `eval` in the code
5
10
  - Format JavaScript files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curtissimo/elm-hot",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Hot code swapping for Elm",
5
5
  "keywords": [
6
6
  "Elm",
@@ -34,4 +34,4 @@
34
34
  "puppeteer": "^24.34.0",
35
35
  "tap-xunit": "^2.4.1"
36
36
  }
37
- }
37
+ }
package/resources/hmr.js CHANGED
@@ -414,8 +414,6 @@ if (module.hot) {
414
414
  error = "could not find Browser.Navigation.Key in the new app model";
415
415
  } else if (oldKeyLoc === null) {
416
416
  error = "could not find Browser.Navigation.Key in the old app model.";
417
- } else if (newKeyLoc.keypath.toString() !== oldKeyLoc.keypath.toString()) {
418
- error = "the location of the Browser.Navigation.Key in the model has changed.";
419
417
  } else {
420
418
  // remove event listeners attached to the old nav key
421
419
  removeNavKeyListeners(oldKeyLoc.value);