Skip to content

Upgrade dependency "archiver" to 7.x #105

@MennoTammens

Description

@MennoTammens

When installing osls, npm gives the following warnings (amongst others):

$ npm install
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

Both inflight and glob are dependencies of archiver:

$ npm why inflight glob
inflight@1.0.6 dev
node_modules/inflight
  inflight@"^1.0.4" from glob@7.2.3 dev
  node_modules/glob
    glob@"^7.1.4" from archiver-utils@2.1.0
    node_modules/archiver-utils
      archiver-utils@"^2.1.0" from archiver@5.3.2
      node_modules/archiver
        archiver@"^5.3.1" from serverless@3.57.0
        node_modules/serverless
          dev serverless@"npm:osls@^3.57.0" from the root project
    glob@"^7.2.3" from archiver-utils@3.0.4
    node_modules/zip-stream/node_modules/archiver-utils
      archiver-utils@"^3.0.4" from zip-stream@4.1.1
      node_modules/zip-stream
        zip-stream@"^4.1.0" from archiver@5.3.2
        node_modules/archiver
          archiver@"^5.3.1" from serverless@3.57.0
          node_modules/serverless
            dev serverless@"npm:osls@^3.57.0" from the root project

glob@7.2.3 dev
node_modules/glob
  glob@"^7.1.4" from archiver-utils@2.1.0
  node_modules/archiver-utils
    archiver-utils@"^2.1.0" from archiver@5.3.2
    node_modules/archiver
      archiver@"^5.3.1" from serverless@3.57.0
      node_modules/serverless
        dev serverless@"npm:osls@^3.57.0" from the root project
  glob@"^7.2.3" from archiver-utils@3.0.4
  node_modules/zip-stream/node_modules/archiver-utils
    archiver-utils@"^3.0.4" from zip-stream@4.1.1
    node_modules/zip-stream
      zip-stream@"^4.1.0" from archiver@5.3.2
      node_modules/archiver
        archiver@"^5.3.1" from serverless@3.57.0
        node_modules/serverless
          dev serverless@"npm:osls@^3.57.0" from the root project

Upgrading archiver to version ^7.0.1 will probably solve these warnings. The only breaking changes in archiver@6.0 and archiver@7.0 are dropping support for old nodejs versions:
https://github.com/archiverjs/node-archiver/releases

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