Skip to content

Commit

Permalink
refactor(core)!: remove deprecated exports
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 13, 2024
1 parent 09c8267 commit 63cc133
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 63cc133

Please sign in to comment.