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
Old build URLs are no longer valid #1275
Comments
Could we host the old builder for a while on a so domain, and redirect to it if an old URL is requested? |
There's a first-class Modernizr/feature-detects/blob.js Line 25 in d6e1d6f
|
I think we'll have put in the effort on our side to make old URLs work. We've used these build URLs as firstclass representations of the build heavily so breaking them breaks expectations. We also don't want punt users to the old builder as we want our users with established builds to get the latest code |
+1 for defining them as So I think we probably want to add them hyphenated (
Who fancies giving me a hand / doing this for me? :-) I’m working on the updated builder for the v3 beta here btw. I’ll lift my logic out of that to create a module for @joecritch to use on the new site. |
This is already affecting people using |
@yoshokatana FYI, I think that’s a bit different: the issue with grunt-modernizr is to do with paths to detects in the repo – we’re talking about build URLs via modernizr.com here (which we include in the header comment in a custom build, so you can retrieve the same build again easily) |
All good – fixed by @patrickkettner on #1282 and I’ve now updated the v3 builder to use them, e.g.: automatically changes to: http://v3.modernizr.com/download/#-fileinput-filereader-filesystem-cssclasses-domprefixes-load-shiv |
@KuraFire @SlexAxton @paulirish @ryanseddon @patrickkettner
A lot of old detects used to include underscores in the property names. We standardised these to all-alphanumeric names for v3, but that means old build URLs which use these no longer work.
Do we simply say “old build URLs are no longer valid”?
If so that violates the cool URIs don’t change principle. I know we’ve said v3 is a good chance for API changes, but I’ve only just realised how many build URLs would become invalid (i.e. nearly every build including any non-core detects).
If not, the builder needs to know about the old names. The easiest way to do this would be to add the old names as aliases of the detects.
Here are all the property names which could occur in old build URLs which would no longer work; a few detects have these aliases defined, but using hyphens instead of underscores – e.g.
battery-api
instead ofbattery_api
– so would require conversion by the builder:The text was updated successfully, but these errors were encountered: