From 63cc133d768ddb69f9b3c00a150f970be4c52e62 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 13 Jun 2024 16:09:38 +0200 Subject: [PATCH] refactor(core)!: remove deprecated exports --- src/core/index.ts | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/src/core/index.ts b/src/core/index.ts index f1e25e60af..20043fe6ec 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -20,46 +20,3 @@ export { build } from "./build/build"; export { copyPublicAssets } from "./build/assets"; export { prepare } from "./build/prepare"; export { writeTypes } from "./build/types"; - -// ----------- Backward compatibility ----------- - -/** - * @deprecated Please import `defineNitroConfig` from nitropack/config instead - */ -export function defineNitroConfig(config: NitroConfig): NitroConfig { - return config; -} - -/** @deprecated Please import `defineNitroPreset` from nitropack/kit instead */ -export { defineNitroPreset } from "nitropack/kit"; - -/** @deprecated Avoid depending on GLOB_SCAN_PATTERN */ -export { GLOB_SCAN_PATTERN } from "./scan"; - -/** @deprecated Directly import { runtimeDependencies } from "nitropack/runtime/meta"; */ -export { runtimeDependencies as nitroRuntimeDependencies } from "nitropack/runtime/meta"; - -/** @deprecated Avoid depending on scan utils */ -export { - scanHandlers, - scanMiddleware, - scanModules, - scanPlugins, - scanServerRoutes, - scanTasks, -} from "./scan"; - -/** @deprecated Directly import type { ... } from "nitropack/types"; */ -export type { - Nitro, - NitroConfig, - NitroDevServer, - NitroOptions, - NitroPreset, - NitroWorker, - LoadConfigOptions, - Serialize, - SerializeObject, - SerializeTuple, - Simplify, -} from "nitropack/types";