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

chore: don't convert strings to numbers/booleans in the API #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Jan 10, 2025

As discussion in #125, this PR updates the API to always use strings, even if the source file uses numbers/booleans. This allows us to remove a lot of typecasts from the parser file

The majority of users are not affected, because process.env.* is automatically converted to a string anyway. So this only affects PR only the small number of people who use the API[1].

also added test cases for invalid files
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.

Using '.env.js' extension and exporting an object sets all env variables as string
1 participant