Skip to content

lock dotenv to v16 to prevent advertising spam on import - #774

Closed
whaaaley wants to merge 1 commit into
NaturalNode:masterfrom
whaaaley:lock-dotenv-v16
Closed

whaaaley wants to merge 1 commit into
NaturalNode:masterfrom
whaaaley:lock-dotenv-v16

Conversation

@whaaaley

Copy link
Copy Markdown
Contributor

Follow-up to #773.

That PR lazy-loads storage plugins so users who don't use storage avoid both the unnecessary imports and the dotenv advertising. This PR covers users who do use storage and still don't want the log spam.

Pins dotenv to ^16.4.7 (latest v16) which has the same .config() API without the logging. All 858 specs pass.

It might also be worth considering removing the dotenv dependency down the road and letting applications handle their own .env loading.

@Hugo-ter-Doest

Copy link
Copy Markdown
Collaborator

I agree that commercial adds are annoying. However, that is a not a good argument to stop updating the dependency and pin the module to an older version.

@whaaaley

Copy link
Copy Markdown
Contributor Author

@Hugo-ter-Doest There's no functional difference between the pin and the latest version other than the AD, but you merged the other PR so it's at least fixed for users who don't use storage modules. Is there another solution you'd prefer?

@Hugo-ter-Doest

Copy link
Copy Markdown
Collaborator

No, there is no other solution I prefer. I will leave it as it is.

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