ember-url-hash-polyfill 1.0.7 → 1.0.9
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/.github/workflows/ci.yml +14 -14
- package/.github/workflows/lint.yml +3 -3
- package/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/addon/index.ts +6 -2
- package/package.json +48 -47
package/.github/workflows/ci.yml
CHANGED
@@ -19,7 +19,7 @@ jobs:
|
|
19
19
|
runs-on: ubuntu-latest
|
20
20
|
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
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
|
-
- "
|
38
|
-
- "
|
37
|
+
- "16"
|
38
|
+
- "18"
|
39
39
|
steps:
|
40
|
-
- uses: actions/checkout@
|
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
|
-
- "
|
59
|
-
- "
|
58
|
+
- "16"
|
59
|
+
- "18"
|
60
60
|
|
61
61
|
steps:
|
62
|
-
- uses: actions/checkout@
|
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-
|
84
|
-
- ember-
|
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@
|
90
|
+
- uses: actions/checkout@v3
|
91
91
|
- uses: volta-cli/action@v1
|
92
92
|
with:
|
93
|
-
node-version:
|
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@
|
105
|
+
- uses: actions/checkout@v3
|
106
106
|
with:
|
107
107
|
ref: ${{ github.head_ref }}
|
108
108
|
token: ${{ secrets.GitHubToken }}
|
109
|
-
- uses: actions/setup-node@
|
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@
|
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@
|
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@
|
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@
|
72
|
+
- uses: wagoid/commitlint-github-action@v4.1.9
|
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
+
## [1.0.9](https://github.com/CrowdStrike/ember-url-hash-polyfill/compare/v1.0.8...v1.0.9) (2023-05-10)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add missing @types/ember__destroyable dependency ([9f61791](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/9f61791b4022e72b4b89c05c641dfabc64b123a4))
|
7
|
+
* add webpack@5 to fix "ember test" ([29c2e51](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/29c2e51673e98565a2e6ac7212278a1231a01820))
|
8
|
+
* bump @types/ember-qunit to fix typechecking ([7b15be2](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/7b15be23117722cdaa7b0104d6ddfad3a1ff7a3c))
|
9
|
+
* dedup "@types/ember" packages ([9d64849](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/9d64849bd07b74c74dc948e356965fa93edcf20b))
|
10
|
+
* dedup @types/eslint to prevent type mismatch ([3191338](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/319133833458b86c821f6bddb17f85f14a71b2e2))
|
11
|
+
* **deps:** update dependency ember-cli-babel to ^7.26.11 ([6a9f076](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/6a9f076b6a4c3272e0f105b1a4239f7d8439a157))
|
12
|
+
* **deps:** update dependency ember-cli-htmlbars to ^5.7.2 ([55b44e5](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/55b44e5d42fdad2da05b4765eb4fccef9106df52))
|
13
|
+
* **deps:** update dependency ember-cli-htmlbars to v6 ([1256130](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/1256130adce4f59fad9c69b0c9dc97408e0ea814))
|
14
|
+
* ignore loading route when handling initial page load ([853ea7a](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/853ea7a1fc99273c21526f01cfc3d1ec4378ad6d))
|
15
|
+
* update ember-try to fix local run ([5d4c880](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/5d4c880b18b8e890622ac3d7e9044d382e17c71e))
|
16
|
+
* update node version for CI ([80554ec](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/80554ec72b3de2e8cb98c942cc2fbe68018c32de))
|
17
|
+
|
18
|
+
## [1.0.8](https://github.com/CrowdStrike/ember-url-hash-polyfill/compare/v1.0.7...v1.0.8) (2021-06-17)
|
19
|
+
|
20
|
+
|
21
|
+
### Bug Fixes
|
22
|
+
|
23
|
+
* **deps:** update dependency ember-cli-typescript to ^4.2.1 ([42b2b11](https://github.com/CrowdStrike/ember-url-hash-polyfill/commit/42b2b115e2e94338c780e32a4aec1f345adbca9f))
|
24
|
+
|
1
25
|
## [1.0.7](https://github.com/CrowdStrike/ember-url-hash-polyfill/compare/v1.0.6...v1.0.7) (2021-06-15)
|
2
26
|
|
3
27
|
|
package/README.md
CHANGED
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.
|
3
|
+
"version": "1.0.9",
|
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.
|
32
|
-
"ember-cli-htmlbars": "^
|
33
|
-
"ember-cli-typescript": "^4.2.
|
34
|
-
"ember-test-waiters": "^2.1.3"
|
31
|
+
"ember-cli-babel": "^7.26.11",
|
32
|
+
"ember-cli-htmlbars": "^6.1.1",
|
33
|
+
"ember-cli-typescript": "^4.2.1",
|
34
|
+
"ember-test-waiters": "^2.1.3",
|
35
|
+
"webpack": "5"
|
35
36
|
},
|
36
37
|
"devDependencies": {
|
37
|
-
"@commitlint/cli": "^
|
38
|
-
"@commitlint/config-conventional": "^
|
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.
|
41
|
+
"@ember/test-helpers": "^2.6.0",
|
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": "^
|
45
|
-
"@semantic-release/git": "^
|
46
|
-
"@types/ember-qunit": "^
|
47
|
-
"@types/ember-resolver": "^5.0.
|
48
|
-
"@types/ember__application": "^3.16.
|
49
|
-
"@types/ember__array": "^3.16.
|
50
|
-
"@types/ember__component": "^3.16.
|
51
|
-
"@types/ember__controller": "^3.16.
|
52
|
-
"@types/ember__debug": "^3.16.
|
53
|
-
"@types/
|
54
|
-
"@types/
|
55
|
-
"@types/
|
56
|
-
"@types/
|
57
|
-
"@types/
|
58
|
-
"@types/
|
59
|
-
"@types/
|
45
|
+
"@semantic-release/changelog": "^6.0.1",
|
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.
|
62
|
-
"@types/ember__test": "^3.16.
|
63
|
-
"@types/ember__test-helpers": "^2.
|
64
|
-
"@types/ember__utils": "^3.16.
|
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.
|
67
|
-
"@types/rsvp": "^4.0.
|
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": "^
|
71
|
-
"ember-cli": "~
|
72
|
-
"ember-cli-dependency-checker": "^3.
|
72
|
+
"ember-auto-import": "^2.4.3",
|
73
|
+
"ember-cli": "~4.8.0",
|
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.
|
81
|
-
"ember-page-title": "^
|
82
|
-
"ember-qunit": "^5.1.
|
83
|
-
"ember-resolver": "^8.0.
|
84
|
-
"ember-source": "~
|
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": "^
|
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.
|
97
|
-
"qunit-dom": "^
|
98
|
-
"semantic-release": "^
|
99
|
-
"typescript": "^4.
|
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": "
|
117
|
-
"yarn": "1.22.
|
117
|
+
"node": "16.18.1",
|
118
|
+
"yarn": "1.22.19"
|
118
119
|
},
|
119
120
|
"engines": {
|
120
|
-
"node": "
|
121
|
+
"node": "16.* || >= 18"
|
121
122
|
},
|
122
123
|
"ember": {
|
123
124
|
"edition": "octane"
|