ember-container-query 2.1.1 → 3.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/.stylelintcache +1 -0
- package/CHANGELOG.md +43 -0
- package/LICENSE.md +1 -1
- package/README.md +36 -36
- package/addon/components/container-query.hbs +6 -4
- package/addon/modifiers/container-query.ts +0 -2
- package/package.json +19 -18
- package/tsconfig.json +1 -61
- package/config/environment.js +0 -5
package/.stylelintcache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/album.css":"1","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/index.css":"2","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/navigation-menu.css":"3","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/form.css":"4","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/app.css":"5","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/application.css":"6","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/not-found.css":"7","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/styles/dashboard.css":"8","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/tracks/list.css":"9","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/tracks/table.css":"10","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form.css":"11","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/page.css":"12","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4.css":"13","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-2.css":"14","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-3.css":"15","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-5.css":"16","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-1.css":"17","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/information.css":"18","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/checkbox.css":"19","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-2/captions.css":"20","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/textarea.css":"21","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/field.css":"22","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-1/item.css":"23","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-3/tour-schedule.css":"24","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo.css":"25","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-2/stacked-chart.css":"26","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/ui/form/input.css":"27","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo/header.css":"28","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.css":"29","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo/body.css":"30","/Users/isaaclee/Documents/GitHub/ember-container-query/tests/dummy/app/components/widgets/widget-4/memo/actions.css":"31"},{"size":892,"mtime":1656746523421,"hashOfConfig":"32"},{"size":36,"mtime":1670927594479,"hashOfConfig":"32"},{"size":323,"mtime":1656746523373,"hashOfConfig":"32"},{"size":82,"mtime":1656746523432,"hashOfConfig":"32"},{"size":1494,"mtime":1670927594478,"hashOfConfig":"32"},{"size":980,"mtime":1656746523427,"hashOfConfig":"32"},{"size":1299,"mtime":1656746523434,"hashOfConfig":"32"},{"size":1846,"mtime":1656746523430,"hashOfConfig":"32"},{"size":323,"mtime":1656746523376,"hashOfConfig":"32"},{"size":106,"mtime":1656746523378,"hashOfConfig":"32"},{"size":324,"mtime":1656746523380,"hashOfConfig":"32"},{"size":306,"mtime":1656746523386,"hashOfConfig":"32"},{"size":400,"mtime":1656746523408,"hashOfConfig":"32"},{"size":439,"mtime":1656746523393,"hashOfConfig":"32"},{"size":268,"mtime":1656746523400,"hashOfConfig":"32"},{"size":657,"mtime":1656746523418,"hashOfConfig":"32"},{"size":797,"mtime":1656746523388,"hashOfConfig":"32"},{"size":225,"mtime":1656746523384,"hashOfConfig":"32"},{"size":566,"mtime":1653552800391,"hashOfConfig":"32"},{"size":2101,"mtime":1656746523395,"hashOfConfig":"32"},{"size":375,"mtime":1653552800412,"hashOfConfig":"32"},{"size":1630,"mtime":1656746523382,"hashOfConfig":"32"},{"size":243,"mtime":1656746523391,"hashOfConfig":"32"},{"size":1570,"mtime":1656746523403,"hashOfConfig":"32"},{"size":937,"mtime":1656746523410,"hashOfConfig":"32"},{"size":267,"mtime":1656746523397,"hashOfConfig":"32"},{"size":360,"mtime":1653552800408,"hashOfConfig":"32"},{"size":888,"mtime":1656746523416,"hashOfConfig":"32"},{"size":159,"mtime":1656746523405,"hashOfConfig":"32"},{"size":493,"mtime":1656746523414,"hashOfConfig":"32"},{"size":701,"mtime":1656746523412,"hashOfConfig":"32"},"187t81u"]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
## 3.0.0 (2022-12-15)
|
|
2
|
+
|
|
3
|
+
### Breaking Change
|
|
4
|
+
* [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
|
|
5
|
+
|
|
6
|
+
### Internal
|
|
7
|
+
* [#142](https://github.com/ijlee2/ember-container-query/pull/142) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
|
|
8
|
+
* [#138](https://github.com/ijlee2/ember-container-query/pull/138) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
|
|
9
|
+
* [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
|
|
10
|
+
* [#136](https://github.com/ijlee2/ember-container-query/pull/136) Reinstalled ember-cli-typescript ([@ijlee2](https://github.com/ijlee2))
|
|
11
|
+
* [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
|
|
12
|
+
* [#131](https://github.com/ijlee2/ember-container-query/pull/131) Remove ember-cli-typescript. Enable enableTypeScriptTransform instead. ([@ijlee2](https://github.com/ijlee2))
|
|
13
|
+
|
|
14
|
+
### Documentation
|
|
15
|
+
* [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
|
|
16
|
+
* [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
|
|
17
|
+
* [#134](https://github.com/ijlee2/ember-container-query/pull/134) Refactor tests ([@ijlee2](https://github.com/ijlee2))
|
|
18
|
+
|
|
19
|
+
### Committers: 1
|
|
20
|
+
- Isaac Lee ([@ijlee2](https://github.com/ijlee2))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## 3.0.0-alpha.0 (2022-12-13)
|
|
24
|
+
|
|
25
|
+
### Breaking Change
|
|
26
|
+
* [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
|
|
27
|
+
|
|
28
|
+
### Internal
|
|
29
|
+
* [#138](https://github.com/ijlee2/ember-container-query/pull/138) Updated development dependencies ([@ijlee2](https://github.com/ijlee2))
|
|
30
|
+
* [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
|
|
31
|
+
* [#136](https://github.com/ijlee2/ember-container-query/pull/136) Reinstalled ember-cli-typescript ([@ijlee2](https://github.com/ijlee2))
|
|
32
|
+
* [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
|
|
33
|
+
* [#131](https://github.com/ijlee2/ember-container-query/pull/131) Remove ember-cli-typescript. Enable enableTypeScriptTransform instead. ([@ijlee2](https://github.com/ijlee2))
|
|
34
|
+
|
|
35
|
+
### Documentation
|
|
36
|
+
* [#137](https://github.com/ijlee2/ember-container-query/pull/137) Updated demo app ([@ijlee2](https://github.com/ijlee2))
|
|
37
|
+
* [#135](https://github.com/ijlee2/ember-container-query/pull/135) Documented {{container-query}} modifier. Dropped support for Node 12 and Ember 3.24. ([@ijlee2](https://github.com/ijlee2))
|
|
38
|
+
* [#134](https://github.com/ijlee2/ember-container-query/pull/134) Refactor tests ([@ijlee2](https://github.com/ijlee2))
|
|
39
|
+
|
|
40
|
+
### Committers: 1
|
|
41
|
+
- Isaac Lee ([@ijlee2](https://github.com/ijlee2))
|
|
42
|
+
|
|
43
|
+
|
|
1
44
|
## 2.1.1 (2022-12-02)
|
|
2
45
|
|
|
3
46
|
### Bug Fix
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Isaac J. Lee
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -14,37 +14,10 @@ Open the [demo app](https://ember-container-query.netlify.app/) to see `ember-co
|
|
|
14
14
|
Installation
|
|
15
15
|
------------------------------------------------------------------------------
|
|
16
16
|
|
|
17
|
-
```
|
|
17
|
+
```sh
|
|
18
18
|
ember install ember-container-query
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
<details>
|
|
22
|
-
<summary>Use FastBoot? ⚠️</summary>
|
|
23
|
-
|
|
24
|
-
This addon uses nullish coalescing operator `??`. If you use [FastBoot](https://github.com/ember-fastboot/ember-cli-fastboot) (with `Node < v14.0`) and only support [browsers that natively support `??`](https://v8.dev/features/nullish-coalescing#support), you will run into a build error:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
/var/folders/2z/93zyyhx13rs879qr8rzyxrb40000gn/T/broccoli-689520dxo26a682Mz/out-529-broccoli_merge_trees/assets/vendor.js:121232
|
|
28
|
-
return this.args.features ?? {};
|
|
29
|
-
^
|
|
30
|
-
SyntaxError: Unexpected token '?'
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
To prevent this, please make sure to add `node: 'current'` to your `config/targets.js` file.
|
|
34
|
-
|
|
35
|
-
```javascript
|
|
36
|
-
'use strict';
|
|
37
|
-
|
|
38
|
-
const browsers = [ ... ];
|
|
39
|
-
|
|
40
|
-
module.exports = {
|
|
41
|
-
browsers,
|
|
42
|
-
node: 'current'
|
|
43
|
-
};
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
</details>
|
|
47
|
-
|
|
48
21
|
|
|
49
22
|
Applications
|
|
50
23
|
------------------------------------------------------------------------------
|
|
@@ -137,6 +110,12 @@ The addon provides 1 Glimmer component and 3 helpers:
|
|
|
137
110
|
- `{{cq-height}}`
|
|
138
111
|
- `{{cq-width}}`
|
|
139
112
|
|
|
113
|
+
Starting `v2.1.1`, the addon extracts the core logic into a modifier. This lets you opt out of using the provided component.
|
|
114
|
+
|
|
115
|
+
- `{{container-query}}`
|
|
116
|
+
|
|
117
|
+
Expand the items below to learn more about the API.
|
|
118
|
+
|
|
140
119
|
|
|
141
120
|
<details>
|
|
142
121
|
<summary><code><ContainerQuery></code></summary>
|
|
@@ -199,6 +178,30 @@ All helpers accept these arguments:
|
|
|
199
178
|
</details>
|
|
200
179
|
|
|
201
180
|
|
|
181
|
+
<details>
|
|
182
|
+
<summary><code>{{container-query}}</code></summary>
|
|
183
|
+
|
|
184
|
+
### Arguments
|
|
185
|
+
|
|
186
|
+
You can pass these arguments to the modifier.
|
|
187
|
+
|
|
188
|
+
- `@dataAttributePrefix`
|
|
189
|
+
- `@debounce`
|
|
190
|
+
- `@features`
|
|
191
|
+
|
|
192
|
+
For more information, refer to [the arguments of `<ContainerQuery>` component](#arguments).
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Outputs
|
|
196
|
+
|
|
197
|
+
The outputs are similar to [those of `<ContainerQuery>` component](#outputs).
|
|
198
|
+
|
|
199
|
+
Data attributes are automatically applied to the HTML element. To get `dimensions` and `features`, you will need to pass the argument `@onQuery` (a function) to the modifier.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
</details>
|
|
203
|
+
|
|
204
|
+
|
|
202
205
|
Example
|
|
203
206
|
------------------------------------------------------------------------------
|
|
204
207
|
|
|
@@ -207,7 +210,7 @@ Let's look at the code that created the video demo above.
|
|
|
207
210
|
<details>
|
|
208
211
|
<summary><code>app/templates/album.hbs</code></summary>
|
|
209
212
|
|
|
210
|
-
```
|
|
213
|
+
```hbs
|
|
211
214
|
<ContainerQuery
|
|
212
215
|
@features={{hash
|
|
213
216
|
large=(cq-width min=960)
|
|
@@ -248,7 +251,7 @@ Let's look at the code that created the video demo above.
|
|
|
248
251
|
<details>
|
|
249
252
|
<summary><code>app/components/tracks.hbs</code></summary>
|
|
250
253
|
|
|
251
|
-
```
|
|
254
|
+
```hbs
|
|
252
255
|
<ContainerQuery
|
|
253
256
|
@features={{hash
|
|
254
257
|
small=(cq-width max=480)
|
|
@@ -286,12 +289,9 @@ For more examples, I encourage you to check out the code for my demo app. It is
|
|
|
286
289
|
Compatibility
|
|
287
290
|
------------------------------------------------------------------------------
|
|
288
291
|
|
|
289
|
-
* Ember.js v3.
|
|
290
|
-
* Ember CLI v3.
|
|
291
|
-
* Node.js
|
|
292
|
-
* Modern browsers<sup>1</sup> (IE 11 won't be supported)
|
|
293
|
-
|
|
294
|
-
<sup>1. Until you can adopt Ember Octane and drop support for IE 11, I recommend using [`ember-fill-up`](https://github.com/chadian/ember-fill-up) to do container queries. The APIs are similar so your migration should be smooth. Chad Carbert and I will ensure that the addons are maintained side-by-side for some time.</sup>
|
|
292
|
+
* Ember.js v3.28 or above
|
|
293
|
+
* Ember CLI v3.28 or above
|
|
294
|
+
* Node.js v14 or above
|
|
295
295
|
|
|
296
296
|
|
|
297
297
|
Contributing
|
|
@@ -44,8 +44,6 @@ interface ContainerQueryModifierSignature {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export default class ContainerQueryModifier extends Modifier<ContainerQueryModifierSignature> {
|
|
47
|
-
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
|
48
|
-
/* @ts-ignore */
|
|
49
47
|
@service private declare readonly resizeObserver;
|
|
50
48
|
|
|
51
49
|
dimensions!: Dimensions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-container-query",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Container queries using Ember modifiers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"container-queries",
|
|
@@ -64,22 +64,23 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@ember/optional-features": "^2.0.0",
|
|
67
|
-
"@ember/test-helpers": "^2.
|
|
67
|
+
"@ember/test-helpers": "^2.9.0",
|
|
68
68
|
"@embroider/test-setup": "^2.0.2",
|
|
69
69
|
"@glimmer/component": "^1.1.2",
|
|
70
70
|
"@glimmer/tracking": "^1.1.2",
|
|
71
71
|
"@percy/cli": "^1.16.0",
|
|
72
72
|
"@percy/ember": "^4.0.0",
|
|
73
|
+
"@tsconfig/ember": "^1.1.0",
|
|
73
74
|
"@types/ember-qunit": "^5.0.2",
|
|
74
75
|
"@types/ember-resolver": "^5.0.13",
|
|
75
|
-
"@types/ember__application": "^4.0.
|
|
76
|
+
"@types/ember__application": "^4.0.5",
|
|
76
77
|
"@types/ember__array": "^4.0.3",
|
|
77
78
|
"@types/ember__component": "^4.0.11",
|
|
78
79
|
"@types/ember__controller": "^4.0.4",
|
|
79
80
|
"@types/ember__debug": "^4.0.3",
|
|
80
81
|
"@types/ember__destroyable": "^4.0.1",
|
|
81
82
|
"@types/ember__engine": "^4.0.4",
|
|
82
|
-
"@types/ember__error": "^4.0.
|
|
83
|
+
"@types/ember__error": "^4.0.2",
|
|
83
84
|
"@types/ember__object": "^4.0.5",
|
|
84
85
|
"@types/ember__polyfills": "^4.0.1",
|
|
85
86
|
"@types/ember__routing": "^4.0.12",
|
|
@@ -93,19 +94,19 @@
|
|
|
93
94
|
"@types/htmlbars-inline-precompile": "^3.0.0",
|
|
94
95
|
"@types/qunit": "^2.19.3",
|
|
95
96
|
"@types/rsvp": "^4.0.4",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
97
|
-
"@typescript-eslint/parser": "^5.
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
|
98
|
+
"@typescript-eslint/parser": "^5.46.1",
|
|
98
99
|
"broccoli-asset-rev": "^3.0.0",
|
|
99
100
|
"concurrently": "^7.6.0",
|
|
100
|
-
"d3-array": "^3.2.
|
|
101
|
+
"d3-array": "^3.2.1",
|
|
101
102
|
"d3-axis": "^3.0.0",
|
|
102
103
|
"d3-scale": "^4.0.2",
|
|
103
104
|
"d3-selection": "^3.0.0",
|
|
104
105
|
"d3-shape": "^3.1.0",
|
|
105
106
|
"ember-a11y-refocus": "^3.0.2",
|
|
106
|
-
"ember-a11y-testing": "^5.
|
|
107
|
+
"ember-a11y-testing": "^5.1.0",
|
|
107
108
|
"ember-auto-import": "^2.5.0",
|
|
108
|
-
"ember-cli": "~4.
|
|
109
|
+
"ember-cli": "~4.9.2",
|
|
109
110
|
"ember-cli-dependency-checker": "^3.3.1",
|
|
110
111
|
"ember-cli-dependency-lint": "^2.0.1",
|
|
111
112
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
@@ -113,39 +114,39 @@
|
|
|
113
114
|
"ember-cli-sri": "^2.1.1",
|
|
114
115
|
"ember-cli-terser": "^4.0.2",
|
|
115
116
|
"ember-css-modules": "^2.0.1",
|
|
116
|
-
"ember-disable-prototype-extensions": "^1.1.3",
|
|
117
117
|
"ember-load-initializers": "^2.1.2",
|
|
118
118
|
"ember-named-blocks-polyfill": "^0.2.5",
|
|
119
119
|
"ember-page-title": "^7.0.0",
|
|
120
120
|
"ember-qunit": "^6.0.0",
|
|
121
121
|
"ember-resolver": "^8.0.3",
|
|
122
|
-
"ember-source": "~4.
|
|
122
|
+
"ember-source": "~4.9.3",
|
|
123
123
|
"ember-source-channel-url": "^3.0.0",
|
|
124
124
|
"ember-svg-jar": "^2.4.2",
|
|
125
|
-
"ember-template-lint": "^5.0
|
|
125
|
+
"ember-template-lint": "^5.3.0",
|
|
126
|
+
"ember-template-lint-plugin-prettier": "^4.1.0",
|
|
126
127
|
"ember-truth-helpers": "^3.1.1",
|
|
127
128
|
"ember-try": "^2.0.0",
|
|
128
|
-
"eslint": "^8.
|
|
129
|
+
"eslint": "^8.29.0",
|
|
129
130
|
"eslint-config-prettier": "^8.5.0",
|
|
130
131
|
"eslint-plugin-ember": "^11.2.1",
|
|
131
|
-
"eslint-plugin-n": "^15.
|
|
132
|
+
"eslint-plugin-n": "^15.6.0",
|
|
132
133
|
"eslint-plugin-prettier": "^4.2.1",
|
|
133
134
|
"eslint-plugin-qunit": "^7.3.4",
|
|
134
135
|
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
135
136
|
"lerna-changelog": "^2.2.0",
|
|
136
137
|
"loader.js": "^4.7.0",
|
|
137
|
-
"prettier": "^2.8.
|
|
138
|
+
"prettier": "^2.8.1",
|
|
138
139
|
"qunit": "^2.19.3",
|
|
139
140
|
"qunit-dom": "^2.0.0",
|
|
140
|
-
"stylelint": "^14.
|
|
141
|
+
"stylelint": "^14.16.0",
|
|
141
142
|
"stylelint-config-standard": "^29.0.0",
|
|
142
143
|
"stylelint-no-unsupported-browser-features": "^6.0.1",
|
|
143
144
|
"stylelint-order": "^5.0.0",
|
|
144
|
-
"typescript": "^4.9.
|
|
145
|
+
"typescript": "^4.9.4",
|
|
145
146
|
"webpack": "^5.75.0"
|
|
146
147
|
},
|
|
147
148
|
"engines": {
|
|
148
|
-
"node": "
|
|
149
|
+
"node": "14.* || 16.* || >= 18"
|
|
149
150
|
},
|
|
150
151
|
"ember": {
|
|
151
152
|
"edition": "octane"
|
package/tsconfig.json
CHANGED
|
@@ -1,69 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "@tsconfig/ember/tsconfig.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "ES2020",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
|
|
7
|
-
// Trying to check Ember apps and addons with `allowJs: true` is a recipe
|
|
8
|
-
// for many unresolveable type errors, because with *considerable* extra
|
|
9
|
-
// configuration it ends up including many files which are *not* valid and
|
|
10
|
-
// cannot be: they *appear* to be resolve-able to TS, but are in fact not in
|
|
11
|
-
// valid Node-resolveable locations and may not have TS-ready types. This
|
|
12
|
-
// will likely improve over time
|
|
13
|
-
"allowJs": false,
|
|
14
|
-
|
|
15
4
|
// Don't check the types of dependencies
|
|
16
5
|
"skipLibCheck": true,
|
|
17
6
|
|
|
18
|
-
// --- TS for SemVer Types compatibility
|
|
19
|
-
// Strictness settings -- you should *not* change these: Ember code is not
|
|
20
|
-
// guaranteed to type check with these set to looser values.
|
|
21
|
-
"strict": true,
|
|
22
|
-
"noUncheckedIndexedAccess": true,
|
|
23
|
-
|
|
24
|
-
// Interop: these are viral and will require anyone downstream of your
|
|
25
|
-
// package to *also* set them to true. If you *must* enable them to consume
|
|
26
|
-
// an upstream package, you should document that for downstream consumers to
|
|
27
|
-
// be aware of.
|
|
28
|
-
//
|
|
29
|
-
// These *are* safe for apps to enable, since they do not *have* downstream
|
|
30
|
-
// consumers; but leaving them off is still preferred when possible, since
|
|
31
|
-
// it makes it easier to switch between apps and addons and have the same
|
|
32
|
-
// rules for what can be imported and how.
|
|
33
|
-
"allowSyntheticDefaultImports": false,
|
|
34
|
-
"esModuleInterop": false,
|
|
35
|
-
|
|
36
|
-
// --- Lint-style rules
|
|
37
|
-
|
|
38
|
-
// TypeScript also supplies some lint-style checks; nearly all of them are
|
|
39
|
-
// better handled by ESLint with the `@typescript-eslint`. This one is more
|
|
40
|
-
// like a safety check, though, so we leave it on.
|
|
41
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
42
|
-
|
|
43
|
-
// --- Compilation/integration settings
|
|
44
|
-
// Setting `noEmitOnError` here allows ember-cli-typescript to catch errors
|
|
45
|
-
// and inject them into Ember CLI's build error reporting, which provides
|
|
46
|
-
// nice feedback for when
|
|
47
|
-
"noEmitOnError": false,
|
|
48
|
-
|
|
49
|
-
// We use Babel for emitting runtime code, because it's very important that
|
|
50
|
-
// we always and only use the same transpiler for non-stable features, in
|
|
51
|
-
// particular decorators. If you were to change this to `true`, it could
|
|
52
|
-
// lead to accidentally generating code with `tsc` instead of Babel, and
|
|
53
|
-
// could thereby result in broken code at runtime.
|
|
54
|
-
"noEmit": true,
|
|
55
|
-
|
|
56
|
-
// Ember makes heavy use of decorators; TS does not support them at all
|
|
57
|
-
// without this flag.
|
|
58
|
-
"experimentalDecorators": true,
|
|
59
|
-
|
|
60
|
-
// Support generation of source maps. Note: you must *also* enable source
|
|
61
|
-
// maps in your `ember-cli-babel` config and/or `babel.config.js`.
|
|
62
|
-
"declaration": true,
|
|
63
|
-
"declarationMap": true,
|
|
64
|
-
"inlineSourceMap": true,
|
|
65
|
-
"inlineSources": true,
|
|
66
|
-
|
|
67
7
|
// The combination of `baseUrl` with `paths` allows Ember's classic package
|
|
68
8
|
// layout, which is not resolveable with the Node resolution algorithm, to
|
|
69
9
|
// work with TypeScript.
|