Skip to content

Commit 5001a01

Browse files
committed
Bump dependencies
1 parent 703d5f1 commit 5001a01

File tree

17 files changed

+177
-273
lines changed

17 files changed

+177
-273
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"noInvalidNewBuiltin": "error",
2929
"noNewSymbol": "error",
3030
"noNodejsModules": "off",
31-
"noUndeclaredDependencies": "error",
31+
"noUndeclaredDependencies": "off",
3232
"noUndeclaredVariables": "error",
3333
"noUnusedFunctionParameters": "error",
3434
"noUnusedImports": "error",

examples/comments/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"solid-labels": "0.16.0",
12-
"typescript": "^5.7.3",
12+
"typescript": "^5.8.2",
1313
"vite": "^6.1.1",
1414
"vite-plugin-solid": "^2.11.2",
1515
"vite-plugin-solid-labels": "0.16.1"

examples/ctf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"solid-labels": "0.16.0",
12-
"typescript": "^5.7.3",
12+
"typescript": "^5.8.2",
1313
"vite": "^6.1.1",
1414
"vite-plugin-solid": "^2.11.2",
1515
"vite-plugin-solid-labels": "0.16.1"

examples/labels/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"solid-labels": "0.16.0",
12-
"typescript": "^5.7.3",
12+
"typescript": "^5.8.2",
1313
"vite": "^6.1.1",
1414
"vite-plugin-solid": "^2.11.2",
1515
"vite-plugin-solid-labels": "0.16.1"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"workspaces": ["packages/*", "examples/*"],
55
"devDependencies": {
66
"@biomejs/biome": "^1.9.4",
7-
"lerna": "^8.2.0",
8-
"typescript": "^5.7.3"
7+
"lerna": "^8.2.1",
8+
"typescript": "^5.8.2"
99
}
1010
}

packages/core/babel/components.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ const COMPONENT_TRAVERSE: Visitor<State> = {
8484
},
8585
};
8686

87-
export function transformComponents(
88-
state: State,
89-
path: NodePath,
90-
): void {
87+
export function transformComponents(state: State, path: NodePath): void {
9188
path.traverse(COMPONENT_TRAVERSE, state);
9289
}

packages/core/babel/core/get-import-identifier.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export function getImportIdentifier(
2020
).unshiftContainer(
2121
'body',
2222
t.importDeclaration(
23-
[t.importSpecifier(uid, t.identifier(name))
24-
],
23+
[t.importSpecifier(uid, t.identifier(name))],
2524
t.stringLiteral(source),
2625
),
2726
)[0];

packages/core/babel/core/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type * as t from '@babel/types';
21
import type * as babel from '@babel/core';
2+
import type * as t from '@babel/types';
33

44
export interface Options {
55
dev?: boolean;

packages/core/babel/transform-comment.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ function getVariableLabelPreference(
4747
return preference;
4848
}
4949

50+
const LABEL_PATTERN = /^@\w+( .*)?$/;
51+
5052
function getCallbackLabelPreference(state: State, comments: t.Comment[]) {
5153
let preference: string | undefined;
5254
let nameOption: string | undefined;
5355
for (let i = 0, len = comments.length; i < len; i++) {
5456
const comment = comments[i];
5557
const value: string = comment.value.trim();
56-
if (/^@\w+( .*)?$/.test(value)) {
58+
if (LABEL_PATTERN.test(value)) {
5759
const [tag, ...debugName] = value.split(' ');
5860
if (tag in CALLBACK_LABEL && !state.opts.disabled?.pragma?.[value]) {
5961
preference = tag;

packages/core/babel/transform-label.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,19 @@ function transformCallbackLabel(
160160
const [name, source, named] = CALLBACK_LABEL[labelName];
161161
let nameOption: string | undefined;
162162
let callback: t.Expression;
163-
if (named && t.isLabeledStatement(body)) {
164-
nameOption = body.label.name;
165-
body = body.body;
163+
let currentBody = body;
164+
if (named && t.isLabeledStatement(currentBody)) {
165+
nameOption = currentBody.label.name;
166+
currentBody = currentBody.body;
166167
}
167-
if (t.isBlockStatement(body)) {
168-
callback = t.arrowFunctionExpression([], body);
169-
} else if (t.isExpressionStatement(body)) {
170-
callback = body.expression;
168+
if (t.isBlockStatement(currentBody)) {
169+
callback = t.arrowFunctionExpression([], currentBody);
170+
} else if (t.isExpressionStatement(currentBody)) {
171+
callback = currentBody.expression;
171172
} else {
172173
throw unexpectedType(
173174
path,
174-
body.type,
175+
currentBody.type,
175176
'BlockStatement | ExpressionStatement',
176177
);
177178
}

0 commit comments

Comments
 (0)