Skip to content

Releases: linhntaim/dotenv-conversion

Dot-Env Conversion v3.1.0

03 Nov 11:41
Compare
Choose a tag to compare

Changes:

  • New feature:
    • New options to disable the support for binary/octal/hexadecimal format in conversion.
      • Options: binaryNumber, octalNumber, hexadecimalNumber.
        • When setting these options to false, values in binary/octal/hexadecimal format will not be converted to number.
      • Options: binaryBigInt, octalBigInt, hexadecimalBigInt.
        • When setting these options to false, values in binary/octal/hexadecimal format will not be converted to bigint.

Dot-Env Conversion v3.0.0

15 Oct 13:56
Compare
Choose a tag to compare

Changes:

  • auto:boolean and boolean conversion methods now accept additional original values:
    • True values: ok, Ok, OK.
    • False: not, Not, NOT, none, None, NONE.
  • Binary (0b...) , octal (0o...) and hexadecimal (0x...) number syntax are now accepted in auto:number, auto:bigint, boolean, number, bigint conversion methods.
  • Empty array ([], [ ], ...) or empty object ({}, { }, ...) are now accepted in boolean (converted to false), number (converted to 0) and bigint (converted to 0n) conversion methods.
  • Conversion now ignores non-string environment variables.
  • Add Documentation to README.md.
  • Update ignore files.
  • Do some small refactor.
  • Enhancements:
    • switch(true) turns into if ... return ... blocks.
    • Values that could be matched with an exact converted value now are cached in specific lookup tables -> reduce the cost of executing if statements.
    • flattenValue is now more detailed.
    • restoreValue now ignores non-string values.

Dot-Env Conversion v2.2.1

07 Oct 04:53
Compare
Choose a tag to compare
  • Hotfix: empty string turns into array
  • Test cases for hotfix
  • README.md

Dot-Env Conversion v2.1.2

07 Oct 04:49
Compare
Choose a tag to compare

Dot-Env Conversion v2.1.1

07 Oct 04:08
Compare
Choose a tag to compare
  • Hotfix: empty string turns into array
  • Test cases for hotfix
  • README.md

Dot-Env Conversion v2.0.4

07 Oct 03:55
Compare
Choose a tag to compare
  • Hotfix: empty string turns into array
  • Test cases for hotfix
  • README.md

Dot-Env Conversion v2.2.0

06 Oct 17:12
Compare
Choose a tag to compare
  • Preload with dotenv-flow
  • Validate the name of conversion method and alias: only allow alphanumeric, underscore and dot characters.
  • Bugs in README.md

Dot-Env Conversion v2.1.0

05 Oct 08:56
Compare
Choose a tag to compare
  • Preload feature.
  • Change test folder to tests.
  • Build change: re-configure Babel.

Dot-Env Conversion v2.0.3

05 Oct 08:51
Compare
Choose a tag to compare
+ update readme.md: use `.default` for `require` call (due to babel r…

Dot-Env Conversion v2.0.2

04 Oct 17:05
Compare
Choose a tag to compare
  • Fix package.json file