Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest changes to clock preset cause broken builds post v2.1.8 #80

Closed
rollbrettler opened this issue Jun 1, 2016 · 7 comments · Fixed by #82
Closed

Latest changes to clock preset cause broken builds post v2.1.8 #80

rollbrettler opened this issue Jun 1, 2016 · 7 comments · Fixed by #82

Comments

@rollbrettler
Copy link

Introduced with the update from patch version v2.1.8 to v2.1.9 you introduced new validation rules, which actually can break builds. This could be seen as a addition to current behavior so it should raise the minor version instead of the patch version.

See: v2.1.8...v2.1.9#diff-a916af6f3b09319c594cc1659fd03a6cR33

@benedfit
Copy link
Contributor

benedfit commented Jun 1, 2016

Hi @rollbrettler, thanks for bringing this to my attention. Do the additional errors relate to the changes made to the "clock" preset? (v2.1.8...v2.1.9#diff-a916af6f3b09319c594cc1659fd03a6cL16)

@rollbrettler
Copy link
Author

Yes, exactly. In my case it was only v2.1.8...v2.1.9#diff-a916af6f3b09319c594cc1659fd03a6cR33 but as far as I can see all changes in that file are additional rules.

@benedfit
Copy link
Contributor

benedfit commented Jun 1, 2016

Unfortunately, this is down to the misassumption on my part that anyone outside of @clocklimited would be using that particular preset, as in all honestly it is in flux given that many rules are still to be added to pug-lint 😄 Sorry about that!

While in hindsight bumping the minor version would have been the appropriate course of action, I'm going to suggest that you adjust your config to revert those values that were changed in this commit.

I'm suggestion this because work is afoot in #79 to deprecate presets in favour of the ability to extend configs from external locations in the same way eslint. I'll keep you posted as to when this feature drops, and provide instructions on how to get back to the config you have previously when it does

@benedfit benedfit changed the title Please raise the minor Version Latest changes to clock preset cause broken builds post v2.1.8 Jun 1, 2016
@rollbrettler
Copy link
Author

Thanks for the heads up.

I solved the issue by following the linter and adding the missing attribute, which I love to do. I like to have one source of truth for linting unless Iam fully aware of what I do. On the otherside I also want to fix new linting rules only when updating minor or major versions so I know I have the time to do so 😉
Thats basically the whole reason to add a ticket in the first place. Thanks again for your fast response 🙇 !

@benedfit
Copy link
Contributor

benedfit commented Jun 2, 2016

I'll shortly be publishing v2.2.0 This version will deprecate preset in favour of extends in order to get your build back to the state it was in v2.1.8 You can install the following:

npm install --save-dev [email protected]
npm install --save-dev [email protected]

And update your .pug-lintrc file as follows:

{
- "preset": "clock"
+ "extends": "clock"
...
}

@rollbrettler
Copy link
Author

So updating to v2.2.0 means "preset": "clock" does not work anymore, right? That actually means that #82 introduces breaking changes and is not backwards compatible. Which calls for a major version bump!? What do you think?

@TimothyGu
Copy link
Member

@rollbrettler, it still does, but its usage is not encouraged. So no, it's a minor bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants