Skip to content

Please remove dependency on 'natives #115

Open

Description

@MikhailArkhipov

See
https://www.npmjs.com/package/natives
microsoft/vscode#47569

"This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x."

Activity

  1. ZJONSSON commented on Apr 18, 2018

    @ZJONSSON

    Thanks @MikhailArkhipov, I did not find any references to natives in the dependency tree of unzipper. I do see graceful-fs@4.1.11 as one of the dependencies.

    For reference: unzipper is an actively managed fork of unzip with full backwards compatibility and advanced features (such as streaming unzip from url and quickly unzipping single files using the end directory) - please let me know if I can help you further with this or if you have any other concerns.

  2. MikhailArkhipov commented on Apr 18, 2018

    @MikhailArkhipov
    Author
    -- unzip@0.1.11
      -- fstream@0.1.31
        -- graceful-fs@3.0.11
          -- natives@1.1.1
    
  3. ZJONSSON commented on Apr 18, 2018

    @ZJONSSON

    To clarify, my comment was regarding the actively managed fork which is published as unzipper not unzip.
    https://www.npmjs.com/package/unzipper
    npm install unzipper

  4. blake-regalia commented on May 10, 2018

    @blake-regalia

    If unzip is no longer managed, please contact the owners to ask them consider deprecating it as it is causing major headaches for the node.js community when upgrading to v10.x.

    $ npm owner ls unzip
    evanoxfeld <eoxfeld@gmail.com>
    joeferner <joe@fernsroth.com>
    
  5. package71 commented on Apr 26, 2019

    @package71
    • Version: 12.0.0
    fs.js:27
    const { Math, Object, Reflect } = primordials;
                                      ^
    
    ReferenceError: primordials is not defined
        at fs.js:27:35
        at req_ (/Users/bdev/Documents/Projects/exchanger-api/node_modules/natives/index.js:143:24)
        at Object.req [as require] (/Users/bdev/Documents/Projects/exchanger-api/node_modules/natives/index.js:55:10)
        at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/graceful-fs/fs.js:1:37)
        at Module._compile (internal/modules/cjs/loader.js:759:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
        at Module.load (internal/modules/cjs/loader.js:628:32)
        at Function.Module._load (internal/modules/cjs/loader.js:555:12)
        at Module.require (internal/modules/cjs/loader.js:666:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/graceful-fs/graceful-fs.js:3:27)
        at Module._compile (internal/modules/cjs/loader.js:759:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
        at Module.load (internal/modules/cjs/loader.js:628:32)
        at Function.Module._load (internal/modules/cjs/loader.js:555:12)
        at Module.require (internal/modules/cjs/loader.js:666:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/fstream/lib/reader.js:4:10)
        at Module._compile (internal/modules/cjs/loader.js:759:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
        at Module.load (internal/modules/cjs/loader.js:628:32)
        at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    
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