Skip to content

Commit b40f4c2

Browse files
aaa123eeegioboa
andauthored
chore: bump typescript and playwright (#616)
--------- Co-authored-by: gioboa <[email protected]>
1 parent d97b27f commit b40f4c2

Some content is hidden

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

47 files changed

+166
-164
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
},
8989
"devDependencies": {
9090
"@microsoft/api-extractor": "^7.19.5",
91-
"@playwright/test": "^1.17.1",
91+
"@playwright/test": "^1.48.2",
9292
"@rollup/plugin-terser": "^0.4.3",
9393
"@types/fs-extra": "^11.0.2",
9494
"@types/node": "^18.17.15",
@@ -98,12 +98,12 @@
9898
"fs-extra": "^11.1.1",
9999
"gzip-size": "^6.0.0",
100100
"np": "^7.6.1",
101-
"playwright": "^1.17.2",
101+
"playwright": "^1.48.2",
102102
"prettier": "^2.6.0",
103103
"rollup": "^3.29.1",
104104
"tslib": "^2.3.1",
105105
"tsm": "^2.2.1",
106-
"typescript": "^4.6.2",
106+
"typescript": "^5.6.3",
107107
"uvu": "^0.5.3"
108108
},
109109
"prettier": {

pnpm-lock.yaml

+34-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/build-atomics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RollupOptions } from 'rollup';
22
import {
3-
BuildOptions,
3+
type BuildOptions,
44
fileSize,
55
jsBannerPlugin,
66
syncCommunicationModulesPlugin,

scripts/build-integration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BuildOptions, submodulePackageJson } from './utils.js';
1+
import { type BuildOptions, submodulePackageJson } from './utils.js';
22
import { join } from 'node:path';
33
import type { OutputOptions, RollupOptions } from 'rollup';
44
import fsExtra from 'fs-extra';

scripts/build-main-snippet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BuildOptions, fileSize, jsBannerPlugin, versionPlugin } from './utils.js';
1+
import { type BuildOptions, fileSize, jsBannerPlugin, versionPlugin } from './utils.js';
22
import { join } from 'node:path';
33
import { minifyPlugin } from './minify.js';
44
import type { OutputOptions, Plugin, RollupOptions } from 'rollup';

scripts/build-media-implementations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { OutputOptions, RollupOptions } from 'rollup';
2-
import { BuildOptions, fileSize, jsBannerPlugin, versionPlugin, watchDir } from './utils.js';
2+
import { type BuildOptions, fileSize, jsBannerPlugin, versionPlugin, watchDir } from './utils.js';
33
import { join } from 'node:path';
44
import { minifyPlugin } from './minify.js';
55

scripts/build-react.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BuildOptions, submodulePackageJson, submodulePath } from './utils.js';
1+
import { type BuildOptions, submodulePackageJson, submodulePath } from './utils.js';
22
import { join } from 'node:path';
33
import type { RollupOptions } from 'rollup';
44

scripts/build-service-worker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { OutputOptions, Plugin, rollup, RollupOptions } from 'rollup';
1+
import { type OutputOptions, type Plugin, rollup, type RollupOptions } from 'rollup';
22
import {
3-
BuildOptions,
3+
type BuildOptions,
44
fileSize,
55
jsBannerPlugin,
6-
MessageType,
6+
type MessageType,
77
onwarn,
88
syncCommunicationModulesPlugin,
99
versionPlugin,

scripts/build-services.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BuildOptions, submodulePackageJson } from './utils.js';
1+
import { type BuildOptions, submodulePackageJson } from './utils.js';
22
import { join } from 'node:path';
33
import type { OutputOptions, RollupOptions } from 'rollup';
44

scripts/build-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BuildOptions, submodulePackageJson } from './utils.js';
1+
import { type BuildOptions, submodulePackageJson } from './utils.js';
22
import { join } from 'node:path';
33
import type { RollupOptions } from 'rollup';
44

