Skip to content

Commit fe9b102

Browse files
committed
chore: update marko dependencies
@marko/compiler 5.42 carries the async shorthand method support. The snapshot churn is its new deprecation diagnostic for the `<effect>` tag, which seven fixtures still use.
1 parent d78d268 commit fe9b102

12 files changed

Lines changed: 1530 additions & 18 deletions

File tree

  • packages
    • language-server
      • src/__tests__/fixtures/script
        • abort-signal/__snapshots__/abort-signal.expected
        • attr-tags-dynamic-for/__snapshots__/attr-tags-dynamic-for.expected
        • attr-tags-dynamic-if/__snapshots__/attr-tags-dynamic-if.expected
        • attr-tags-static/__snapshots__/attr-tags-static.expected
        • for-tag/__snapshots__/for-tag.expected
        • recursive-input-scope-hoist/__snapshots__/recursive-input-scope-hoist.expected
        • simple-hoist/__snapshots__/simple-hoist.expected
    • language-tools
    • ts-plugin
    • type-check

packages/language-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
},
4545
"dependencies": {
4646
"@luxass/strip-json-comments": "^1.4.0",
47-
"@marko/compiler": "^5.41.7",
47+
"@marko/compiler": "^5.42.0",
4848
"@marko/language-tools": "^2.6.8",
4949
"axe-core": "^4.12.1",
5050
"htmljs-parser": "^5.14.0",
5151
"jsdom": "^29.1.1",
52-
"marko": "^5.39.27",
52+
"marko": "^5.39.33",
5353
"prettier": "^3.8.4",
5454
"prettier-plugin-marko": "^4.0.10",
5555
"relative-import-path": "^1.0.1",

packages/language-server/src/__tests__/fixtures/script/abort-signal/__snapshots__/abort-signal.expected/index.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,42 @@
99
5 | };
1010
```
1111

12+
## Diagnostics
13+
### Ln 1, Col 1
14+
```marko
15+
> 1 | <effect() {
16+
| ^^^^^^^^^^^
17+
> 2 | $signal.onabort = () => {
18+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
19+
> 3 | // ^?
20+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
21+
> 4 | console.log('aborted');
22+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+
> 5 | };
24+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
25+
> 6 | }/>
26+
| ^^^^ The 'effect' tag has been replaced by the 'script' tag.
27+
7 |
28+
```
29+
30+
## Code Actions
31+
### The 'effect' tag has been replaced by the 'script' tag.
32+
```marko
33+
<script >
34+
$signal.onabort = () => {
35+
// ^?
36+
console.log('aborted');
37+
};
38+
</script>
39+
```
40+
41+
### Fix all auto-fixable Marko issues
42+
```marko
43+
<script >
44+
$signal.onabort = () => {
45+
// ^?
46+
console.log('aborted');
47+
};
48+
</script>
49+
```
50+

0 commit comments

Comments
 (0)