MathieuLoutre / grunt-aws-s3

Grunt plugin to interact with AWS S3 using the AWS SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_.contains is not a function

kmaraz opened this issue · comments

With the new version 2.0.1 I have got an error during file upload which says:

Warning: _.contains is not a function

grunt.initConfig({
    aws_s3: {
      options: {
        region: 'eu-west-1',
        uploadConcurrency: 5,
        downloadConcurrency: 5,
        differential: false
      },
      upload_immutables: {
        options: {
          bucket: process.env.APP_BUCKET,
          differential: false
        },
        files: getImmutableFiles("/admin")
      }
    }
  });

  grunt.loadNpmTasks('grunt-aws-s3');

We also had this issue. Had to downgrade to 2.0.0 which resolved it for us.

Also having this issue. Can confirm forcing 2.0.0 fixes the issue at least for now.

I still get the issue with version 2.0.0. How does downgrading fix the problem if lodash version is still v4

I still get the issue with version 2.0.0. How does downgrading fix the problem if lodash version is still v4

It's not... The lodash version bump from 2.x to 4.x was the only change in the 2.0.1 patch release.

You can use this until the owner updates: https://github.com/justinwinslow/grunt-aws-s3

Hi @MathieuLoutre
Any update on @justinwinslow's PR? This is a blocker for us using the newest version of the library that updates to Lodash V4. Unfortunately Lodash V2 has security vulnerabilities which we were hoping to remove from our dependency tree. Thanks in advance! 🙇

I've been alerted via email of this issue. I've published 2.0.2 which should fix this. I don't use Grunt anymore (or this package) so if someone would like to maintain it, please let me know.

@MathieuLoutre Please make a new release so that v2.0.2 gets picked up by npm.