-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep dive for ICodeLoader #8193
Comments
Re: Phase 1, I think probably the Now that I'm looking at it, I'm also thinking it would probably make more sense for basically all the stuff in Also @anthony-murphy for visibility and his opinions. |
I see that |
That seems fine. In retrospect that move looks like a mistake. we are not there today, but i view our current common definitions as the place where we specify layer crossing contracts. The layers being: server, driver, host (loader), runtime, datastore, dds The code loader is interesting, as it is not layer crossing itself. it is only a host concept, but we don't really have a great place to define and interface like that, as putting it in container-loader also brings all the implementations, making it hard for partners to structure their host code in a reusable way. I don't think that changes anything today, and container-definitions is probably the right place for it. But long term i could see leaf level definition packages that pair with implementation but include things that don't cross layers. The problem or course being package and version proliferation, but i think there are things we can do that ease that which i explore a bit in #6540. |
@anthony-murphy, if I have understood this correctly and container-definitions is the right place for |
|
@anthony-murphy, @ChumpChief updated the |
Looks good to me! |
Moved to ADO |
Overview
The motivation to move ICodeLoader interface outside the container-definition is to separate abstractions layers. The @fluidframework/container-definition#ICodeLoader interface loads the package specified by code details and returns a promise to its entry point exports. @fluidframework/container-loader#ICodeDetailsLoader also performs the same functionality.
Affected Repositories:
Bohemia, Whiteboard, Fluid Framework
Files Affected
Fluid Framework:
Proposed Replacement
Remove ICodeLoader from @fluidframework/container-definitions. Replace ICodeLoader with ICodeDetailsLoader by importing it from @fluidframework/container-loader.
Issues
ICodeDetailsLoader
andIFluidModuleWithDetails
interface from@fluidframework/container-loader
to@fluidframework/container-definition
package. Keep the deprecatedICodeLoader
interface #8480@fluidframework/core-interface#fluidPackage.ts
to@fluidframework/container-definition
package #8485ICodeDetailsLoader
interface from@fluidframework/container-definition
package. #8490Next
The text was updated successfully, but these errors were encountered: