Skip to content

Conversation

@keanu-a
Copy link
Contributor

@keanu-a keanu-a commented Jul 17, 2025

Switched from namespace export of global-config utils to explicit named exports

@keanu-a keanu-a requested a review from a team as a code owner July 17, 2025 15:36
@keanu-a keanu-a changed the title feat: add named exports for global-config utils chore: add named exports for global-config utils Jul 17, 2025
@keanu-a keanu-a changed the title chore: add named exports for global-config utils fix: add named exports for global-config utils Jul 17, 2025
@serhalp
Copy link
Member

serhalp commented Jul 17, 2025

@keanu-a since this changes what's exported from the package, this is technically a breaking change, so let's rename the PR to start with fix!: (check out https://www.conventionalcommits.org/en/v1.0.0/#summary if this is new to you)

export { ensureNetlifyIgnore } from './lib/gitignore.js'
export { headers, toMultiValueHeaders } from './lib/headers.js'
export * as globalConfig from './lib/global-config.js'
export { default as getGlobalConfigStore, GlobalConfigStore, resetConfigCache } from './lib/global-config.js'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for churning, but now that I look at it... maybe we can just change the ./lib/global-config module to export getGlobalConfigStore as a named export instead of a default export? it's a little weird as is, and we're here making a breaking change anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No its okay! I agree with changing the default export. Changed to named export

@keanu-a keanu-a changed the title fix: add named exports for global-config utils fix!: add named exports for global-config utils Jul 17, 2025
@keanu-a keanu-a requested a review from serhalp July 17, 2025 17:33
Copy link
Member

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@serhalp serhalp merged commit c66b7e0 into main Jul 17, 2025
16 of 18 checks passed
@serhalp serhalp deleted the keanualoua/ex-357-replace-export-of-globalconfig-in-netlifydev-utils-with branch July 17, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants