ember-url-hash-polyfill 1.0.8 → 1.0.10

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.
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
 
21
21
  steps:
22
- - uses: actions/checkout@v2
22
+ - uses: actions/checkout@v3
23
23
  - uses: volta-cli/action@v1
24
24
 
25
25
  - run: yarn install --frozen-lockfile
@@ -34,10 +34,10 @@ jobs:
34
34
  strategy:
35
35
  matrix:
36
36
  node:
37
- - "12"
38
- - "14"
37
+ - "16"
38
+ - "18"
39
39
  steps:
40
- - uses: actions/checkout@v2
40
+ - uses: actions/checkout@v3
41
41
  - uses: volta-cli/action@v1
42
42
  with:
43
43
  node-version: ${{ matrix.node }}
@@ -55,11 +55,11 @@ jobs:
55
55
  strategy:
56
56
  matrix:
57
57
  node:
58
- - "12"
59
- - "14"
58
+ - "16"
59
+ - "18"
60
60
 
61
61
  steps:
62
- - uses: actions/checkout@v2
62
+ - uses: actions/checkout@v3
63
63
  - uses: volta-cli/action@v1
64
64
  with:
65
65
  node-version: ${{ matrix.node }}
@@ -80,17 +80,17 @@ jobs:
80
80
  fail-fast: true
81
81
  matrix:
82
82
  ember-try-scenario:
83
- - ember-3.25
84
- - ember-3.26
83
+ - ember-4.4
84
+ - ember-4.8
85
85
  - ember-release
86
86
  - ember-beta
87
87
  - ember-canary
88
88
  - embroider
89
89
  steps:
90
- - uses: actions/checkout@v2
90
+ - uses: actions/checkout@v3
91
91
  - uses: volta-cli/action@v1
92
92
  with:
93
- node-version: 12.x
93
+ node-version: 16.x
94
94
  - name: install dependencies
95
95
  run: yarn install --frozen-lockfile
96
96
  - name: test
@@ -102,11 +102,11 @@ jobs:
102
102
  needs: [tests, try-scenarios, floating-dependencies]
103
103
 
104
104
  steps:
105
- - uses: actions/checkout@v2
105
+ - uses: actions/checkout@v3
106
106
  with:
107
107
  ref: ${{ github.head_ref }}
108
108
  token: ${{ secrets.GitHubToken }}
109
- - uses: actions/setup-node@v2
109
+ - uses: actions/setup-node@v3
110
110
  - uses: kellyselden/ember-cli-update-action@v3
111
111
  with:
112
112
  autofix_command: yarn lint:fix
@@ -119,7 +119,7 @@ jobs:
119
119
  needs: [tests, try-scenarios, floating-dependencies]
120
120
 
121
121
  steps:
122
- - uses: actions/checkout@v2
122
+ - uses: actions/checkout@v3
123
123
  with:
124
124
  persist-credentials: false
125
125
  - uses: volta-cli/action@v1
@@ -21,7 +21,7 @@ jobs:
21
21
  runs-on: ubuntu-latest
22
22
 
23
23
  steps:
24
- - uses: actions/checkout@v2
24
+ - uses: actions/checkout@v3
25
25
  - uses: volta-cli/action@v1
26
26
 
27
27
  - run: yarn install --frozen-lockfile
@@ -64,9 +64,9 @@ jobs:
64
64
  runs-on: ubuntu-latest
65
65
 
66
66
  steps:
67
- - uses: actions/checkout@v2
67
+ - uses: actions/checkout@v3
68
68
  with:
69
69
  fetch-depth: 0
70
70
 
71
71
  - uses: volta-cli/action@v1
