Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/vite-plus-1-8-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@web3auth/auth": patch
---

Bump vite-plus from ^1.6.0 to 1.8.0 and align the Vite alias (`vp migrate` + `vp install`), so `vp` commands resolve again. Also bumps the vitest family to 5.1.1, the versions vite-plus 1.8.0 peers expect.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ dist
.DS_Store

.rollup*
.vitest/
1,141 changes: 601 additions & 540 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@
"@types/node": "^26.6.6",
"@types/once": "^1.4.5",
"@types/readable-stream": "^4.0.25",
"@vitest/coverage-istanbul": "5.1.0",
"@vitest/coverage-istanbul": "5.1.1",
"color": "^5.0.3",
"husky": "^9.1.7",
"lint-staged": "^17.6.2",
"typescript": "^7.0.2",
"vite-plus": "^1.6.0"
"vite-plus": "1.8.0",
"vitest": "5.1.1"
},
"peerDependencies": {
"color": "^5.x"
Expand Down Expand Up @@ -130,7 +131,7 @@
"fsevents@2.3.3": false
},
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
"vitest": "5.1.0"
"vite": "npm:@voidzero-dev/vite-plus-core@8.3.8001",
"vitest": "5.1.1"
}
}
2 changes: 1 addition & 1 deletion src/core/__tests__/auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import {
AUTH_DASHBOARD_DEVELOPMENT_URL,
Expand Down
2 changes: 1 addition & 1 deletion src/core/__tests__/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { parseRedirectLoginParams } from "../utils";

Expand Down
2 changes: 1 addition & 1 deletion test/auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AUTH_CONNECTION, UX_MODE } from "@toruslabs/customauth";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";

import { Auth } from "../src/core/auth";
import { AUTH_ACTIONS, AuthRequestPayload, BUILD_ENV, LoginParams, POPUP_TIMEOUT, SDK_MODE, WEB3AUTH_NETWORK } from "../src/utils";
Expand Down
2 changes: 1 addition & 1 deletion test/ed25519.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getEd25519, hexToBytes } from "@toruslabs/metadata-helpers";
import nacl from "@toruslabs/tweetnacl-js";
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { getED25519Key } from "../src/ed25519";

Expand Down
2 changes: 1 addition & 1 deletion test/jrpcEngine.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

import { SerializableError } from "../src";
import { errorCodes } from "../src/jrpc/errors";
Expand Down
2 changes: 1 addition & 1 deletion test/jrpcErrors.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { errorCodes, getMessageFromCode, isPlainObject, JSON_RPC_SERVER_ERROR_MESSAGE, providerErrors, rpcErrors } from "../src/jrpc/errors";
import { SerializableError } from "../src/jrpc/serializableError";
Expand Down
2 changes: 1 addition & 1 deletion test/jrpcMiddleware.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

import { ConsoleLike, errorCodes, JRPCEngine, JRPCNotification, JRPCParams, JRPCRequest, SerializableError } from "../src";
import {
Expand Down
2 changes: 1 addition & 1 deletion test/jrpcUtils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { dataHasCause, errorCodes, getMessageFromCode, rpcErrors, serializeJrpcError } from "../src/jrpc/errors";
import { JRPCNotification, JRPCParams, JRPCRequest, JRPCResponse } from "../src/jrpc/interfaces";
Expand Down
2 changes: 1 addition & 1 deletion test/postMessageStream.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";

type PostMessagePayload = {
data: {
Expand Down
2 changes: 1 addition & 1 deletion test/subkey.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toBufferLike } from "@toruslabs/metadata-helpers";
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { subkey } from "../src/subkey";

Expand Down
2 changes: 1 addition & 1 deletion test/v2/asLegacyMiddleware.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

import { JRPCEngine, JRPCFailure, JRPCRequest, JRPCSuccess, Json } from "../../src";
import { asLegacyMiddleware } from "../../src/jrpc/v2/asLegacyMiddleware";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/compatibility-utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vite-plus/test";

import { JRPCParams, JRPCRequest, Json } from "../../src";
import { JsonRpcError } from "../../src/jrpc/errors";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/createScaffoldMiddleware.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { JRPCRequest, rpcErrors } from "../../src";
import { createScaffoldMiddleware } from "../../src/jrpc/v2/createScaffoldMiddleware";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/jrpcEngineV2.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

import { JRPCId, JRPCNotification, JRPCRequest, Json } from "../../src";
import { JRPCEngineV2 } from "../../src/jrpc/v2/jrpcEngineV2";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/jrpcServer.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

import { JRPCNotification, JRPCRequest, Json, rpcErrors } from "../../src";
import { JRPCEngineV2 } from "../../src/jrpc/v2/jrpcEngineV2";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/messageStream.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Duplex } from "readable-stream";
import { beforeEach, describe, expect, it, Mock, vi } from "vitest";
import { beforeEach, describe, expect, it, Mock, vi } from "vite-plus/test";

import type { SafeEventEmitter } from "../../src/jrpc/safeEventEmitter";
import type { JRPCEngineV2 } from "../../src/jrpc/v2/jrpcEngineV2";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/middlewareContext.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { MiddlewareContext } from "../../src/jrpc/v2/MiddlewareContext";

Expand Down
2 changes: 1 addition & 1 deletion test/v2/providerUtils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from "vitest";
import { describe, expect, it, vi } from "vite-plus/test";

import { JRPCParams, JRPCRequest, JRPCResponse, Json } from "../../src";
import { SafeEventEmitter } from "../../src/jrpc/safeEventEmitter";
Expand Down
2 changes: 1 addition & 1 deletion test/v2/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from "vitest";
import { describe, expect, it } from "vite-plus/test";

import { hasProperty, isObject, JRPCParams } from "../../src";
import { JsonRpcEngineError } from "../../src/jrpc/v2/v2utils";
Expand Down