-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove deprecated @keystone-6/core/system
from package
#9085
Conversation
@keystone-6/core/system
package
@keystone-6/core/system
package@keystone-6/core/system
from package
I see a problem about the internal config. instead of internal config we should have used relaxed Also I see the config function being just returning he config, it makes difficult to create some plugin which wraps the config, I believe the defaults should be applied in the config before returning. this makes i will create a PR in hope to get this fixed |
@gautamsi I think that is a good approach, and something I had considered. |
The primary work in this pull request was about removing "defaults" and implicit behaviors from the underlying code, and surface it nearer to the origin. Moving the defaults to |
it is now relatively simple yet still complex due to split config, IMO we should have single config and not split config. Would you be in favor of export default config({
// ... other config
plugins: [withAuth, withTracking] // withTracking is my contrib list plugins
} plugins would then be run serially by inputting previous config similar to wrapping can create the PR for this as well, this will be a breaking change but we can put this together with the Otherwise I am going to create a PR which will just return the resolved config which will be ** edit ** created #9189 which should be frictionless :) |
This pull request drops @keystone-6/core/system from
@keystone-6/core
's exports.If you are using
createSystem
orcreateExpressServer
, please respond to this pull request and we can talk about alternative options (tl;dr, usegetContext
).This change allows us to internally use a different type for
KeystoneConfig
, which has historically had a number of default behaviours which are difficult to document and maintain.Additionally, this pull request removes a number of named types, which are generally less helpful by comparison to reaching into the
KeystoneConfig
type directly. If you wanted these types, please let us know with feedback on this pull request!