72
- - uses: wagoid/commitlint-github-action@v3.1.4
72
+ - uses: wagoid/commitlint-github-action@v4.1.15
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [1.0.10](https://github.com/CrowdStrike/ember-url-hash-polyfill/compare/v1.0.9...v1.0.10) (2023-05-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency ember-cli-htmlbars to ^6.2.0 ([e59aefe](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/e59aefe66db24d1e9116c978de9b02d2e865a29b))
7
+
8
+ ## [1.0.9](https://github.com/CrowdStrike/ember-url-hash-polyfill/compare/v1.0.8...v1.0.9) (2023-05-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add missing @types/ember__destroyable dependency ([9f61791](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/9f61791b4022e72b4b89c05c641dfabc64b123a4))
14
+ * add webpack@5 to fix "ember test" ([29c2e51](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/29c2e51673e98565a2e6ac7212278a1231a01820))
15
+ * bump @types/ember-qunit to fix typechecking ([7b15be2](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/7b15be23117722cdaa7b0104d6ddfad3a1ff7a3c))
16
+ * dedup "@types/ember" packages ([9d64849](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/9d64849bd07b74c74dc948e356965fa93edcf20b))
17
+ * dedup @types/eslint to prevent type mismatch ([3191338](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/319133833458b86c821f6bddb17f85f14a71b2e2))
18
+ * **deps:** update dependency ember-cli-babel to ^7.26.11 ([6a9f076](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/6a9f076b6a4c3272e0f105b1a4239f7d8439a157))
19
+ * **deps:** update dependency ember-cli-htmlbars to ^5.7.2 ([55b44e5](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/55b44e5d42fdad2da05b4765eb4fccef9106df52))
20
+ * **deps:** update dependency ember-cli-htmlbars to v6 ([1256130](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/1256130adce4f59fad9c69b0c9dc97408e0ea814))
21
+ * ignore loading route when handling initial page load ([853ea7a](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/853ea7a1fc99273c21526f01cfc3d1ec4378ad6d))
22
+ * update ember-try to fix local run ([5d4c880](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/5d4c880b18b8e890622ac3d7e9044d382e17c71e))
23
+ * update node version for CI ([80554ec](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/80554ec72b3de2e8cb98c942cc2fbe68018c32de))
24
+
1
25
  ## [1.0.8](https://github.com/CrowdStrike/ember-url-hash-polyfill/compare/v1.0.7...v1.0.8) (2021-06-17)
2
26
 
3
27
 
package/README.md CHANGED
@@ -25,7 +25,7 @@ ember install ember-url-hash-polyfill
25
25
  ## Compatibility
26
26
 
27
27
  * Ember.js v3.25 or above
28
- * Node.js v12 or above
28
+ * Node.js v14 or above
29
29
 
30
30
  ## Usage
31
31
 
package/addon/index.ts CHANGED
@@ -64,6 +64,10 @@ export function scrollToHash(hash: string) {
64
64
  }
65
65
  }
66
66
 
