validator icon indicating copy to clipboard operation
validator copied to clipboard

feat(#1291): upgrade mimetype dependency version for secure

Open salihguru opened this issue 1 year ago • 3 comments

Fixes Or Enhances

the mimetype dependency version upgraded.

Check for details https://github.com/go-playground/validator/issues/1291

@go-playground/validator-maintainers

salihguru avatar Jul 19 '24 07:07 salihguru

When I looked into it a bit, the mimetype repo started using bytes.Cut with version 1.4.4.

bytes.Cut came with version 1.18 of go. Check for details. Therefore, an error occurs in version 1.17.

We can remove 1.17 from the supported versions. Since 1.17 is already available for older versions, this will not be a problem.

salihguru avatar Jul 19 '24 13:07 salihguru

Coverage Status

coverage: 74.291%. remained the same when pulling 630d293a73cc1ca070f27b55cd7026ceb8290e95 on 9ssi7:master into a947377040f8ebaee09f20d09a745ec369396793 on go-playground:master.

coveralls avatar Jul 19 '24 22:07 coveralls

Yes, what I wrote in my previous comment is no longer valid. We used the module replace feature, which is a better way. This way, we can continue to support 1.17.

Now we just need to include this pr for security

salihguru avatar Jul 19 '24 22:07 salihguru

Already updated

nodivbyzero avatar Mar 03 '25 01:03 nodivbyzero