Skip to content

Conversation

@alexmarqs
Copy link
Owner

@alexmarqs alexmarqs commented Jul 2, 2025

Motivation:

With these changes (still a WIP), we’ll be able to:

  • Support both adapter-specific and global options. For overlapping options, the adapter-specific ones will take precedence.
  • Introduce a new nestingSeparator option, available in the built-in dotEnv and Env adapters, and customizable in any user-defined adapter if needed;
  • Add a new transform option, allowing us to filter or modify data before it’s processed. This is useful for tasks like stripping prefixes, etc.

These improvements also lay the groundwork for designing more specialised API options per adapter, using transform as the core mechanism but something for another iteration.

@alexmarqs alexmarqs changed the title feat: add global and local config resolution + types small refactor feat: global and local config resolution + add new options: nestingSeparator and transform Jul 6, 2025
@alexmarqs alexmarqs changed the title feat: global and local config resolution + add new options: nestingSeparator and transform WIP: feat: global and local config resolution + add new options: nestingSeparator and transform Jul 7, 2025
@alexmarqs
Copy link
Owner Author

CC: @TimoGlastra @Pfeifenjoy mentioning you as this may relate to your points/suggestions in the issues — any feedback you have would be greatly appreciated (if so, please check the README changes to understand the new capabilities)

@alexmarqs alexmarqs changed the title WIP: feat: global and local config resolution + add new options: nestingSeparator and transform feat: global and local config resolution + add new options: nestingSeparator and transform Jul 11, 2025
… APIs, and improve descriptions for configuration options and adapters
…and loadConfigSync, including required fields and global vs adapter-specific settings
…asic Usage and Advanced Features, improving navigation and clarity
…rity by removing duplicates and maintaining a consistent order
@alexmarqs alexmarqs merged commit 1ea9f96 into main Jul 15, 2025
2 checks passed
@alexmarqs alexmarqs mentioned this pull request Jul 30, 2025
@alexmarqs alexmarqs deleted the chore/general-improvements branch August 4, 2025 15:51
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.

2 participants