feat: deprecate remote link (#10768)

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Harminder Virk
2024-12-30 14:57:43 +05:30
committed by GitHub
co-authored by Oli Juhl
parent 1e6d56bc18
commit bbf790ea44
25 changed files with 74 additions and 79 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ import {
ModuleBootstrapOptions,
RegisterModuleJoinerConfig,
} from "./medusa-module"
import { RemoteLink } from "./remote-link"
import { Link } from "./link"
import { createQuery, RemoteQuery } from "./remote-query"
import { MODULE_SCOPE } from "./types"
@@ -210,7 +210,7 @@ async function initializeLinks({
)
return {
remoteLink: new RemoteLink(),
remoteLink: new Link(),
linkResolution,
getMigrationPlanner,
}
@@ -261,7 +261,7 @@ function registerCustomJoinerConfigs(servicesConfig: ModuleJoinerConfig[]) {
export type MedusaAppOutput = {
modules: Record<string, LoadedModule | LoadedModule[]>
link: RemoteLink | undefined
link: Link | undefined
query: RemoteQueryFunction
entitiesMap?: Record<string, any>
gqlSchema?: GraphQLUtils.GraphQLSchema