Socket
Socket
Sign inDemoInstall

dotenv

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv - npm Package Compare versions

Comparing version 9.0.2 to 10.0.0

20

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

## [10.0.0](https://github.com/motdotla/dotenv/compare/v9.0.2...v10.0.0) (2021-05-20)
### Added
- Add generic support to parse function
- Allow for import "dotenv/config.js"
- Add support to resolve home directory in path via ~
## [9.0.2](https://github.com/motdotla/dotenv/compare/v9.0.1...v9.0.2) (2021-05-10)

@@ -18,14 +26,6 @@

## [9.0.0](https://github.com/motdotla/dotenv/compare/v8.0.0...v9.0.0) (2021-05-05)
## [9.0.0](https://github.com/motdotla/dotenv/compare/v8.6.0...v9.0.0) (2021-05-05)
### Added
- define package.json in exports
- allow for `import "dotenv/config"`
### Changed
- updated dev dependencies via npm audit
- TypeScript types
- point to exact types file to work with VS Code
- _Breaking:_ drop support for Node v8

@@ -61,3 +61,3 @@

- _Breaking:_ drop support for Node v8
- _Breaking:_ drop support for Node v8 (mistake to be released as minor bump. later bumped to 9.0.0. see above.)

@@ -64,0 +64,0 @@ ## [8.2.0](https://github.com/motdotla/dotenv/compare/v8.1.0...v8.2.0) (2019-10-16)

@@ -26,2 +26,3 @@ /* @flow */

const path = require('path')
const os = require('os')

@@ -77,2 +78,6 @@ function log (message /*: string */) {

function resolveHome (envPath) {
return envPath[0] === '~' ? path.join(os.homedir(), envPath.slice(1)) : envPath
}
// Populates process.env from .env file

@@ -86,3 +91,3 @@ function config (options /*: ?DotenvConfigOptions */) /*: DotenvConfigOutput */ {

if (options.path != null) {
dotenvPath = options.path
dotenvPath = resolveHome(options.path)
}

@@ -89,0 +94,0 @@ if (options.encoding != null) {

{
"name": "dotenv",
"version": "9.0.2",
"version": "10.0.0",
"description": "Loads environment variables from .env file",

@@ -9,2 +9,3 @@ "main": "lib/main.js",

"./config": "./config.js",
"./config.js": "./config.js",
"./package.json": "./package.json"

@@ -11,0 +12,0 @@ },

<p align="center">
<strong>Announcement 📣</strong><br/>From the makers that brought you .env, introducing <a href="http://npmjs.org/package/@dotenv/cli">@dotenv/cli</a>.<br/>Sync your .env files across your machines and between your team members.<br/><a href="https://cli.dotenv.org">Join the early access list. 🕶</a>
<strong>Announcement 📣</strong><br/>From the makers that brought you Dotenv, introducing <a href="https://sync.dotenv.org">Dotenv Sync</a>.<br/>Sync your .env files between machines, environments, and team members.<br/><a href="https://sync.dotenv.org">Join the early access list. 🕶</a>
</p>

@@ -4,0 +4,0 @@

@@ -22,6 +22,6 @@ // TypeScript Version: 3.0

*/
export function parse(
export function parse<T extends DotenvParseOutput = DotenvParseOutput>(
src: string | Buffer,
options?: DotenvParseOptions
): DotenvParseOutput;
): T;

@@ -28,0 +28,0 @@ export interface DotenvConfigOptions {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc