-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Remove tokens
and classes
helpers
#738
Conversation
@willcosgrove can you think of any reason why we should keep these? |
I can't think of a long term reason to keep them around. It might be nice if they didn't disappear at the same time as a new way gets introduced, just so the migration isn't as cumbersome |
That’s true, but introducing the new way and removing the old way are both breaking changes. We’d either need to keep them around until 3.0 or sneak the new way out in a 1.x release even though it’s technically breaking. |
I think the new syntax is unlikely to break existing use cases, as passing a Hash was previously resulting in Introducing it in a minor release before removing |
I think it would have made hyphenated HTML attributes: div(class: { foo: true }) # => <div class-foo></div> But I think your point still stands: while technically breaking existing behavior, it is unlikely anyone was relying on it for |
Can we make them issue a deprecation warning and remove them in a later point release? Or maybe I'm the only one using them 😳 In which case, I don't need a slow removal of them for myself. |
Does having the new way available really break any existing code? |
Technically/theoretically, yes. Realistically, no way. Let’s port the new behaviour back to 1.x and add a deprecation warning to these helpers. I’m happy to work on that. We’re due a 1.11 release anyway. |
7ab745f
to
8f6cce1
Compare
I’m going to ship this to |
Since #737, we no longer need these helpers.