-
Notifications
You must be signed in to change notification settings - Fork 206
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
jQuery.deparam: coerce standalone keys to null values #60
jQuery.deparam: coerce standalone keys to null values #60
Conversation
This comment has been minimized.
This comment has been minimized.
… -o jquery.ba-bbq.min.js' (v2.4.8)
Minified by using yui-compressor v2.4.8, and confirmed that unit tests continue to pass against the minified file (ref). |
@cowboy This might be a bit like ancient archeology, but I wondered if you'd entertain the idea of releasing an updated version of Change #48 looks innocuous, and now that I've read #62 I'd be keen to deploy a version with that resolved. This pull request is less important. If maintenance is a pain then perhaps a fork is an alternative; figured I'd ask first though. |
@jayaddison unfortunately, I don't have any of the tools set up to actually generate the requisite files for this project (and this was way before I had anything like Grunt, in fact, it's the reason I created Grunt in the first place). Are you interested in doing the work to make this happen? If so, I can give you access to manage the repo and merge in those changes. |
@cowboy It's been a little while since looking at this, but from what I remember, I was able to rebuild and minify distributable JS code although it was a slightly manual process at the time (ref previous comment). I'd be glad to do a bit of maintenance here, and perhaps modernize the build process after understanding it a bit more fully. |
@jayaddison invite sent! |
@cowboy A heads-up that although I made a tiny amount of progress on adding an updated build process, this hasn't been something I've been able to progress a lot yet. It'd be nice to merge some pending security-related improvements, but in the absence of progress on those or other features, it might be worth dropping my access privileges on the repo. Maybe an idea worth revisiting in another week or two. |
@cowboy Just a heads-up that I'm going to bow out of that effort to update the build process here, and drop my privileges on the repository; other time commitments are taking priority. It seemed worth a try, but I didn't make much progress unfortunately! |
I think this issue can probably be closed - perhaps at some point I'd like to revive a debate about standalone keys in query-strings, but until then this can be closed (with commits still retrievable via the github pr ref). |
This pull request adds support for a
standaloneKeys
parameter to thejQuery.deparam
function, allowing clients to decode standalone query-string keys (e.g. the keyb
in the string?a=1&b&c=3
) asnull
.Standalone keys are deserialized to nulls only when the
coerce
parameter is also enabled. Backwards-compatibility is maintained with prior versions of thejquery-bbq
library, and test coverage to illustrate this is provided.This proposed change corresponds to jquery/jquery#4708 in which the ability to serialize JavaScript objects containing
null
values to query strings is proposed.