-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcc424d
commit 705598e
Showing
22 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"marko-widgets": patch | ||
"@marko/compat-v4": patch | ||
--- | ||
|
||
Ensure all tag migrations happen on exit so that directive migrations can run first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"marko-widgets": patch | ||
"@marko/compat-utils": patch | ||
"@marko/compat-v4": patch | ||
--- | ||
|
||
Only skip directive migrations for specific tags that handle all attributes. Previously any migrated tag was not properly getting directives migrated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
packages/marko-widgets/src/components/async-fragments/migrate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { types as t } from "@marko/compiler"; | ||
import { diagnosticDeprecate } from "@marko/babel-utils"; | ||
|
||
export default (tag: t.NodePath<t.MarkoTag>) => { | ||
diagnosticDeprecate(tag, { | ||
label: "The <async-fragments> is no longer necessary and can be removed.", | ||
fix() { | ||
tag.replaceWithMultiple(tag.node.body.body); | ||
}, | ||
}); | ||
export default { | ||
exit(tag: t.NodePath<t.MarkoTag>) { | ||
diagnosticDeprecate(tag, { | ||
label: "The <async-fragments> is no longer necessary and can be removed.", | ||
fix() { | ||
tag.replaceWithMultiple(tag.node.body.body); | ||
}, | ||
}); | ||
}, | ||
}; |
17 changes: 10 additions & 7 deletions
17
packages/marko-widgets/src/components/component-globals/migrate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { types as t } from "@marko/compiler"; | ||
import { diagnosticDeprecate } from "@marko/babel-utils"; | ||
|
||
export default (tag: t.NodePath<t.MarkoTag>) => { | ||
diagnosticDeprecate(tag, { | ||
label: "The <component-globals> is no longer necessary and can be removed.", | ||
fix() { | ||
tag.remove(); | ||
}, | ||
}); | ||
export default { | ||
exit(tag: t.NodePath<t.MarkoTag>) { | ||
diagnosticDeprecate(tag, { | ||
label: | ||
"The <component-globals> is no longer necessary and can be removed.", | ||
fix() { | ||
tag.remove(); | ||
}, | ||
}); | ||
}, | ||
}; |
16 changes: 9 additions & 7 deletions
16
packages/marko-widgets/src/components/init-widgets/migrate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { types as t } from "@marko/compiler"; | ||
import { diagnosticDeprecate } from "@marko/babel-utils"; | ||
|
||
export default (tag: t.NodePath<t.MarkoTag>) => { | ||
diagnosticDeprecate(tag, { | ||
label: "The <init-widgets> is no longer necessary and can be removed.", | ||
fix() { | ||
tag.remove(); | ||
}, | ||
}); | ||
export default { | ||
exit(tag: t.NodePath<t.MarkoTag>) { | ||
diagnosticDeprecate(tag, { | ||
label: "The <init-widgets> is no longer necessary and can be removed.", | ||
fix() { | ||
tag.remove(); | ||
}, | ||
}); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
"y": 2 | ||
} | ||
</div> | ||
<div> | ||
test.marko {} | ||
</div> | ||
<div> | ||
components/test.marko {} | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
"y": 2 | ||
} | ||
</div> | ||
<div> | ||
test.marko {} | ||
</div> | ||
<div> | ||
components/test.marko {} | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters