chore: bump vite-plus to 1.0 (#14462)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
38969148a2
commit
35be904f2f
18 files changed
+579
-885
No files matched your search
@@ -42,7 +42,7 @@
|
||||
"profile:android:hermes": "mkdir -p profiles/review && react-native profile-hermes profiles/review",
|
||||
"sync:pierre-icons": "node modules/t3-markdown-text/scripts/sync-pierre-file-icons.mjs",
|
||||
"generate": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/generate-uniwind-themes.mts",
|
||||
"test": "vp test run",
|
||||
"test": "vp test run --config ../../vite.config.ts --dir .",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -1056,6 +1056,7 @@ describe("makeRelayDeviceRegistrationRequest", () => {
|
||||
type: "android",
|
||||
data: "fcm-token",
|
||||
});
|
||||
vi.mocked(loadPreferences).mockResolvedValue({ liveActivitiesEnabled: true } as Preferences);
|
||||
vi.stubGlobal(
|
||||
"fetch",
|
||||
vi.fn((request: RequestInfo | URL) => {
|
||||
|
||||
@@ -100,7 +100,7 @@ function makeMemorySecretStore() {
|
||||
};
|
||||
}
|
||||
|
||||
describe.sequential("signRelayAgentActivityPublishProof", () => {
|
||||
describe("signRelayAgentActivityPublishProof", { concurrent: false }, () => {
|
||||
it("distinguishes pending link credentials from disabled publication", () => {
|
||||
expect(
|
||||
AgentAwarenessRelay.resolveAgentActivityPublishingStartupState({
|
||||
@@ -977,7 +977,7 @@ describe.sequential("signRelayAgentActivityPublishProof", () => {
|
||||
);
|
||||
});
|
||||
|
||||
describe.sequential("startup catch-up", () => {
|
||||
describe("startup catch-up", { concurrent: false }, () => {
|
||||
// An unlinked relay with publishing off. `link` writes the link secrets and
|
||||
// `enablePublishing` the opt-in. Counts link checks (relay URL reads) and
|
||||
// catch-up publishes (shell snapshot reads).
|
||||
|
||||
@@ -6,7 +6,7 @@ import { HttpClient } from "effect/unstable/http";
|
||||
import { __resetDesktopPrimaryAuthForTests } from "./desktopAuth";
|
||||
import { makePrimaryEnvironmentHttpLayer } from "./httpLayer";
|
||||
|
||||
describe.sequential("primary environment HTTP layer", () => {
|
||||
describe("primary environment HTTP layer", { concurrent: false }, () => {
|
||||
afterEach(() => {
|
||||
__resetDesktopPrimaryAuthForTests();
|
||||
Reflect.deleteProperty(globalThis, "window");
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
sortThreads,
|
||||
} from "@t3tools/client-runtime/state/thread-sort";
|
||||
import { formatHourShort, formatRelativeHourShort } from "@t3tools/shared/usageFormat";
|
||||
import { bench, describe } from "vite-plus/test";
|
||||
import { describe, test } from "vite-plus/test";
|
||||
|
||||
import { deriveActivePlanState } from "./session-logic";
|
||||
|
||||
@@ -41,25 +41,37 @@ const hours = Array.from({ length: 24 }, (_, index) =>
|
||||
const referenceTime = "2026-08-12T00:00:00.000Z";
|
||||
|
||||
describe("client performance", () => {
|
||||
bench("sort 1000 threads by recent activity", () => {
|
||||
sortThreads(threads, "updated_at");
|
||||
test("sort 1000 threads by recent activity", async ({ bench }) => {
|
||||
await bench("sort", () => {
|
||||
sortThreads(threads, "updated_at");
|
||||
}).run();
|
||||
});
|
||||
bench("sort 1000 active threads", () => {
|
||||
sortActiveThreadsByOrderKey(threads);
|
||||
test("sort 1000 active threads", async ({ bench }) => {
|
||||
await bench("sort", () => {
|
||||
sortActiveThreadsByOrderKey(threads);
|
||||
}).run();
|
||||
});
|
||||
bench("sort 1000 keyless pinned threads", () => {
|
||||
sortPinnedThreadsByOrderKey(threads);
|
||||
test("sort 1000 keyless pinned threads", async ({ bench }) => {
|
||||
await bench("sort", () => {
|
||||
sortPinnedThreadsByOrderKey(threads);
|
||||
}).run();
|
||||
});
|
||||
bench("select latest project thread from 1000 threads", () => {
|
||||
getLatestThreadForProject(threads, projectId, "updated_at");
|
||||
test("select latest project thread from 1000 threads", async ({ bench }) => {
|
||||
await bench("select", () => {
|
||||
getLatestThreadForProject(threads, projectId, "updated_at");
|
||||
}).run();
|
||||
});
|
||||
bench("derive plan from 500 activities with 5 plan updates", () => {
|
||||
deriveActivePlanState(activities, turnId);
|
||||
test("derive plan from 500 activities with 5 plan updates", async ({ bench }) => {
|
||||
await bench("derive", () => {
|
||||
deriveActivePlanState(activities, turnId);
|
||||
}).run();
|
||||
});
|
||||
bench("format 24 hourly usage labels and tooltips", () => {
|
||||
hours.map((hour) => [
|
||||
formatHourShort(hour, "America/New_York"),
|
||||
formatRelativeHourShort(hour, referenceTime, "America/New_York"),
|
||||
]);
|
||||
test("format 24 hourly usage labels and tooltips", async ({ bench }) => {
|
||||
await bench("format", () => {
|
||||
hours.map((hour) => [
|
||||
formatHourShort(hour, "America/New_York"),
|
||||
formatRelativeHourShort(hour, referenceTime, "America/New_York"),
|
||||
]);
|
||||
}).run();
|
||||
});
|
||||
});
|
||||
@@ -7,7 +7,7 @@
|
||||
"push:android:smoke": "node scripts/android-push-smoke.ts",
|
||||
"push:android:watch": "node scripts/android-push-watch.ts",
|
||||
"destroy": "alchemy destroy",
|
||||
"test": "vp test run",
|
||||
"test": "vp test run --config ../../vite.config.ts --dir .",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -28,6 +28,7 @@
|
||||
"@effect/vitest": "catalog:",
|
||||
"@types/node": "catalog:",
|
||||
"drizzle-kit": "1.0.0-rc.5-ab785fc",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:",
|
||||
"vite-plus": "catalog:"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run"
|
||||
"test": "vp test run --config ../vite.config.ts --dir ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@effect/platform-node": "catalog:",
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
import * as Effect from "effect/Effect";
|
||||
import * as Option from "effect/Option";
|
||||
import { HttpClient, HttpClientResponse } from "effect/unstable/http";
|
||||
import { bench, describe } from "vite-plus/test";
|
||||
import { describe, test } from "vite-plus/test";
|
||||
|
||||
import { issueRemoteWebSocketTicket } from "./authorization/remote.ts";
|
||||
import { PrimaryConnectionTarget } from "./connection/model.ts";
|
||||
@@ -21,6 +21,7 @@ import { fetchEnvironmentThreadSnapshot } from "./state/threadSnapshotHttp.ts";
|
||||
import { applyThreadDetailEvent } from "./state/threadReducer.ts";
|
||||
|
||||
const timestamp = "2026-09-01T00:00:00.000Z";
|
||||
const runOptions = { warmupTime: 1_000, time: 1_500 };
|
||||
const thread: OrchestrationThread = {
|
||||
id: ThreadId.make("thread-1"),
|
||||
projectId: ProjectId.make("project-1"),
|
||||
@@ -102,15 +103,13 @@ const requests: Record<
|
||||
|
||||
describe("remote HTTP processing with an in-memory transport", () => {
|
||||
for (const [name, request] of Object.entries(requests)) {
|
||||
bench(
|
||||
name,
|
||||
async () => {
|
||||
test(name, async ({ bench }) => {
|
||||
await bench(name, async () => {
|
||||
await Effect.runPromise(
|
||||
request.pipe(Effect.provideService(HttpClient.HttpClient, httpClient)),
|
||||
);
|
||||
},
|
||||
{ warmupTime: 1_000, time: 1_500 },
|
||||
);
|
||||
}).run(runOptions);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -150,16 +149,15 @@ describe("remote message replay", () => {
|
||||
...delta,
|
||||
payload: { ...delta.payload, messageId: loaded.messages.at(-1)!.id },
|
||||
};
|
||||
bench(
|
||||
`apply 200 text deltas to ${count} loaded messages`,
|
||||
() => {
|
||||
const name = `apply 200 text deltas to ${count} loaded messages`;
|
||||
test(name, async ({ bench }) => {
|
||||
await bench(name, () => {
|
||||
let current: OrchestrationThread = loaded;
|
||||
for (let index = 0; index < 200; index += 1) {
|
||||
const result = applyThreadDetailEvent(current, event);
|
||||
if (result.kind === "updated") current = result.thread;
|
||||
}
|
||||
},
|
||||
{ warmupTime: 1_000, time: 1_500 },
|
||||
);
|
||||
}).run(runOptions);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run"
|
||||
"test": "vp test run --config ../../vite.config.ts --dir ."
|
||||
},
|
||||
"dependencies": {
|
||||
"effect": "catalog:"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run",
|
||||
"test": "vp test run --config ../../vite.config.ts --dir .",
|
||||
"generate": "node scripts/generate.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run",
|
||||
"test": "vp test run --config ../../vite.config.ts --dir .",
|
||||
"generate": "node scripts/generate.ts",
|
||||
"probe": "node test/examples/codex-app-server-probe.ts"
|
||||
},
|
||||
|
||||
@@ -362,7 +362,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run"
|
||||
"test": "vp test run --config ../../vite.config.ts --dir ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@noble/curves": "catalog:",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run"
|
||||
"test": "vp test run --config ../../vite.config.ts --dir ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@t3tools/contracts": "workspace:*",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run"
|
||||
"test": "vp test run --config ../../vite.config.ts --dir ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@t3tools/shared": "workspace:*",
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
diff --git a/lib/Test/Vitest.js b/lib/Test/Vitest.js
|
||||
index 0ecf9ccff01bb6556bf3e471d5a93254d16224a7..c0f1237e6a98e698718b0bbde5de8eb58c859e8e 100644
|
||||
--- a/lib/Test/Vitest.js
|
||||
+++ b/lib/Test/Vitest.js
|
||||
@@ -3,7 +3,7 @@ import { it } from "@effect/vitest";
|
||||
import * as Effect from "effect/Effect";
|
||||
import * as Exit from "effect/Exit";
|
||||
import * as Scope from "effect/Scope";
|
||||
-import { afterAll as vitestAfterAll, afterEach as vitestAfterEach, beforeAll as vitestBeforeAll, beforeEach as vitestBeforeEach, } from "vitest";
|
||||
+import { afterAll as vitestAfterAll, afterEach as vitestAfterEach, beforeAll as vitestBeforeAll, beforeEach as vitestBeforeEach, } from "vite-plus/test";
|
||||
import * as Core from "./Core.js";
|
||||
export { executeWhenReady, getWhenReady, guardContentType, guardedFetchLayer, rpcClientLayer, WorkerNotReady, } from "./Http.js";
|
||||
export const defaultStage = Core.defaultStage;
|
||||
diff --git a/src/Test/Vitest.ts b/src/Test/Vitest.ts
|
||||
index c321e6d4924d0f6b3ae53292a12af88167692ccb..673929a81d066bdd6a2dd94e9c1d95bb69f3e3cd 100644
|
||||
--- a/src/Test/Vitest.ts
|
||||
+++ b/src/Test/Vitest.ts
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
afterEach as vitestAfterEach,
|
||||
beforeAll as vitestBeforeAll,
|
||||
beforeEach as vitestBeforeEach,
|
||||
-} from "vitest";
|
||||
+} from "vite-plus/test";
|
||||
|
||||
import type { AlchemyContext } from "../AlchemyContext.ts";
|
||||
import type { CompiledStack } from "../Stack.ts";
|
||||
Generated
+496
-841
File diff suppressed because it is too large.
Load diff
+3
-2
@@ -49,8 +49,8 @@ catalog:
|
||||
lightningcss: 1.33.0
|
||||
tailwindcss: 4.3.3
|
||||
typescript: 7.0.2
|
||||
vite: npm:@voidzero-dev/vite-plus-core@0.3.3
|
||||
vite-plus: 0.3.3
|
||||
vite: npm:@voidzero-dev/vite-plus-core@1.0.0
|
||||
vite-plus: 1.0.0
|
||||
yaml: ^2.9.0
|
||||
|
||||
minimumReleaseAgeExclude:
|
||||
@@ -180,6 +180,7 @@ packageExtensions:
|
||||
vite: "catalog:"
|
||||
|
||||
patchedDependencies:
|
||||
[email protected]: patches/[email protected]
|
||||
"@clerk/[email protected]": patches/@[email protected]
|
||||
"@effect/[email protected]": patches/@[email protected]
|
||||
"@expo/[email protected]": patches/@[email protected]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vp test run"
|
||||
"test": "vp test run --config ../vite.config.ts --dir ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@effect/platform-node": "catalog:",
|
||||
|
||||
Reference in new issue
Block a user