67
+ function isLoadingRoute(routeName: string) {
68
+ return routeName.endsWith('_loading') || routeName.endsWith('.loading');
69
+ }
70
+
67
71
  async function setupHashSupport(router: EmberRouter) {
68
72
  let initialURL: string | undefined;
69
73
  let owner = getOwner(router) as ApplicationInstance;
@@ -71,9 +75,9 @@ async function setupHashSupport(router: EmberRouter) {
71
75
  await new Promise((resolve) => {
72
76
  let interval = setInterval(() => {
73
77
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
74
- let { currentURL } = router as any; /* Private API */
78
+ let { currentURL, currentRouteName } = router as any; /* Private API */
75
79
 
76
- if (currentURL) {
80
+ if (currentURL && !isLoadingRoute(currentRouteName)) {
77
81
  clearInterval(interval);
78
82
  initialURL = currentURL;
79
83
  resolve(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-url-hash-polyfill",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "The default blueprint for ember-cli addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -28,63 +28,64 @@
28
28
  "postpack": "ember ts:clean"
29
29
  },
30
30
  "dependencies": {
31
- "ember-cli-babel": "^7.26.6",
32
- "ember-cli-htmlbars": "^5.7.1",
31
+ "ember-cli-babel": "^7.26.11",
32
+ "ember-cli-htmlbars": "^6.2.0",
33
33
  "ember-cli-typescript": "^4.2.1",
34
- "ember-test-waiters": "^2.1.3"
34
+ "ember-test-waiters": "^2.1.3",
35
+ "webpack": "5"
35
36
  },
36
37
  "devDependencies": {
37
- "@commitlint/cli": "^12.1.1",
38
- "@commitlint/config-conventional": "^12.1.1",
38
+ "@commitlint/cli": "^13.1.0",
39
+ "@commitlint/config-conventional": "^13.1.0",
39
40
  "@ember/optional-features": "^2.0.0",
40
- "@ember/test-helpers": "^2.2.8",
41
+ "@ember/test-helpers": "^2.9.3",
41
42
  "@glimmer/component": "^1.0.4",
42
43
  "@glimmer/tracking": "^1.0.4",
43
44
  "@nullvoxpopuli/eslint-configs": "^1.3.0",
44
- "@semantic-release/changelog": "^5.0.1",
45
- "@semantic-release/git": "^9.0.0",
46
- "@types/ember-qunit": "^3.4.13",
47
- "@types/ember-resolver": "^5.0.10",
48
- "@types/ember__application": "^3.16.2",
49
- "@types/ember__array": "^3.16.4",
50
- "@types/ember__component": "^3.16.4",
51
- "@types/ember__controller": "^3.16.4",
52
- "@types/ember__debug": "^3.16.3",
53
- "@types/ember__engine": "^3.16.2",
54
- "@types/ember__error": "^3.16.1",
55
- "@types/ember__object": "^3.12.5",
56
- "@types/ember__polyfills": "^3.12.1",
57
- "@types/ember__routing": "^3.16.14",
58
- "@types/ember__runloop": "^3.16.3",
59
- "@types/ember__service": "^3.16.1",
45
+ "@semantic-release/changelog": "^6.0.3",
46
+ "@semantic-release/git": "^10.0.1",
47
+ "@types/ember-qunit": "^4.0.1",
48
+ "@types/ember-resolver": "^5.0.11",
49
+ "@types/ember__application": "^3.16.4",
50
+ "@types/ember__array": "^3.16.5",
51
+ "@types/ember__component": "^3.16.7",
52
+ "@types/ember__controller": "^3.16.7",
53
+ "@types/ember__debug": "^3.16.7",
54
+ "@types/ember__destroyable": "3.22.0",
55
+ "@types/ember__engine": "^3.16.4",
56
+ "@types/ember__error": "^3.16.2",
57
+ "@types/ember__object": "^3.12.7",
58
+ "@types/ember__polyfills": "^3.12.2",
59
+ "@types/ember__routing": "^3.16.16",
60
+ "@types/ember__runloop": "^3.16.4",
61
+ "@types/ember__service": "^3.16.2",
60
62
  "@types/ember__string": "^3.16.3",
61
- "@types/ember__template": "^3.16.1",
62
- "@types/ember__test": "^3.16.1",
63
- "@types/ember__test-helpers": "^2.0.0",
64
- "@types/ember__utils": "^3.16.2",
63
+ "@types/ember__template": "^3.16.2",
64
+ "@types/ember__test": "^3.16.2",
65
+ "@types/ember__test-helpers": "^2.6.1",
66
+ "@types/ember__utils": "^3.16.3",
65
67
  "@types/htmlbars-inline-precompile": "^1.0.1",
66
- "@types/qunit": "^2.11.1",
67
- "@types/rsvp": "^4.0.3",
68
+ "@types/qunit": "^2.11.3",
69
+ "@types/rsvp": "^4.0.4",
68
70
  "babel-eslint": "^10.1.0",
69
71
  "broccoli-asset-rev": "^3.0.0",
70
- "ember-auto-import": "^1.11.3",
71
- "ember-cli": "~3.26.1",
72
- "ember-cli-dependency-checker": "^3.2.0",
72
+ "ember-auto-import": "^2.6.3",
73
+ "ember-cli": "~4.12.1",
74
+ "ember-cli-dependency-checker": "^3.3.1",
73
75
  "ember-cli-inject-live-reload": "^2.1.0",
74
76
  "ember-cli-sri": "^2.1.1",
75
77
  "ember-cli-terser": "^4.0.2",
76
78
  "ember-cli-typescript-blueprints": "^3.0.0",
77
79
  "ember-disable-prototype-extensions": "^1.1.3",
78
- "ember-export-application-global": "^2.0.1",
79
80
  "ember-load-initializers": "^2.1.2",
80
- "ember-maybe-import-regenerator": "^0.1.6",
81
- "ember-page-title": "^6.2.2",
82
- "ember-qunit": "^5.1.4",
83
- "ember-resolver": "^8.0.2",
84
- "ember-source": "~3.27.5",
81
+ "ember-maybe-import-regenerator": "^1.0.0",
82
+ "ember-page-title": "^7.0.0",
83
+ "ember-qunit": "^5.1.5",
84
+ "ember-resolver": "^8.0.3",
85
+ "ember-source": "~4.2.0",
85
86
  "ember-source-channel-url": "^3.0.0",
86
87
  "ember-template-lint": "^3.2.0",
87
- "ember-try": "^1.4.0",
88
+ "ember-try": "^3.0.0-beta.1",
88
89
  "eslint": "^7.20.0",
89
90
  "eslint-config-prettier": "^8.3.0",
90
91
  "eslint-plugin-ember": "^10.2.0",
@@ -93,10 +94,10 @@
93
94
  "loader.js": "^4.7.0",
94
95
  "npm-run-all": "^4.1.5",
95
96
  "prettier": "^2.2.1",
96
- "qunit": "^2.16.0",
97
- "qunit-dom": "^1.6.0",
98
- "semantic-release": "^17.4.4",
99
- "typescript": "^4.3.3"
97
+ "qunit": "^2.18.0",
98
+ "qunit-dom": "^2.0.0",
99
+ "semantic-release": "^19.0.5",
100
+ "typescript": "^4.6.2"
100
101
  },
101
102
  "release": {
102
103
  "branches": [
@@ -113,11 +114,11 @@
113
114
  ]
114
115
  },
115
116
  "volta": {
116
- "node": "14.17.1",
117
- "yarn": "1.22.10"
117
+ "node": "16.20.0",
118
+ "yarn": "1.22.19"
118
119
  },
119
120
  "engines": {
120
- "node": "10.* || >= 12"
121
+ "node": "16.* || >= 18"
121
122
  },
122
123
  "ember": {
123
124
  "edition": "octane"