chore: use same typescript version across the board
MODIFY
editors/vscode/package-lock.json
editors/vscode/package-lock.json
{
"name": "rome",
- "version": "0.13.0",
+ "version": "0.12.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "rome",
- "version": "0.13.0",
+ "version": "0.12.0",
"license": "MIT",
"dependencies": {
"vscode-languageclient": "^8.0.2"
"@types/vscode": "^1.70.0",
"esbuild": "^0.14.47",
"rome": "next",
- "typescript": "^4.5.2",
+ "typescript": "^4.8.2",
"vsce": "^2.11.0"
},
"engines": {
"npm": "^8",
- "vscode": "^1.68.1"
+ "vscode": "^1.70.0"
}
},
"node_modules/@rometools/cli-darwin-arm64": {
}
},
"node_modules/typescript": {
- "version": "4.5.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz",
- "integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==",
+ "version": "4.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
+ "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
}
},
"typescript": {
- "version": "4.5.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz",
- "integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==",
+ "version": "4.8.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
+ "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true
},
"uc.micro": {

MODIFY
editors/vscode/package.json
editors/vscode/package.json
"devDependencies": {
"@types/node": "^18.0.0",
"@types/vscode": "^1.70.0",
- "typescript": "^4.5.2",
+ "typescript": "^4.8.2",
"vsce": "^2.11.0",
"esbuild": "^0.14.47",
"rome": "next"

MODIFY
npm/backend-jsonrpc/package.json
npm/backend-jsonrpc/package.json
"license": "MIT",
"devDependencies": {
"@types/node": "^18.7.2",
- "typescript": "^4.7.4",
+ "typescript": "^4.8.2",
"vite": "^3.0.8",
"vitest": "^0.22.0"
}

MODIFY
npm/backend-jsonrpc/pnpm-lock.yaml
npm/backend-jsonrpc/pnpm-lock.yaml
@@ -2,13 +2,13 @@ lockfileVersion: 5.4
specifiers:
'@types/node': ^18.7.2
- typescript: ^4.7.4
+ typescript: ^4.8.2
vite: ^3.0.8
vitest: ^0.22.0
devDependencies:
'@types/node': 18.7.2
- typescript: 4.7.4
+ typescript: 4.8.2
vite: 3.0.8
vitest: 0.22.0
@@ -695,8 +695,8 @@ packages:
engines: {node: '>=4'}
dev: true
- /typescript/4.7.4:
- resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==}
+ /typescript/4.8.2:
+ resolution: {integrity: sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true

MODIFY
npm/rome/package.json
npm/rome/package.json
},
"license": "MIT",
"devDependencies": {
- "typescript": "^4.7.4",
+ "typescript": "^4.8.2",
"vitest": "^0.22.0",
"vite": "^3.0.8",
"@rometools/wasm-nodejs": "../wasm-nodejs",

MODIFY
npm/rome/pnpm-lock.yaml
npm/rome/pnpm-lock.yaml
@@ -3,14 +3,14 @@ lockfileVersion: 5.4
specifiers:
'@rometools/backend-jsonrpc': ../backend-jsonrpc
'@rometools/wasm-nodejs': ../wasm-nodejs
- typescript: ^4.7.4
+ typescript: ^4.8.2
vite: ^3.0.8
vitest: ^0.22.0
devDependencies:
'@rometools/backend-jsonrpc': link:../backend-jsonrpc
'@rometools/wasm-nodejs': link:../wasm-nodejs
- typescript: 4.7.4
+ typescript: 4.8.2
vite: 3.0.8
vitest: 0.22.0
@@ -401,8 +401,8 @@ packages:
engines: {node: '>=4'}
dev: true
- /typescript/4.7.4:
- resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==}
+ /typescript/4.8.2:
+ resolution: {integrity: sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true

MODIFY
website/playground/package.json
website/playground/package.json
"postcss": "^8.4.6",
"rome": "next",
"tailwindcss": "^3.0.19",
- "typescript": "^4.4.4",
+ "typescript": "^4.8.2",
"vite": "2.9.5",
"vite-plugin-svgr": "^2.2.0"
},

MODIFY
website/playground/pnpm-lock.yaml
website/playground/pnpm-lock.yaml
@@ -23,7 +23,7 @@ specifiers:
react-tabs: ^3.2.3
rome: next
tailwindcss: ^3.0.19
- typescript: ^4.4.4
+ typescript: ^4.8.2
vite: 2.9.5
vite-plugin-svgr: ^2.2.0
@@ -32,7 +32,7 @@ dependencies:
'@codemirror/state': 6.1.0
'@codemirror/view': 6.1.0
'@rometools/wasm-web': link:../../npm/wasm-web
- '@uiw/react-codemirror': 4.11.4_j45qn7k5iyiiecf3ysrf6hvqzq
+ '@uiw/react-codemirror': 4.11.4_j4ghec26bhhfaf2eptsehnzgue
codemirror-lang-rome-ast: 0.0.6
lang-rome-formatter-ir: 0.0.2
prettier: 2.7.0
@@ -52,7 +52,7 @@ devDependencies:
postcss: 8.4.6
rome: 0.8.0-next.ff4153b
tailwindcss: 3.0.19_qm7bagfnbv4vjkuayu3hle4sne
- typescript: 4.5.5
+ typescript: 4.8.2
vite: 2.9.5
vite-plugin-svgr: 2.2.0_vite@2.9.5
@@ -335,8 +335,11 @@ packages:
to-fast-properties: 2.0.0
dev: true
- /@codemirror/autocomplete/6.0.4:
+ /@codemirror/autocomplete/6.0.4_xtizu6iuiatnw5cgync2c544ka:
resolution: {integrity: sha512-uP7UodCRykPNwSAN+wYa/AS9gJI/V47echCAXUYgCgBXy3l19nwO7W/d29COtG/dfAsjBOhMDeh3Ms8Y5VZbrA==}
+ peerDependencies:
+ '@codemirror/state': ^6.0.0
+ '@codemirror/view': ^6.0.0
dependencies:
'@codemirror/language': 6.2.0
'@codemirror/state': 6.1.0
@@ -356,7 +359,7 @@ packages:
/@codemirror/lang-javascript/6.0.1:
resolution: {integrity: sha512-kjGbBEosl+ozDU5ruDV48w4v3H6KECTFiDjqMLT0KhVwESPfv3wOvnDrTT0uaMOg3YRGnBWsyiIoKHl/tNWWDg==}
dependencies:
- '@codemirror/autocomplete': 6.0.4
+ '@codemirror/autocomplete': 6.0.4_xtizu6iuiatnw5cgync2c544ka
'@codemirror/language': 6.2.0
'@codemirror/lint': 6.0.0
'@codemirror/state': 6.1.0
@@ -709,10 +712,13 @@ packages:
resolution: {integrity: sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==}
dev: true
- /@uiw/codemirror-extensions-basic-setup/4.11.4:
+ /@uiw/codemirror-extensions-basic-setup/4.11.4_xtizu6iuiatnw5cgync2c544ka:
resolution: {integrity: sha512-pc9pQtCQFmAH5nV9UmX37VB0+yzSFQ2kbSvLHBFST9siYnacaR6HxmkBBBbYYXwVK/n9pGZ6A8ZefAUNTFfo/A==}
+ peerDependencies:
+ '@codemirror/state': '>=6.0.0'
+ '@codemirror/view': '>=6.0.0'
dependencies:
- '@codemirror/autocomplete': 6.0.4
+ '@codemirror/autocomplete': 6.0.4_xtizu6iuiatnw5cgync2c544ka
'@codemirror/commands': 6.0.1
'@codemirror/language': 6.2.0
'@codemirror/lint': 6.0.0
@@ -721,7 +727,7 @@ packages:
'@codemirror/view': 6.1.0
dev: false
- /@uiw/react-codemirror/4.11.4_j45qn7k5iyiiecf3ysrf6hvqzq:
+ /@uiw/react-codemirror/4.11.4_j4ghec26bhhfaf2eptsehnzgue:
resolution: {integrity: sha512-p7DNBI6kj+DUzTe7MjBJwZ3qo0nSOav7T0MEGRpRNZA9ZO3RnzhPMie6swDA8e3dz1s59l9UdFB1fgyam1vFhQ==}
peerDependencies:
'@codemirror/view': '>=6.0.0'
@@ -731,10 +737,12 @@ packages:
'@babel/runtime': 7.18.9
'@codemirror/theme-one-dark': 6.0.0
'@codemirror/view': 6.1.0
- '@uiw/codemirror-extensions-basic-setup': 4.11.4
+ '@uiw/codemirror-extensions-basic-setup': 4.11.4_xtizu6iuiatnw5cgync2c544ka
codemirror: 6.0.1
react: 17.0.2
react-dom: 17.0.2_react@17.0.2
+ transitivePeerDependencies:
+ - '@codemirror/state'
dev: false
/@vitejs/plugin-react/1.1.4:
@@ -897,7 +905,7 @@ packages:
/codemirror-lang-rome-ast/0.0.6:
resolution: {integrity: sha512-2E4E4rNcj6XxLsVjCZJeOsdEXpfdgiejuLrbq6O4muXzf0KSv5X0ScQrs3LK5LmGwoQUC0AowYbfdj3lsaLWkQ==}
dependencies:
- '@codemirror/autocomplete': 6.0.4
+ '@codemirror/autocomplete': 6.0.4_xtizu6iuiatnw5cgync2c544ka
'@codemirror/language': 6.2.0
'@codemirror/state': 6.1.0
'@codemirror/view': 6.1.0
@@ -909,7 +917,7 @@ packages:
/codemirror/6.0.1:
resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==}
dependencies:
- '@codemirror/autocomplete': 6.0.4
+ '@codemirror/autocomplete': 6.0.4_xtizu6iuiatnw5cgync2c544ka
'@codemirror/commands': 6.0.1
'@codemirror/language': 6.2.0
'@codemirror/lint': 6.0.0
@@ -1394,7 +1402,7 @@ packages:
/lang-rome-formatter-ir/0.0.2:
resolution: {integrity: sha512-Zx7uZ6SA1vmMWkM7UbDZlex8MGOCQNBkxN9sAjeGgGHx69DNuR8E4GPfHFHI2P7oFLvXMrmAMPUY2jbEH9wtOA==}
dependencies:
- '@codemirror/autocomplete': 6.0.4
+ '@codemirror/autocomplete': 6.0.4_xtizu6iuiatnw5cgync2c544ka
'@codemirror/language': 6.2.0
'@codemirror/state': 6.1.0
'@codemirror/view': 6.1.0
@@ -1806,8 +1814,8 @@ packages:
is-number: 7.0.0
dev: true
- /typescript/4.5.5:
- resolution: {integrity: sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==}
+ /typescript/4.8.2:
+ resolution: {integrity: sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true

MODIFY
website/playground/src/romeWorker.ts
website/playground/src/romeWorker.ts
@@ -109,7 +109,7 @@ self.addEventListener("message", async (e) => {
});
const path = getPathForType(sourceType, isTypeScript, isJsx);
- if (currentFile?.path === path) {
+ if (currentFile && currentFile?.path === path) {
workspace.changeFile({
path,
version: currentFile.version++,

MODIFY
website/playground/tsconfig.json
website/playground/tsconfig.json
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
- "skipLibCheck": false,
+ "skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,

chore: use same typescript version across the board (#3142)