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

Feat/has env and getenv changes #2163

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

coolsoftwaretyler
Copy link
Collaborator

@coolsoftwaretyler coolsoftwaretyler commented Mar 10, 2024

What does this PR do and why?

Supercedes #2039, which was a re-write of #938.

This is a breaking change. We approved it a long time ago, but have dramatically changed the file structure of the repo along the way. No longer requires us to update the middlewares (since those are not in the repository anymore).

We'll ship this along with version 6.0.0, which has a few other minor breaking changes.

Closes #820

Steps to validate locally

Test should pass. getEnv now throws when one is not found, and we have a hasEnv function you can use to check if there is one or not. This makes the getEnv API more consistent with things like getParent and getRoot, which also throw when there is none found.

@coolsoftwaretyler coolsoftwaretyler merged commit 0e26764 into master Mar 10, 2024
1 check passed
@coolsoftwaretyler coolsoftwaretyler deleted the feat/has-env-and-getenv-changes branch March 10, 2024 19:46
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.

make getEnv fail when root has not been initialized with context
2 participants