Skip to content
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

Return ResolvedKeystoneConfig instead of KeystoneConfig #9189

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gautamsi
Copy link
Member

  • renamed __ResolvedKeystoneConfig to ResolvedKeystoneConfig;
  • Return default config from config function so that any config wrapper can make use of defaults.
  • config() now returns ResolvedKeystoneConfig instead of KeystoneConfig
  • withAuth input now needs ResolvedKeystoneConfig

Breaking changes due to type change, There is no migration needed in most cases instead of type casting in some case.

Changes only needed in advanced use case like manually running the dev/build process instead of cli

Copy link

codesandbox-ci bot commented Jun 29, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f5fbd04:

Sandbox Source
@keystone-6/sandbox Configuration

@gautamsi gautamsi mentioned this pull request Jun 30, 2024
15 tasks
@gautamsi gautamsi force-pushed the return-default-config branch from 56e0979 to a0740f4 Compare June 30, 2024 06:18
@gautamsi gautamsi changed the base branch from main to v-next July 18, 2024 02:17
@gautamsi gautamsi force-pushed the return-default-config branch from a0740f4 to 068c5d3 Compare July 25, 2024 02:12
@gautamsi gautamsi force-pushed the return-default-config branch 2 times, most recently from ab63849 to 395c861 Compare August 10, 2024 19:22
@gautamsi gautamsi force-pushed the return-default-config branch from 395c861 to 946347e Compare August 27, 2024 11:37
@gautamsi gautamsi force-pushed the return-default-config branch from 946347e to 71a12f8 Compare September 5, 2024 03:00
@dcousens
Copy link
Member

@gautamsi

Breaking changes due to type change, There is no migration needed in most cases instead of type casting in some case.

Do we actually need to break? The resolved type is only a type refinement, hopefully

@gautamsi
Copy link
Member Author

we can do minor change for this, as no one was using until now.

@gautamsi gautamsi force-pushed the return-default-config branch from 71a12f8 to f5fbd04 Compare December 2, 2024 02:14
@gautamsi gautamsi changed the base branch from v-next to main December 2, 2024 02:14
@gautamsi
Copy link
Member Author

gautamsi commented Dec 2, 2024

@dcousens I have updated this to be minor instead of major change.
Also changed base to main. let me know if you need any other changes

@gautamsi gautamsi force-pushed the return-default-config branch 2 times, most recently from 34263d9 to 908dc13 Compare December 14, 2024 03:09
@dcousens dcousens force-pushed the return-default-config branch from b43d0a2 to 139fce4 Compare December 23, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants