Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: motdotla/dotenv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.4.0
Choose a base ref
...
head repository: motdotla/dotenv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.5.0
Choose a head ref
  • 8 commits
  • 3 files changed
  • 3 contributors

Commits on Jan 16, 2021

  1. Allow for import "dotenv/config"; in Node.js

    Currently the officially recommended method for auto-importing works with Babel-like configuration that automatically resolves `dotenv/config` to `dotenv/config.js`. However, Node.js doesn't do this resolution, and instead you have to manually specify the extension like this:
    
    ```js
    // Babel OK, doesn't work on Node.js
    import "dotenv/config";
    
    // Works on Node.js (and Babel etc)
    // See #89 (comment)
    import "dotenv/config.js";
    ```
    
    A way of fixing this is by defining the export mapping in `package.json` as [explained in Node.js documentation](https://nodejs.org/api/packages.html#packages_package_entry_points):
    
    ```js
      "exports": {
        ".": "./lib/main.js",
        "./config": "./config.js"
      },
    ```
    franciscop authored Jan 16, 2021
    Configuration menu
    Copy the full SHA
    30a01b2 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2021

  1. Update test-config-cli.js

    franciscop authored Feb 21, 2021
    Configuration menu
    Copy the full SHA
    917428f View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2021

  1. Configuration menu
    Copy the full SHA
    fcde63f View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. Configuration menu
    Copy the full SHA
    79b43fd View commit details
    Browse the repository at this point in the history
  2. Merge pull request #513 from ImRodry/patch-1

    Fix small typo in JSDoc comment
    motdotla authored May 5, 2021
    Configuration menu
    Copy the full SHA
    5ff8f48 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0db3a93 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #503 from franciscop/patch-1

    Allow for `import "dotenv/config";` in Node.js
    motdotla authored May 5, 2021
    Configuration menu
    Copy the full SHA
    31a90b7 View commit details
    Browse the repository at this point in the history
  5. Bump version 8.5.0

    motdotla committed May 5, 2021
    Configuration menu
    Copy the full SHA
    9d9038f View commit details
    Browse the repository at this point in the history
Loading