File tree Expand file tree Collapse file tree 5 files changed +60
-44
lines changed Expand file tree Collapse file tree 5 files changed +60
-44
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ official implementation is available.
19
19
20
20
## Compatibility
21
21
22
- * Ember.js v3.24 or above
23
- * Ember CLI v3.24 or above
22
+ * Ember.js v3.28 or above
23
+ * Ember CLI v3.28 or above
24
24
* Node.js v12 or above
25
25
26
26
## Limitations
Original file line number Diff line number Diff line change 54
54
"prepublishOnly" : " pnpm build"
55
55
},
56
56
"dependencies" : {
57
- "@embroider/addon-shim" : " ^1.8.3" ,
58
- "@embroider/util" : " ^1.0.0"
57
+ "@embroider/addon-shim" : " ^1.8.3"
59
58
},
60
59
"devDependencies" : {
61
60
"@babel/core" : " 7.18.6" ,
Original file line number Diff line number Diff line change 2
2
import EmberComponent from '@ember/component' ;
3
3
import Helper from '@ember/component/helper' ;
4
4
import { assert , runInDebug } from '@ember/debug' ;
5
- import { ensureSafeComponent } from '@embroider/util' ;
6
5
7
6
import type { ComponentLike } from '@glint/template' ;
8
7
9
8
// eslint-disable-next-line @typescript-eslint/no-empty-function
10
- function UNINITIALIZED ( ) { }
9
+ function UNINITIALIZED ( ) { }
11
10
12
11
export type ElementFromTagName < T extends string > = T extends keyof HTMLElementTagNameMap
13
12
? HTMLElementTagNameMap [ T ]
@@ -43,14 +42,10 @@ export default class ElementHelper<T extends string> extends Helper<ElementSigna
43
42
this . tagName = tagName ;
44
43
45
44
if ( typeof tagName === 'string' ) {
46
- this . componentClass = ensureSafeComponent (
47
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
48
- // @ts -ignore
45
+ this . componentClass =
49
46
class DynamicElement extends EmberComponent {
50
- tagName = tagName ; // eslint-disable-line ember/require-tagless-components
51
- } ,
52
- this
53
- ) as unknown as Return < T > ;
47
+ tagName = tagName ;
48
+ } as unknown as Return < T > ;
54
49
} else {
55
50
this . componentClass = undefined ;
56
51
Original file line number Diff line number Diff line change 12
12
"lint:fix" : " pnpm --filter '*' lint:fix" ,
13
13
"test" : " pnpm --filter '*' test"
14
14
},
15
+ "packageManager" : " pnpm@8" ,
15
16
"volta" : {
16
17
"node" : " 16.20.2" ,
17
18
"npm" : " 9.8.1"
You can’t perform that action at this time.
0 commit comments