Skip to content

Restore level property to avoid breaking change in patch version - #368

Merged
orestbida merged 2 commits into
orestbida:masterfrom
damianwajer:restore-level-property
Sep 3, 2022
Merged

Restore level property to avoid breaking change in patch version#368
orestbida merged 2 commits into
orestbida:masterfrom
damianwajer:restore-level-property

Conversation

@damianwajer

Copy link
Copy Markdown

In this commit: Rename level property to categories (breaking change), the breaking change was introduced (as a response to this issue: Inconsistent naming - category vs. level). Although the change alone is ok, according to the SemVer, since it is a breaking change, such change should be included only in a major update e.g. v3.0.0.

For the patch update such as v2.8.0 -> v2.8.1, there shouldn't be any incompatible API changes. I came across this issue when I updated my packages using npm update (update v2.8.0 to v2.8.5 broke the plugin for me, because I was using level property from v2.8.0).

I think it's a good idea to keep level property until v.3.0.0. What do you think?

@vercel

vercel Bot commented Sep 2, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cookieconsent-docs ❌ Failed (Inspect) Sep 2, 2022 at 4:41PM (UTC)

@orestbida orestbida left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this change was unintentional (see #349 (comment)).

Restoring the level field is certainly a good idea! Thanks a lot for your contrib.!

@orestbida
orestbida merged commit 7bf81d4 into orestbida:master Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants