Skip to content

Commit 1d48644

Browse files
chore(deps): update dependency typescript to v6 (#3516)
- [x] Investigate TypeScript 6 build errors - [x] Remove deprecated `baseUrl` from all tsconfig files (`tsconfig.build.json`, `tsconfig.json`, `test/tsconfig.json`) and convert `baseUrl`-relative imports in `packages/memory-storage` to proper relative imports - [x] Prefix `paths` values with `./` (root tsconfig) and `../` (test tsconfig) so they resolve correctly without `baseUrl` - [x] Rewrite `test/shared/*` imports in 21 test files to use relative paths (`../shared/...` or `../../shared/...`) instead of path-mapped imports - [x] Fix missing `Buffer` type by adding `"types": ["node"]` to `tsconfig.build.json` (TS6 changed `types` default from auto-discover to `[]`) - [x] Verify the build passes (all 18 packages build successfully) - [x] Verify `tsc-check-tests` and lint pass - [x] Run code review and security checks <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent c7c8d30 commit 1d48644

38 files changed

Lines changed: 118 additions & 83 deletions

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"typecheck": "tsc --noEmit"
88
},
99
"devDependencies": {
10-
"typescript": "^5.9.3"
10+
"typescript": "^6.0.0"
1111
},
1212
"dependencies": {
1313
"playwright-extra": "^4.3.6",

docs/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ __metadata:
7272
playwright-extra: "npm:^4.3.6"
7373
puppeteer-extra: "npm:^3.3.6"
7474
puppeteer-extra-plugin-stealth: "npm:^2.11.2"
75-
typescript: "npm:^5.9.3"
75+
typescript: "npm:^6.0.0"
7676
languageName: unknown
7777
linkType: soft
7878

@@ -442,23 +442,23 @@ __metadata:
442442
languageName: node
443443
linkType: hard
444444

445-
"typescript@npm:^5.9.3":
446-
version: 5.9.3
447-
resolution: "typescript@npm:5.9.3"
445+
"typescript@npm:^6.0.0":
446+
version: 6.0.2
447+
resolution: "typescript@npm:6.0.2"
448448
bin:
449449
tsc: bin/tsc
450450
tsserver: bin/tsserver
451-
checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
451+
checksum: 10c0/4b860b0bf87cc0fee0f66d8ef2640b5a8a8a8c74d1129adb82e389e5f97124383823c47946bef8a73ede371461143a3aa8544399d2133c7b2e4f07e81860af7f
452452
languageName: node
453453
linkType: hard
454454

455-
"typescript@patch:typescript@npm%3A^5.9.3#optional!builtin<compat/typescript>":
456-
version: 5.9.3
457-
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
455+
"typescript@patch:typescript@npm%3A^6.0.0#optional!builtin<compat/typescript>":
456+
version: 6.0.2
457+
resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>::version=6.0.2&hash=5786d5"
458458
bin:
459459
tsc: bin/tsc
460460
tsserver: bin/tsserver
461-
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
461+
checksum: 10c0/49f0b84fc6ca55653e77752b8a61beabc09ee3dae5d965c31596225aa6ef213c5727b1d2e895b900416dc603854ba0872ac4a812c2a4ed6793a601f9c675de02
462462
languageName: node
463463
linkType: hard
464464

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"rimraf": "^6.0.0",
112112
"tsx": "^4.4.0",
113113
"turbo": "^2.1.0",
114-
"typescript": "^5.7.3",
114+
"typescript": "^6.0.0",
115115
"typescript-eslint": "^8.28.0",
116116
"vitest": "^4.0.16"
117117
},

packages/memory-storage/src/resource-clients/request-queue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import type * as storage from '@crawlee/types';
66
import { AsyncQueue } from '@sapphire/async-queue';
77
import { s } from '@sapphire/shapeshift';
88
import { move } from 'fs-extra';
9-
import type { RequestQueueFileSystemEntry } from 'packages/memory-storage/src/fs/request-queue/fs';
10-
import type { RequestQueueMemoryEntry } from 'packages/memory-storage/src/fs/request-queue/memory';
119

1210
import { scheduleBackgroundTask } from '../background-handler';
1311
import { findRequestQueueByPossibleId } from '../cache-helpers';
1412
import { StorageTypes } from '../consts';
1513
import { createRequestQueueStorageImplementation } from '../fs/request-queue';
14+
import type { RequestQueueFileSystemEntry } from '../fs/request-queue/fs';
15+
import type { RequestQueueMemoryEntry } from '../fs/request-queue/memory';
1616
import type { MemoryStorage } from '../index';
1717
import { purgeNullsFromObject, uniqueKeyToRequestId } from '../utils';
1818
import { BaseClient } from './common/base-client';

packages/templates/templates/camoufox-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@types/node": "^24.0.0",
1515
"fs-extra": "^11.3.0",
1616
"tsx": "^4.4.0",
17-
"typescript": "~5.9.0"
17+
"typescript": "~6.0.0"
1818
},
1919
"scripts": {
2020
"start": "npm run start:dev",

packages/templates/templates/cheerio-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"devDependencies": {
1010
"@apify/tsconfig": "^0.1.0",
1111
"tsx": "^4.4.0",
12-
"typescript": "~5.9.0",
12+
"typescript": "~6.0.0",
1313
"@types/node": "^24.0.0"
1414
},
1515
"scripts": {

packages/templates/templates/empty-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"devDependencies": {
1010
"@apify/tsconfig": "^0.1.0",
1111
"tsx": "^4.4.0",
12-
"typescript": "~5.9.0",
12+
"typescript": "~6.0.0",
1313
"@types/node": "^24.0.0"
1414
},
1515
"scripts": {

packages/templates/templates/getting-started-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@apify/tsconfig": "^0.1.0",
1212
"tsx": "^4.4.0",
13-
"typescript": "~5.9.0",
13+
"typescript": "~6.0.0",
1414
"@types/node": "^24.0.0"
1515
},
1616
"scripts": {

packages/templates/templates/playwright-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@apify/tsconfig": "^0.1.0",
1212
"tsx": "^4.4.0",
13-
"typescript": "~5.9.0",
13+
"typescript": "~6.0.0",
1414
"@types/node": "^24.0.0"
1515
},
1616
"scripts": {

packages/templates/templates/puppeteer-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@apify/tsconfig": "^0.1.0",
1212
"tsx": "^4.4.0",
13-
"typescript": "~5.9.0",
13+
"typescript": "~6.0.0",
1414
"@types/node": "^24.0.0"
1515
},
1616
"scripts": {

0 commit comments

Comments
 (0)