From 52704401ca8fb99c60a89b143af9c291b6d2703c Mon Sep 17 00:00:00 2001 From: Edward Smit Date: Wed, 20 May 2026 12:40:10 +0200 Subject: [PATCH] docs: soften jquery-bbq attribution to reflect v1.1.0 rewrite After v1.1.0 the deparam side is an original qs-backed shim, not bbq-derived code. The LICENSE previously claimed lib/deparam.js was "adapted from" jquery-bbq, which became inaccurate at the shim swap. Update both LICENSE and README to reflect that: - param.js is still adapted from jQuery's $.param (unchanged since 2014). - deparam.js is now an original shim; the bbq lineage is in its behavioral contract (coercion conventions, test fixtures, ISO-8859 fallback semantics), not its source code. No code change. No version bump needed (LICENSE/README ship in the tarball but the attribution correction doesn't affect runtime behavior). --- LICENSE | 4 +++- README.md | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index 54a8f69..1ec49b2 100644 --- a/LICENSE +++ b/LICENSE @@ -34,7 +34,9 @@ Licensed under the MIT License (text identical to the above). --- -jquery-bbq (`lib/deparam.js` is adapted from Ben Alman's jquery-bbq) +jquery-bbq (the original `lib/deparam.js`, replaced in v1.1.0 by an +original shim over qs that preserves jquery-bbq's behavioral conventions +and test fixtures) Copyright (c) 2013 AceMetrix Copyright (c) 2010 "Cowboy" Ben Alman diff --git a/README.md b/README.md index 61e2d87..036de58 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # node-qs-serialization Serialization and deserialization of Javascript objects for use in the querystring part of an url. -Slightly modified from jQuery's $.param function [$.param method](http://api.jquery.com/jQuery.param/) and Ben Alman's [jquery-bbq](https://github.com/cowboy/jquery-bbq/) with license info for both included. -`deparam` delegates parsing to [`qs`](https://github.com/ljharb/qs) and adds an ISO-8859 percent-encoding fallback, type coercion, and per-parameter depth and prototype-key rejection on top. `param` is the original pure-JS jQuery-traditional serializer. +`param` is adapted from jQuery's [`$.param`](http://api.jquery.com/jQuery.param/) — the original pure-JS jQuery-traditional serializer, unchanged since 2014. + +`deparam` is an original shim over [`qs`](https://github.com/ljharb/qs) whose behavioral contract was originally derived from Ben Alman's [jquery-bbq](https://github.com/cowboy/jquery-bbq/) — same coercion conventions, same test fixtures, same ISO-8859 percent-encoding fallback. The code was rewritten in v1.1.0; the contract was preserved. param serializes any Javascript object to a valid querystring. deparam deserializes a provided querystring. @@ -56,4 +57,4 @@ See [SECURITY.md](./SECURITY.md) for disclosure policy. # License -MIT — see [LICENSE](./LICENSE) for full text including the attributions to jQuery and jquery-bbq from which `param` and `deparam` are adapted. +MIT — see [LICENSE](./LICENSE) for full text including the attributions to jQuery (from which `param` is adapted) and jquery-bbq (whose behavioral conventions `deparam` preserves).