@html-next/vertical-collection 2.1.0 → 3.0.0-0
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 +11 -10
- package/CHANGELOG.md +10 -0
- package/README.md +1 -0
- package/bin/run-tests-with-retry.sh +4 -4
- package/index.js +48 -4
- package/package.json +13 -14
package/.github/workflows/ci.yml
CHANGED
|
@@ -7,16 +7,16 @@ jobs:
|
|
|
7
7
|
test:
|
|
8
8
|
name: Run Tests
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
|
-
timeout-minutes:
|
|
10
|
+
timeout-minutes: 12
|
|
11
11
|
|
|
12
12
|
steps:
|
|
13
13
|
- name: Checkout
|
|
14
14
|
uses: actions/checkout@v2
|
|
15
15
|
|
|
16
|
-
- name: Use Node
|
|
16
|
+
- name: Use Node 14
|
|
17
17
|
uses: actions/setup-node@v2-beta
|
|
18
18
|
with:
|
|
19
|
-
node-version:
|
|
19
|
+
node-version: 14.x
|
|
20
20
|
|
|
21
21
|
- name: Node Modules Cache
|
|
22
22
|
uses: actions/cache@v2
|
|
@@ -31,22 +31,20 @@ jobs:
|
|
|
31
31
|
run: yarn lint
|
|
32
32
|
|
|
33
33
|
- name: Run Tests
|
|
34
|
-
run:
|
|
34
|
+
run: bin/run-tests-with-retry.sh
|
|
35
35
|
env:
|
|
36
36
|
CI: true
|
|
37
37
|
|
|
38
38
|
test-ember-try:
|
|
39
39
|
name: Run Tests
|
|
40
40
|
runs-on: ubuntu-latest
|
|
41
|
-
timeout-minutes:
|
|
41
|
+
timeout-minutes: 14
|
|
42
42
|
|
|
43
43
|
strategy:
|
|
44
44
|
fail-fast: false
|
|
45
45
|
matrix:
|
|
46
46
|
ember-version:
|
|
47
47
|
[
|
|
48
|
-
ember-lts-2.8,
|
|
49
|
-
ember-lts-2.12,
|
|
50
48
|
ember-lts-2.18,
|
|
51
49
|
ember-lts-3.4,
|
|
52
50
|
ember-lts-3.8,
|
|
@@ -54,17 +52,20 @@ jobs:
|
|
|
54
52
|
ember-lts-3.16,
|
|
55
53
|
ember-lts-3.20,
|
|
56
54
|
ember-lts-3.24,
|
|
57
|
-
ember-lts-3.
|
|
55
|
+
ember-lts-3.28,
|
|
56
|
+
ember-release,
|
|
57
|
+
ember-beta,
|
|
58
|
+
ember-canary,
|
|
58
59
|
]
|
|
59
60
|
|
|
60
61
|
steps:
|
|
61
62
|
- name: Checkout
|
|
62
63
|
uses: actions/checkout@v2
|
|
63
64
|
|
|
64
|
-
- name: Use Node
|
|
65
|
+
- name: Use Node 14
|
|
65
66
|
uses: actions/setup-node@v2-beta
|
|
66
67
|
with:
|
|
67
|
-
node-version:
|
|
68
|
+
node-version: 14.x
|
|
68
69
|
|
|
69
70
|
- name: Node Modules Cache
|
|
70
71
|
uses: actions/cache@v2
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## v3.0.0-0 (2021-12-09)
|
|
5
|
+
|
|
6
|
+
#### What's new
|
|
7
|
+
|
|
8
|
+
* Drop support for Ember < 2.18, add support for Ember 4.0+ (#343) (3343ecc)
|
|
9
|
+
* 4 retries on CI, 1s sleep (#352) (4a75d99)
|
|
10
|
+
* Extend timeout for base tests, tweak retry (#351) (8fff4c7)
|
|
11
|
+
* Remove implicit this in tests (#349) (5f58de6)
|
|
12
|
+
|
|
13
|
+
|
|
4
14
|
## v2.1.0 (2021-12-09)
|
|
5
15
|
|
|
6
16
|
Changelog:
|
package/README.md
CHANGED
|
@@ -66,6 +66,7 @@ ember install @html-next/vertical-collection
|
|
|
66
66
|
| ----------------------------- | ------------------------ | ----------------------- |
|
|
67
67
|
| `^v1.x.x` | `v1.12.0 - v3.8.x` | `?` |
|
|
68
68
|
| `^v2.x.x` | `v2.8.0 - v3.26.x` | `v12 - ?` |
|
|
69
|
+
| `^v3.x.x` | `v2.18.0+` | `v14+` |
|
|
69
70
|
|
|
70
71
|
## Support, Questions, Collaboration
|
|
71
72
|
|
|
@@ -4,7 +4,7 @@ function retry {
|
|
|
4
4
|
command="$*"
|
|
5
5
|
retval=1
|
|
6
6
|
attempt=1
|
|
7
|
-
until [[ $retval -eq 0 ]] || [[ $attempt -gt
|
|
7
|
+
until [[ $retval -eq 0 ]] || [[ $attempt -gt 4 ]]; do
|
|
8
8
|
# Execute inside of a subshell in case parent
|
|
9
9
|
# script is running with "set -e"
|
|
10
10
|
(
|
|
@@ -15,13 +15,13 @@ function retry {
|
|
|
15
15
|
attempt=$(( $attempt + 1 ))
|
|
16
16
|
if [[ $retval -ne 0 ]]; then
|
|
17
17
|
# If there was an error wait 10 seconds
|
|
18
|
-
sleep
|
|
18
|
+
sleep 1
|
|
19
19
|
fi
|
|
20
20
|
done
|
|
21
|
-
if [[ $retval -ne 0 ]] && [[ $attempt -gt
|
|
21
|
+
if [[ $retval -ne 0 ]] && [[ $attempt -gt 4 ]]; then
|
|
22
22
|
# Something is fubar, go ahead and exit
|
|
23
23
|
exit $retval
|
|
24
24
|
fi
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
retry
|
|
27
|
+
retry yarn test:ember
|
package/index.js
CHANGED
|
@@ -32,6 +32,17 @@ module.exports = {
|
|
|
32
32
|
return requiresModulesDir ? 'modules' : '';
|
|
33
33
|
},
|
|
34
34
|
|
|
35
|
+
// Borrowed from ember-cli-babel
|
|
36
|
+
_emberVersionRequiresModulesAPIPolyfill() {
|
|
37
|
+
let checker = this.checker.for('ember-source', 'npm');
|
|
38
|
+
|
|
39
|
+
if (!checker.exists()) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return checker.lt('3.27.0-alpha.1');
|
|
44
|
+
},
|
|
45
|
+
|
|
35
46
|
treeForAddon(tree) {
|
|
36
47
|
let babel = this.addons.find((addon) => addon.name === 'ember-cli-babel');
|
|
37
48
|
let withPrivate = new Funnel(tree, { include: ['-private/**'] });
|
|
@@ -45,11 +56,39 @@ module.exports = {
|
|
|
45
56
|
destDir: '@html-next/vertical-collection'
|
|
46
57
|
});
|
|
47
58
|
|
|
59
|
+
// When compiling with `compileModules: false`, ember-cli-babel defaults to
|
|
60
|
+
// using the modules polyfill, since it assumes we are concatenating the
|
|
61
|
+
// output script using `app.import` without an AMD wrapper.
|
|
62
|
+
//
|
|
63
|
+
// This does not apply to us, since we are compiling the `-private` modules
|
|
64
|
+
// into a single AMD module (via rollup below), which can in fact have
|
|
65
|
+
// external dependencies.
|
|
66
|
+
//
|
|
67
|
+
// We can opt-out of this with `disableEmberModulesAPIPolyfill: true`. In
|
|
68
|
+
// Ember versions with "real modules", that is what we want in order to
|
|
69
|
+
// avoid the Ember global deprecation (or just completely not working in
|
|
70
|
+
// 4.0+).
|
|
71
|
+
//
|
|
72
|
+
// It seems like the intent may have been that we should be able to set
|
|
73
|
+
// this to `true` unconditionally, and `ember-cli-babel` will ignore this
|
|
74
|
+
// setting if the Ember verion requires the modules API polyfill. However,
|
|
75
|
+
// presumably due to a bug, ember-cli-babel actually checks for this value
|
|
76
|
+
// first and return out of the function early if its value is truthy. This
|
|
77
|
+
// means that if we set this to true unconditionally, then we would have
|
|
78
|
+
// disabled the modules polyfill for Ember versions that needs it, which
|
|
79
|
+
// would be incorrect. Therefore, we have to duplicate the detection logic
|
|
80
|
+
// here in order to set this value appropriately.
|
|
81
|
+
//
|
|
82
|
+
// Ideally, we should just stop trying to rollup the -private modules and
|
|
83
|
+
// let the modern build pipeline optimizes things for us, then none of this
|
|
84
|
+
// would have been necessary.
|
|
48
85
|
let privateTree = babel.transpileTree(withPrivate, {
|
|
49
86
|
babel: this.options.babel,
|
|
50
87
|
'ember-cli-babel': {
|
|
51
|
-
compileModules: false
|
|
52
|
-
|
|
88
|
+
compileModules: false,
|
|
89
|
+
disableEmberModulesAPIPolyfill:
|
|
90
|
+
!this._emberVersionRequiresModulesAPIPolyfill(),
|
|
91
|
+
},
|
|
53
92
|
});
|
|
54
93
|
|
|
55
94
|
const templateTree = new Funnel(tree, {
|
|
@@ -72,8 +111,13 @@ module.exports = {
|
|
|
72
111
|
}
|
|
73
112
|
}
|
|
74
113
|
],
|
|
75
|
-
external
|
|
76
|
-
|
|
114
|
+
external(id) {
|
|
115
|
+
return (
|
|
116
|
+
id.startsWith('@ember/') ||
|
|
117
|
+
['ember', 'ember-raf-scheduler'].includes(id)
|
|
118
|
+
);
|
|
119
|
+
},
|
|
120
|
+
},
|
|
77
121
|
});
|
|
78
122
|
|
|
79
123
|
let destDir = this.getOutputDirForVersion();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-next/vertical-collection",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-0",
|
|
4
4
|
"description": "infinite-scroll, done right. done.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"occlusion",
|
|
@@ -43,8 +43,6 @@
|
|
|
43
43
|
"build": "ember build --environment=production",
|
|
44
44
|
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
|
|
45
45
|
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
|
|
46
|
-
"lint:hbs": "ember-template-lint .",
|
|
47
|
-
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
48
46
|
"lint:js": "eslint . --cache",
|
|
49
47
|
"lint:js:fix": "eslint . --fix",
|
|
50
48
|
"start": "ember serve",
|
|
@@ -58,34 +56,33 @@
|
|
|
58
56
|
"broccoli-merge-trees": "^3.0.1",
|
|
59
57
|
"broccoli-rollup": "^4.1.1",
|
|
60
58
|
"ember-cli-babel": "^7.12.0",
|
|
61
|
-
"ember-cli-htmlbars": "^
|
|
59
|
+
"ember-cli-htmlbars": "^5.0.0",
|
|
62
60
|
"ember-cli-version-checker": "^3.1.3",
|
|
63
61
|
"ember-compatibility-helpers": "^1.2.1",
|
|
64
|
-
"ember-raf-scheduler": "0.
|
|
62
|
+
"ember-raf-scheduler": "^0.3.0"
|
|
65
63
|
},
|
|
66
64
|
"devDependencies": {
|
|
67
65
|
"@ember/optional-features": "^2.0.0",
|
|
66
|
+
"@ember/test-helpers": "^2.4.0",
|
|
68
67
|
"babel-eslint": "^10.1.0",
|
|
69
68
|
"bootstrap": "~3.3.5",
|
|
70
69
|
"broccoli-asset-rev": "^3.0.0",
|
|
70
|
+
"ember-auto-import": "^2.0.0",
|
|
71
71
|
"ember-cli": "~3.28.0",
|
|
72
72
|
"ember-cli-dependency-checker": "^3.2.0",
|
|
73
73
|
"ember-cli-eslint": "^5.1.0",
|
|
74
74
|
"ember-cli-fastboot": "^2.1.3",
|
|
75
75
|
"ember-cli-github-pages": "^0.2.2",
|
|
76
|
-
"ember-cli-htmlbars-inline-precompile": "^3.0.0",
|
|
77
76
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
78
77
|
"ember-cli-sri": "^2.1.1",
|
|
79
78
|
"ember-cli-terser": "^4.0.2",
|
|
80
|
-
"ember-cli-template-lint": "^1.0.0",
|
|
81
79
|
"ember-code-snippet": "^2.4.1",
|
|
82
80
|
"ember-data": "~3.12.0",
|
|
83
81
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
84
82
|
"ember-export-application-global": "^2.0.1",
|
|
85
83
|
"ember-load-initializers": "^2.1.2",
|
|
86
|
-
"ember-
|
|
87
|
-
"ember-
|
|
88
|
-
"ember-qunit": "^4.5.1",
|
|
84
|
+
"ember-perf-timeline": "^2.0.0",
|
|
85
|
+
"ember-qunit": "^5.0.0",
|
|
89
86
|
"ember-resolver": "^8.0.2",
|
|
90
87
|
"ember-source": "~3.12.0",
|
|
91
88
|
"ember-source-channel-url": "^3.0.0",
|
|
@@ -95,12 +92,14 @@
|
|
|
95
92
|
"eslint-plugin-node": "^9.1.0",
|
|
96
93
|
"loader.js": "^4.7.0",
|
|
97
94
|
"npm-run-all": "^4.1.5",
|
|
98
|
-
"qunit
|
|
95
|
+
"qunit": "^2.0.0",
|
|
96
|
+
"qunit-dom": "^1.0.0",
|
|
99
97
|
"release-it": "^14.2.1",
|
|
100
|
-
"release-it-lerna-changelog": "^3.1.0"
|
|
98
|
+
"release-it-lerna-changelog": "^3.1.0",
|
|
99
|
+
"webpack": "^5.0.0"
|
|
101
100
|
},
|
|
102
101
|
"engines": {
|
|
103
|
-
"node": ">=
|
|
102
|
+
"node": ">= 14.*"
|
|
104
103
|
},
|
|
105
104
|
"publishConfig": {
|
|
106
105
|
"registry": "https://registry.npmjs.org"
|
|
@@ -124,7 +123,7 @@
|
|
|
124
123
|
}
|
|
125
124
|
},
|
|
126
125
|
"volta": {
|
|
127
|
-
"node": "
|
|
126
|
+
"node": "14.18.2",
|
|
128
127
|
"yarn": "1.22.17"
|
|
129
128
|
}
|
|
130
129
|
}
|