Skip to content

Warning "The util._extend API is deprecated." #180

Description

@schneems

This warning:

$ npx foreman start -e .env -p 5006

[WARN] ENOENT: no such file or directory, open 'Procfile'
[FAIL] No Procfile and no package.json file found in Current Directory - See nf --help
(node:34002) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

Seems to come from

var envs = path.split(',').map(loadEnvsFile).reduce(util._extend, {});

$ node --trace-deprecation -e "require('foreman/lib/envs').loadEnvs('.env')"

(node:39559) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
    at Array.reduce (<anonymous>)
    at Object.loadEnvs (/private/tmp/3c7106f24e97020601c8db8a0e940341/node_modules/foreman/lib/envs.js:147:48)
    at [eval]:1:29
    at runScriptInThisContext (node:internal/vm:219:10)
    at node:internal/process/execution:483:12
    at [eval]-wrapper:6:24
    at runScriptInContext (node:internal/process/execution:481:60)
    at evalFunction (node:internal/process/execution:315:30)
    at evalTypeScript (node:internal/process/execution:327:3)
    at node:internal/main/eval_string:71:3
$ npx foreman --version
3.0.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions