Releases: rafael-figueiredo-alves/DotEnv4Delphi
Releases · rafael-figueiredo-alves/DotEnv4Delphi
Release of version 1.5.0
Thanks to @tbratsas, this release fixes a bug with comments on .env files. Now, if you want to add a comment on your dotenv file, you should use the character # and a space like in the following line:
DBPASSWORD=Et31#1ii21 # this is a comment
If you type: DBPASSWORD=Et31#1ii21 #this is a comment
You'll get the DBPASSWORD's result equals to Et31#1ii21 #this is a comment
Released version 1.4.0 of DotEnv4Delphi
Big new features brought by this release:
- Support to Lazarus / Free Pascal (DotEnv4Delphi is now Lazarus / FreePascal Friendly)
- Added methods to define a default value if the variable can't be found
- a new demo using the lib to build a server using horse (you can do something common on NodeJS servers with DotEnv4Delphi now). Take a look:
- In JavaScript:
app.listen(process.env.PORT || 3000);
- In Delphi with Horse, you can do this:
THorse.Listen(DotEnv.PortOrDefault(3000));
- In JavaScript:
Released version 1.3.0 of DotEnv4Delphi
- Removed a variable that was useless (thanks to @MateusMPereira)
- Added some more methods to direct access some variables (related to development)
- Organized the file to keep things as neat as possible
Full Changelog: v1.2.0...v1.3.0
New version 1.2.0
- Changed function Development to function isDevelopment to make itb more semantic.
- Added 2 more variables: Secret_Key and Database_URL
v1.1.0
Welcome to DotEnv4Delphi version 1.1.0
New features implemented:
- Direct access to some variables:
- Port
- Hostname
- Password
- DbPassword
- DbHost
- Token
- BaseURL
- ConnectionString
- Development (This is useful to determine if you want to define some functions to work if you are under development)
- Added new value to the Enumeration (ConnectionString)
v1.0.0
Version 1.0.0, the first of this library that implements a way to access Environment variable in a easy and fast way and also brings to Delphi the possibility to use DotEnv files to carry sensible data like passwords to your development in a safe way.