scripts/build-web-worker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { OutputOptions, Plugin, rollup } from 'rollup';
1+
import { type OutputOptions, type Plugin, rollup } from 'rollup';
22
import {
3-
BuildOptions,
3+
type BuildOptions,
44
getJsBanner,
5-
MessageType,
5+
type MessageType,
66
onwarn,
77
syncCommunicationModulesPlugin,
88
versionPlugin,

scripts/minify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import terser, { Options } from '@rollup/plugin-terser';
1+
import terser, { type Options } from '@rollup/plugin-terser';
22
import type { Plugin } from 'rollup';
33
import type { BuildOptions } from './utils';
44

src/lib/atomics/sync-create-messenger-atomics.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2-
MainAccessRequest,
3-
MessageFromWorkerToSandbox,
4-
Messenger,
5-
PartytownWebWorker,
2+
type MainAccessRequest,
3+
type MessageFromWorkerToSandbox,
4+
type Messenger,
5+
type PartytownWebWorker,
66
WorkerMessageType,
77
} from '../types';
88
import { onMessageFromWebWorker } from '../sandbox/on-messenge-from-worker';

src/lib/atomics/sync-send-message-to-main-atomics.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
2-
MainAccessRequest,
3-
MainAccessResponse,
4-
WebWorkerContext,
2+
type MainAccessRequest,
3+
type MainAccessResponse,
4+
type WebWorkerContext,
55
WorkerMessageType,
66
} from '../types';
77

src/lib/log.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {
2-
ApplyPath,
2+
type ApplyPath,
33
CallType,
4-
InstanceId,
4+
type InstanceId,
55
InterfaceType,
66
NodeName,
7-
WebWorkerEnvironment,
8-
WinId,
7+
type WebWorkerEnvironment,
8+
type WinId,
99
} from './types';
1010
import {
1111
ApplyPathKey,

src/lib/sandbox/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { libPath, mainWindow } from './main-globals';
44
import { logMain } from '../log';
55
import { mainAccessHandler } from './main-access-handler';
66
import {
7-
MessageFromWorkerToSandbox,
8-
MessengerRequestCallback,
9-
PartytownWebWorker,
7+
type MessageFromWorkerToSandbox,
8+
type MessengerRequestCallback,
9+
type PartytownWebWorker,
1010
WorkerMessageType,
1111
} from '../types';
1212
import { registerWindow } from './main-register-window';

src/lib/sandbox/main-access-handler.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {
2-
ApplyPath,
2+
type ApplyPath,
33
ApplyPathType,
4-
MainAccessRequest,
5-
MainAccessResponse,
6-
MainAccessTask,
7-
PartytownWebWorker,
8-
WinId,
4+
type MainAccessRequest,
5+
type MainAccessResponse,
6+
type MainAccessTask,
7+
type PartytownWebWorker,
8+
type WinId,
99
} from '../types';
1010
import { debug, getConstructorName, isPromise, len } from '../utils';
1111
import { defineCustomElement } from './main-custom-element';

src/lib/sandbox/main-custom-element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CustomElementData, PartytownWebWorker, WinId, WorkerMessageType } from '../types';
1+
import { type CustomElementData, type PartytownWebWorker, type WinId, WorkerMessageType } from '../types';
22
import { defineConstructorName } from '../utils';
33
import { getAndSetInstanceId } from './main-instances';
44
import { winCtxs } from './main-constants';

src/lib/sandbox/main-forward-trigger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
len,
55
resolvePartytownForwardProperty,
66
} from '../utils';
7-
import { MainWindow, PartytownWebWorker, WinId, WorkerMessageType } from '../types';
7+
import { type MainWindow, type PartytownWebWorker, type WinId, WorkerMessageType } from '../types';
88
import { serializeForWorker } from './main-serialization';
99

1010
export const mainForwardTrigger = (worker: PartytownWebWorker, $winId$: WinId, win: MainWindow) => {

src/lib/sandbox/main-instances.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CreatedKey, InstanceIdKey, instances, winCtxs, windowIds } from './main-constants';
2-
import { InstanceId, MainWindowContext, WinDocId, WinId } from '../types';
2+
import { type InstanceId, type MainWindowContext, WinDocId, type WinId } from '../types';
33
import { randomId } from '../utils';
44

55
export const getAndSetInstanceId = (instance: any, instanceId?: InstanceId) => {

src/lib/sandbox/main-register-window.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { debug } from '../utils';
22
import { logMain, normalizedWinId } from '../log';
33
import {
4-
MainWindow,
5-
PartytownWebWorker,
6-
WinId,
4+
type MainWindow,
5+
type PartytownWebWorker,
6+
type WinId,
77
WorkerMessageType,
88
LocationUpdateType,
99
} from '../types';

0 commit comments

Comments
 (0)