strapi-community / strapi-plugin-slugify

A plugin for Strapi Headless CMS that provides the ability to auto slugify a field for any content type.
https://market.strapi.io/plugins/strapi-plugin-slugify
MIT License
45 stars 21 forks source link

Update yup dependency to 1.1.1 #94

Closed Dirvann closed 1 year ago

Dirvann commented 1 year ago

The yup dependency is currently at version 0.32.x which is outdated. It should normally be possible to update it to the latest version 1.1.1.

The reason is that it clashes with other strapi-plugins that use the major version 1.x.x .

ComfortablyCoding commented 1 year ago

The versions for peerDependencies are set based on the versions strapi themselves use. The reason for doing so is that is where they are expected to be coming from. At the moment the version of yup being used by strapi is "yup": "^0.32.9".

I do plan on removing these explicit peerDependencies (aside from @strapi/strapi as that is required) same as I did for some of my other packages. In doing so these types of issues should resolve themselves.

Dirvann commented 1 year ago

Makes sense! Thanks for the info. I suppose the @strapi/strapi should update that dependency first