Skip to content

Commit 688110a

Browse files
authored
Update TypeScript to 5.8.3, modernize tsconfig (#1578)
1 parent 8b9ca6a commit 688110a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+200
-184
lines changed

benchmarks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"@arktype/attest": "^0.43.3",
99
"@vanilla-extract/css": "workspace:*",
1010
"tsx": "^4.17.0",
11-
"typescript": "^5.5.4"
11+
"typescript": "^5.8.3"
1212
}
1313
}

fixtures/thirdparty/src/styles.css.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export {
55
depColor,
66
depdepBlock,
77
depdepColor,
8-
// @ts-expect-error no types
98
} from '@fixtures/thirdparty-dep';
109

1110
const color = createVar();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"jest-environment-jsdom": "^29.7.0",
4949
"prettier": "^2.8.8",
5050
"tsx": "^4.17.0",
51-
"typescript": "^5.5.4",
51+
"typescript": "^5.8.3",
5252
"vitest": "^3.0.2"
5353
},
5454
"preconstruct": {

packages/babel-plugin-debug-ids/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { types as t, PluginObj, PluginPass, NodePath } from '@babel/core';
1+
import {
2+
types as t,
3+
type PluginObj,
4+
type PluginPass,
5+
type NodePath,
6+
} from '@babel/core';
27

38
const packageIdentifiers = new Set([
49
'@vanilla-extract/css',

packages/css/src/validateContract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Contract, walkObject } from '@vanilla-extract/private';
1+
import { type Contract, walkObject } from '@vanilla-extract/private';
22
import { diff } from 'deep-object-diff';
33
import pc from 'picocolors';
44

packages/css/src/vars.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import type { AtRule } from 'csstype';
33
import {
44
get,
55
walkObject,
6-
Contract,
7-
MapLeafNodes,
8-
CSSVarFunction,
6+
type Contract,
7+
type MapLeafNodes,
8+
type CSSVarFunction,
99
} from '@vanilla-extract/private';
1010
import cssesc from 'cssesc';
1111

12-
import { Tokens, NullableTokens, ThemeVars } from './types';
12+
import type { Tokens, NullableTokens, ThemeVars } from './types';
1313
import { validateContract } from './validateContract';
1414
import { getFileScope } from './fileScope';
1515
import { generateIdentifier } from './identifier';
16-
import { PropertySyntax } from './types';
16+
import type { PropertySyntax } from './types';
1717
import { appendCss } from './adapter';
1818

1919
type VarDeclaration =

packages/dynamic/src/assignInlineVars.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
walkObject,
33
get,
44
getVarName,
5-
Contract,
6-
MapLeafNodes,
5+
type Contract,
6+
type MapLeafNodes,
77
} from '@vanilla-extract/private';
88

99
type Styles = { [cssVarName: string]: string };

packages/dynamic/src/setElementVars.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
get,
33
walkObject,
44
getVarName,
5-
Contract,
6-
MapLeafNodes,
5+
type Contract,
6+
type MapLeafNodes,
77
} from '@vanilla-extract/private';
88

99
function setVar(element: HTMLElement, variable: string, value: string) {

packages/esbuild-plugin-next/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import {
88
cssFileFilter,
99
vanillaExtractTransformPlugin,
10-
IdentifierOption,
10+
type IdentifierOption,
1111
} from '@vanilla-extract/integration';
1212
import type { Plugin } from 'esbuild';
1313

packages/esbuild-plugin/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
getSourceFromVirtualCssFile,
88
compile,
99
vanillaExtractTransformPlugin,
10-
IdentifierOption,
11-
CompileOptions,
10+
type IdentifierOption,
11+
type CompileOptions,
1212
} from '@vanilla-extract/integration';
1313
import type { Plugin } from 'esbuild';
1414

@@ -70,7 +70,7 @@ export function vanillaExtractPlugin({
7070
);
7171

7272
build.onLoad({ filter: cssFileFilter }, async ({ path }) => {
73-
const combinedEsbuildOptions = { ...esbuildOptions } ?? {};
73+
const combinedEsbuildOptions = { ...esbuildOptions };
7474
const identOption =
7575
identifiers ?? (build.initialOptions.minify ? 'short' : 'debug');
7676

0 commit comments

Comments
 (0)