Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump typescript and playwright #616

Merged
merged 13 commits into from
Nov 16, 2024
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
},
"devDependencies": {
"@microsoft/api-extractor": "^7.19.5",
"@playwright/test": "^1.17.1",
"@playwright/test": "^1.48.2",
"@rollup/plugin-terser": "^0.4.3",
"@types/fs-extra": "^11.0.2",
"@types/node": "^18.17.15",
Expand All @@ -98,12 +98,12 @@
"fs-extra": "^11.1.1",
"gzip-size": "^6.0.0",
"np": "^7.6.1",
"playwright": "^1.17.2",
"playwright": "^1.48.2",
"prettier": "^2.6.0",
"rollup": "^3.29.1",
"tslib": "^2.3.1",
"tsm": "^2.2.1",
"typescript": "^4.6.2",
"typescript": "^5.6.3",
"uvu": "^0.5.3"
},
"prettier": {
Expand Down
65 changes: 34 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/build-atomics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { RollupOptions } from 'rollup';
import {
BuildOptions,
type BuildOptions,
fileSize,
jsBannerPlugin,
syncCommunicationModulesPlugin,
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-integration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BuildOptions, submodulePackageJson } from './utils.js';
import { type BuildOptions, submodulePackageJson } from './utils.js';
import { join } from 'node:path';
import type { OutputOptions, RollupOptions } from 'rollup';
import fsExtra from 'fs-extra';
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-main-snippet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BuildOptions, fileSize, jsBannerPlugin, versionPlugin } from './utils.js';
import { type BuildOptions, fileSize, jsBannerPlugin, versionPlugin } from './utils.js';
import { join } from 'node:path';
import { minifyPlugin } from './minify.js';
import type { OutputOptions, Plugin, RollupOptions } from 'rollup';
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-media-implementations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { OutputOptions, RollupOptions } from 'rollup';
import { BuildOptions, fileSize, jsBannerPlugin, versionPlugin, watchDir } from './utils.js';
import { type BuildOptions, fileSize, jsBannerPlugin, versionPlugin, watchDir } from './utils.js';
import { join } from 'node:path';
import { minifyPlugin } from './minify.js';

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-react.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BuildOptions, submodulePackageJson, submodulePath } from './utils.js';
import { type BuildOptions, submodulePackageJson, submodulePath } from './utils.js';
import { join } from 'node:path';
import type { RollupOptions } from 'rollup';

Expand Down
6 changes: 3 additions & 3 deletions scripts/build-service-worker.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { OutputOptions, Plugin, rollup, RollupOptions } from 'rollup';
import { type OutputOptions, type Plugin, rollup, type RollupOptions } from 'rollup';
import {
BuildOptions,
type BuildOptions,
fileSize,
jsBannerPlugin,
MessageType,
type MessageType,
onwarn,
syncCommunicationModulesPlugin,
versionPlugin,
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BuildOptions, submodulePackageJson } from './utils.js';
import { type BuildOptions, submodulePackageJson } from './utils.js';
import { join } from 'node:path';
import type { OutputOptions, RollupOptions } from 'rollup';

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BuildOptions, submodulePackageJson } from './utils.js';
import { type BuildOptions, submodulePackageJson } from './utils.js';
import { join } from 'node:path';
import type { RollupOptions } from 'rollup';

Expand Down
6 changes: 3 additions & 3 deletions scripts/build-web-worker.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { OutputOptions, Plugin, rollup } from 'rollup';
import { type OutputOptions, type Plugin, rollup } from 'rollup';
import {
BuildOptions,
type BuildOptions,
getJsBanner,
MessageType,
type MessageType,
onwarn,
syncCommunicationModulesPlugin,
versionPlugin,
Expand Down
2 changes: 1 addition & 1 deletion scripts/minify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import terser, { Options } from '@rollup/plugin-terser';
import terser, { type Options } from '@rollup/plugin-terser';
import type { Plugin } from 'rollup';
import type { BuildOptions } from './utils';

Expand Down
8 changes: 4 additions & 4 deletions src/lib/atomics/sync-create-messenger-atomics.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
MainAccessRequest,
MessageFromWorkerToSandbox,
Messenger,
PartytownWebWorker,
type MainAccessRequest,
type MessageFromWorkerToSandbox,
type Messenger,
type PartytownWebWorker,
WorkerMessageType,
} from '../types';
import { onMessageFromWebWorker } from '../sandbox/on-messenge-from-worker';
Expand Down
6 changes: 3 additions & 3 deletions src/lib/atomics/sync-send-message-to-main-atomics.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
MainAccessRequest,
MainAccessResponse,
WebWorkerContext,
type MainAccessRequest,
type MainAccessResponse,
type WebWorkerContext,
WorkerMessageType,
} from '../types';

Expand Down
8 changes: 4 additions & 4 deletions src/lib/log.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {
ApplyPath,
type ApplyPath,
CallType,
InstanceId,
type InstanceId,
InterfaceType,
NodeName,
WebWorkerEnvironment,
WinId,
type WebWorkerEnvironment,
type WinId,
} from './types';
import {
ApplyPathKey,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/sandbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { libPath, mainWindow } from './main-globals';
import { logMain } from '../log';
import { mainAccessHandler } from './main-access-handler';
import {
MessageFromWorkerToSandbox,
MessengerRequestCallback,
PartytownWebWorker,
type MessageFromWorkerToSandbox,
type MessengerRequestCallback,
type PartytownWebWorker,
WorkerMessageType,
} from '../types';
import { registerWindow } from './main-register-window';
Expand Down
12 changes: 6 additions & 6 deletions src/lib/sandbox/main-access-handler.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {
ApplyPath,
type ApplyPath,
ApplyPathType,
MainAccessRequest,
MainAccessResponse,
MainAccessTask,
PartytownWebWorker,
WinId,
type MainAccessRequest,
type MainAccessResponse,
type MainAccessTask,
type PartytownWebWorker,
type WinId,
} from '../types';
import { debug, getConstructorName, isPromise, len } from '../utils';
import { defineCustomElement } from './main-custom-element';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sandbox/main-custom-element.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomElementData, PartytownWebWorker, WinId, WorkerMessageType } from '../types';
import { type CustomElementData, type PartytownWebWorker, type WinId, WorkerMessageType } from '../types';
import { defineConstructorName } from '../utils';
import { getAndSetInstanceId } from './main-instances';
import { winCtxs } from './main-constants';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sandbox/main-forward-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
len,
resolvePartytownForwardProperty,
} from '../utils';
import { MainWindow, PartytownWebWorker, WinId, WorkerMessageType } from '../types';
import { type MainWindow, type PartytownWebWorker, type WinId, WorkerMessageType } from '../types';
import { serializeForWorker } from './main-serialization';

export const mainForwardTrigger = (worker: PartytownWebWorker, $winId$: WinId, win: MainWindow) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sandbox/main-instances.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CreatedKey, InstanceIdKey, instances, winCtxs, windowIds } from './main-constants';
import { InstanceId, MainWindowContext, WinDocId, WinId } from '../types';
import { type InstanceId, type MainWindowContext, WinDocId, type WinId } from '../types';
import { randomId } from '../utils';

export const getAndSetInstanceId = (instance: any, instanceId?: InstanceId) => {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/sandbox/main-register-window.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { debug } from '../utils';
import { logMain, normalizedWinId } from '../log';
import {
MainWindow,
PartytownWebWorker,
WinId,
type MainWindow,
type PartytownWebWorker,
type WinId,
WorkerMessageType,
LocationUpdateType,
} from '../types';
Expand Down
Loading