From 9e082431704024437bec72fdb5c32146f5966363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=C3=A1nh=20Ho=C3=A0ng?= Date: Tue, 26 Nov 2024 20:46:34 +0700 Subject: [PATCH] Support Node >= v22 (#1540) Co-authored-by: prosoponator[bot] Co-authored-by: Chris --- packages/locale/src/translations.ts | 14 +++++++------- packages/locale/src/util.ts | 2 +- typedoc.config.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/locale/src/translations.ts b/packages/locale/src/translations.ts index 419391a3d9..5adba7ffad 100644 --- a/packages/locale/src/translations.ts +++ b/packages/locale/src/translations.ts @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. import z from "zod"; -import translationsDe from "./locales/de.json" assert { type: "json" }; -import translationsEn from "./locales/en.json" assert { type: "json" }; -import translationsEs from "./locales/es.json" assert { type: "json" }; -import translationsFr from "./locales/fr.json" assert { type: "json" }; -import translationsIt from "./locales/it.json" assert { type: "json" }; -import translationsPtBR from "./locales/pt-BR.json" assert { type: "json" }; -import translationsPt from "./locales/pt.json" assert { type: "json" }; +import translationsDe from "./locales/de.json" with { type: "json" }; +import translationsEn from "./locales/en.json" with { type: "json" }; +import translationsEs from "./locales/es.json" with { type: "json" }; +import translationsFr from "./locales/fr.json" with { type: "json" }; +import translationsIt from "./locales/it.json" with { type: "json" }; +import translationsPtBR from "./locales/pt-BR.json" with { type: "json" }; +import translationsPt from "./locales/pt.json" with { type: "json" }; export const Languages = ["de", "en", "es", "fr", "it", "pt", "pt-BR"] as const; diff --git a/packages/locale/src/util.ts b/packages/locale/src/util.ts index 6290336ea2..fb22fca57f 100644 --- a/packages/locale/src/util.ts +++ b/packages/locale/src/util.ts @@ -13,7 +13,7 @@ // limitations under the License. import { z } from "zod"; -import translationEn from "./locales/en.json" assert { type: "json" }; +import translationEn from "./locales/en.json" with { type: "json" }; export function isClientSide(): boolean { return !!( diff --git a/typedoc.config.js b/typedoc.config.js index d8ef7af63c..3ddc8ecbb2 100644 --- a/typedoc.config.js +++ b/typedoc.config.js @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -import pkgJson from "./package.json" assert { type: "json" }; +import pkgJson from "./package.json" with { type: "json" }; export default { extends: "./typedoc.base.config.js",