Skip to content

Commit 23e23e3

Browse files
committed
chore: bump alien-signals to 3.0.0
1 parent ecf6f2f commit 23e23e3

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

packages/language-core/lib/virtualFile/computedSfc.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type * as CompilerDOM from '@vue/compiler-dom';
22
import type { SFCBlock, SFCParseResult } from '@vue/compiler-sfc';
3-
import { computed, setCurrentSub } from 'alien-signals';
3+
import { computed, setActiveSub } from 'alien-signals';
44
import type * as ts from 'typescript';
55
import type { Sfc, SfcBlock, SfcBlockAttr, VueLanguagePluginReturn } from '../types';
66
import { computedArray, computedItems } from '../utils/signals';
@@ -15,9 +15,9 @@ export function computedSfc(
1515
getParseResult: () => SFCParseResult | undefined,
1616
): Sfc {
1717
const getUntrackedSnapshot = () => {
18-
const pausedSub = setCurrentSub(undefined);
18+
const pausedSub = setActiveSub(undefined);
1919
const res = getSnapshot();
20-
setCurrentSub(pausedSub);
20+
setActiveSub(pausedSub);
2121
return res;
2222
};
2323
const getContent = computed(() => {
@@ -255,9 +255,9 @@ export function computedSfc(
255255
if (cache?.plugin.updateSFCTemplate) {
256256
const change = getUntrackedSnapshot().getChangeRange(cache.snapshot);
257257
if (change) {
258-
const pausedSub = setCurrentSub(undefined);
258+
const pausedSub = setActiveSub(undefined);
259259
const templateOffset = base.startTagEnd;
260-
setCurrentSub(pausedSub);
260+
setActiveSub(pausedSub);
261261

262262
const newText = getUntrackedSnapshot().getText(change.span.start, change.span.start + change.newLength);
263263
const newResult = cache.plugin.updateSFCTemplate(cache.result, {

packages/language-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@volar/language-core": "2.4.23",
1717
"@vue/compiler-dom": "^3.5.0",
1818
"@vue/shared": "^3.5.0",
19-
"alien-signals": "^2.0.5",
19+
"alien-signals": "^3.0.0",
2020
"muggle-string": "^0.4.1",
2121
"path-browserify": "^1.0.1",
2222
"picomatch": "^4.0.2"

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-workspace/tsc/failureFixtures/#4569/main.vue.d.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)