RIP Dotenv? Node.js 21.7 is OUT! What's New?

  Рет қаралды 5,017

Ariel Weinberger

Ariel Weinberger

Күн бұрын

Node.js version 27.1 is now out! What's new? And is this the end of the Dotenv library? Let's check it out.
🔗 Socials:
X - x.com/arielweinberger
LinkedIn - / arielweinberger
Timestamps:
00:00 Intro
00:05 Loading env variables from files
01:44 Easily generate hashes
02:50 Styling Text
04:00 Outro
📚 Resources
1. Release Blog Post + Changelog
nodejs.org/en/blog/release/v2...

Пікірлер: 15
@tubero911
@tubero911 Ай бұрын
Feels to me like the environment file loading would be more natural if done in the opposite order (general env properties followed by specialized env subset e.g. for debug).
@ThatGuy-jc2ow
@ThatGuy-jc2ow 2 ай бұрын
I read about it yesterday and also excited about new features. Now it also supports ES6 modules
@SerenModz21
@SerenModz21 2 ай бұрын
node v20 introduced the --env-file flag but its neat that they're taking it a step further with the loadEnvFile function. i think these changes will lower the need of dotenv but i dont think it'll replace it completely. reason being that dotenv has plugins such as dotenv-expand and what not. however, there could be a possibility that node ends up replacing those as well.
@kumailn7662
@kumailn7662 9 күн бұрын
for array write your own function
@timschannel247
@timschannel247 21 күн бұрын
hm I am unsrure, if you want to load more than just one .env file as this will lead to much trouble as variables will be overwritten in sort of including the envs
@nourgaser6838
@nourgaser6838 2 ай бұрын
I recently started using dotenvx though, which depends on dotenv, so most likely dotenv will continue? Or maybe they'll remove the dotenv dependency in newer releases.
@codinglyio
@codinglyio 2 ай бұрын
dotenvx definitely has added value! I've been using "dotenv-cli" for this, seems pretty much identical. Thanks for letting me know, I'll check it out.
@ulrich-tonmoy
@ulrich-tonmoy 2 ай бұрын
So node wont load them based on the running env but i have to do it manually
@user-qm2uo6ht5l
@user-qm2uo6ht5l 2 ай бұрын
nodd already runs those things …..
@mel-182
@mel-182 22 күн бұрын
That's 3 less packages people.
@SergiuPlesco
@SergiuPlesco Ай бұрын
You can use "import" in 2024...
@giantbush4258
@giantbush4258 Ай бұрын
Exactly. I don't understand why you are using commonjs synyax vs module ...
@Groaznic
@Groaznic Ай бұрын
Oh my god I can't believe they're setting the override priority of imported env variables in the wrong order. Everything has to be ass backwards in web development, that's why it's a joke, even things they are doing to improve the state of things in 2024 still done with maximum incompetence.
Finally Fix Your Issues With JS/React Memory Management 😤
20:13
Jack Herrington
Рет қаралды 75 М.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 377 М.
Айттыңба - істе ! | Synyptas 3 | 7 серия
21:55
kak budto
Рет қаралды 1,5 МЛН
Каха с волосами
01:00
К-Media
Рет қаралды 5 МЛН
Mini Jelly Cake 🎂
00:50
Mr. Clabik
Рет қаралды 16 МЛН
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 23 М.
JWT Explained In Under 10 Minutes (JSON Web Tokens)
9:18
Ariel Weinberger
Рет қаралды 4,1 М.
Ultimate Golang Developer Roadmap 2024 🚀
11:46
practicego
Рет қаралды 17 М.
Facebook wrote a language just for React (it's pretty cool)
26:09
Theo - t3․gg
Рет қаралды 73 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 906 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 621 М.
Devin AI: The Truth & Opportunity NOBODY Talks About
9:04
Ariel Weinberger
Рет қаралды 3 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 130 М.
If this ships, it will change javascript forever
25:54
Theo - t3․gg
Рет қаралды 181 М.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Рет қаралды 1,1 МЛН
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 63 М.
Наушники Ой🤣
0:26
Listen_pods
Рет қаралды 418 М.
Пленка или защитное стекло: что лучше?
0:52
Слава 100пудово!
Рет қаралды 1,2 МЛН