diff --git a/CHANGELOG.md b/CHANGELOG.md index bce51d6..a586d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.0.0 +- ***BREAKING***: Inline comments are no longer allowed in `.env` files (full line comments are still allowed) +- ***BREAKING***: `.env` file no longer supports the `env var` format (only `env=var` is allowed now) +- ***BREAKING***: Double Quotes are no longer needed when using special symbols (such as `#`) in the value portion of an env var +- **Feature**: if the given env file cannot be found, it will auto default to searching +the execution directory for a file called `.env` and use that as a fallback. See README for why this is +helpful. (special thanks to Alexander Praetorius) + ## 4.0.0 - ***BREAKING***: In order to use double quotes as part of the env value, you must now surround those double quotes with an additional set of quotes: So `ENV1="value"` -> `ENV1=""value""` (this only applies to double quotes, single quotes continue to work as normal) - **Bug**: Fixed bug in the comment stripper function that would remove env values that included a `#`. Now, in order to use a `#` in a env value, you have to surround that env value in double quotes: `ENV="Some#Value"`. diff --git a/LICENSE b/LICENSE index 0ccdc23..04c076f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 Todd Bluhm +Copyright (c) 2017 Todd Bluhm Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 11378ea..445ff9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "env-cmd", - "version": "4.0.0", + "version": "5.0.0", "description": "Executes a command using the envs in the provided env file", "main": "lib/index.js", "bin": {