Upgrading dotenv 14 to 15
Breaking14.3.2 → 15.0.1Breaking2New1Fixed1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- The multiline setting is gone; multiline values are parsed automatically.
- Anything after a # in an unquoted value is now treated as a comment, so values containing # must be quoted.
Must act 2 items need code or config changes
What you must change
Breaking2
Removes the multiline option because multiline parsing now works out of the box.
multiline# now marks the beginning of a comment unless the value is wrapped in quotes.API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
interface DotenvParseOptions - removed:
property DotenvConfigOptions.multiline?: boolean - removed:
property DotenvParseOptions.debug?: boolean - removed:
property DotenvParseOptions.multiline?: boolean - changed:
function parse<T extends DotenvParseOutput = DotenvParseOutput>(src: string | Buffer, options?: DotenvParseOptions): T → function parse<T extends DotenvParseOutput = DotenvParseOutput>(src: string | Buffer): T