mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 23:30:09 +00:00
Zod v4 update (#1546)
## Description: This contains the update from zod 3.25 to 4. Change imports back from zod/v4 to just zod. No errors in VSCode. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I have read and accepted the CLA aggreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: tryout33
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { EventBus } from "../core/EventBus";
|
||||
import {
|
||||
AllPlayersStats,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { EventBus, GameEvent } from "../core/EventBus";
|
||||
import {
|
||||
AllPlayers,
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { decodeJwt } from "jose";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
RefreshResponseSchema,
|
||||
TokenPayload,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { base64urlToUuid } from "./Base64";
|
||||
|
||||
export const RefreshResponseSchema = z.object({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import cosmetics_json from "../../resources/cosmetics/cosmetics.json" with { type: "json" };
|
||||
import { RequiredPatternSchema } from "./Schemas";
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { base64url } from "jose";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import quickChatData from "../../resources/QuickChat.json" with { type: "json" };
|
||||
import countries from "../client/data/countries.json" with { type: "json" };
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { UnitType } from "./game/Game";
|
||||
|
||||
export const BombUnitSchema = z.union([
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { GameConfigSchema } from "./Schemas";
|
||||
|
||||
export const CreateGameInputSchema = GameConfigSchema.or(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { JWK } from "jose";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
Difficulty,
|
||||
Duos,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import ipAnonymize from "ip-anonymize";
|
||||
import { Logger } from "winston";
|
||||
import WebSocket from "ws";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
ClientID,
|
||||
ClientMessageSchema,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { base64url } from "jose";
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import { WebSocket, WebSocketServer } from "ws";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import { GameEnv } from "../core/configuration/Config";
|
||||
import { getServerConfigFromServer } from "../core/configuration/ConfigLoader";
|
||||
import { COSMETICS } from "../core/CosmeticSchemas";
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { jwtVerify } from "jose";
|
||||
import { z } from "zod/v4";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
TokenPayload,
|
||||
TokenPayloadSchema,
|
||||
|
||||
Reference in New Issue
Block a user