UNPKG

19.9 kBMarkdownView Raw
1## **6.9.5**
2- [Fix] `stringify`: do not encode parens for RFC1738
3- [Fix] `stringify`: fix arrayFormat comma with empty array/objects (#350)
4- [Refactor] `format`: remove `util.assign` call
5- [meta] add "Allow Edits" workflow; update rebase workflow
6- [actions] switch Automatic Rebase workflow to `pull_request_target` event
7- [Tests] `stringify`: add tests for #378
8- [Tests] migrate tests to Github Actions
9- [Tests] run `nyc` on all tests; use `tape` runner
10- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `mkdirp`, `object-inspect`, `tape`; add `aud`
11
12## **6.9.4**
13- [Fix] `stringify`: when `arrayFormat` is `comma`, respect `serializeDate` (#364)
14- [Refactor] `stringify`: reduce branching (part of #350)
15- [Refactor] move `maybeMap` to `utils`
16- [Dev Deps] update `browserify`, `tape`
17
18## **6.9.3**
19- [Fix] proper comma parsing of URL-encoded commas (#361)
20- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
21
22## **6.9.2**
23- [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
24- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
25- [meta] ignore eclint transitive audit warning
26- [meta] fix indentation in package.json
27- [meta] add tidelift marketing copy
28- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `has-symbols`, `tape`, `mkdirp`, `iconv-lite`
29- [actions] add automatic rebasing / merge commit blocking
30
31## **6.9.1**
32- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
33- [Fix] `parse`: with comma true, do not split non-string values (#334)
34- [meta] add `funding` field
35- [Dev Deps] update `eslint`, `@ljharb/eslint-config`
36- [Tests] use shared travis-ci config
37
38## **6.9.0**
39- [New] `parse`/`stringify`: Pass extra key/value argument to `decoder` (#333)
40- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `evalmd`
41- [Tests] `parse`: add passing `arrayFormat` tests
42- [Tests] add `posttest` using `npx aud` to run `npm audit` without a lockfile
43- [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16`
44- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
45
46## **6.8.2**
47- [Fix] proper comma parsing of URL-encoded commas (#361)
48- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
49
50## **6.8.1**
51- [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
52- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
53- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
54- [fix] `parse`: with comma true, do not split non-string values (#334)
55- [meta] add tidelift marketing copy
56- [meta] add `funding` field
57- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `has-symbols`, `iconv-lite`, `mkdirp`, `object-inspect`
58- [Tests] `parse`: add passing `arrayFormat` tests
59- [Tests] use shared travis-ci configs
60- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
61- [actions] add automatic rebasing / merge commit blocking
62
63## **6.8.0**
64- [New] add `depth=false` to preserve the original key; [Fix] `depth=0` should preserve the original key (#326)
65- [New] [Fix] stringify symbols and bigints
66- [Fix] ensure node 0.12 can stringify Symbols
67- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
68- [Refactor] `formats`: tiny bit of cleanup.
69- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `safe-publish-latest`, `iconv-lite`, `tape`
70- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended (#326)
71- [Tests] use `eclint` instead of `editorconfig-tools`
72- [docs] readme: add security note
73- [meta] add github sponsorship
74- [meta] add FUNDING.yml
75- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
76
77## **6.7.2**
78- [Fix] proper comma parsing of URL-encoded commas (#361)
79- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336)
80
81## **6.7.1**
82- [Fix] `parse`: Fix parsing array from object with `comma` true (#359)
83- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335)
84- [fix] `parse`: with comma true, do not split non-string values (#334)
85- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349)
86- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
87- [Refactor] `formats`: tiny bit of cleanup.
88- readme: add security note
89- [meta] add tidelift marketing copy
90- [meta] add `funding` field
91- [meta] add FUNDING.yml
92- [meta] Clean up license text so it’s properly detected as BSD-3-Clause
93- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `iconv-lite`, `mkdirp`, `object-inspect`, `browserify`
94- [Tests] `parse`: add passing `arrayFormat` tests
95- [Tests] use shared travis-ci configs
96- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray
97- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended
98- [Tests] use `eclint` instead of `editorconfig-tools`
99- [actions] add automatic rebasing / merge commit blocking
100
101## **6.7.0**
102- [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219)
103- [Fix] correctly parse nested arrays (#212)
104- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source, also with an array source
105- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty`
106- [Refactor] `utils`: `isBuffer`: small tweak; add tests
107- [Refactor] use cached `Array.isArray`
108- [Refactor] `parse`/`stringify`: make a function to normalize the options
109- [Refactor] `utils`: reduce observable [[Get]]s
110- [Refactor] `stringify`/`utils`: cache `Array.isArray`
111- [Tests] always use `String(x)` over `x.toString()`
112- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10
113- [Tests] temporarily allow coverage to fail
114
115## **6.6.0**
116- [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268)
117- [New] move two-value combine to a `utils` function (#189)
118- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
119- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` (#260)
120- [Fix] `stringify`: do not crash in an obscure combo of `interpretNumericEntities`, a bad custom `decoder`, & `iso-8859-1`
121- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
122- [refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
123- [Refactor] `parse`: only need to reassign the var once
124- [Refactor] `parse`/`stringify`: clean up `charset` options checking; fix defaults
125- [Refactor] add missing defaults
126- [Refactor] `parse`: one less `concat` call
127- [Refactor] `utils`: `compactQueue`: make it explicitly side-effecting
128- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape`
129- [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS
130
131## **6.5.2**
132- [Fix] use `safer-buffer` instead of `Buffer` constructor
133- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
134- [Dev Deps] update `browserify`, `eslint`, `iconv-lite`, `safer-buffer`, `tape`, `browserify`
135
136## **6.5.1**
137- [Fix] Fix parsing & compacting very deep objects (#224)
138- [Refactor] name utils functions
139- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
140- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` so newer npm doesn’t break older node
141- [Tests] Use precise dist for Node.js 0.6 runtime (#225)
142- [Tests] make 0.6 required, now that it’s passing
143- [Tests] on `node` `v8.2`; fix npm on node 0.6
144
145## **6.5.0**
146- [New] add `utils.assign`
147- [New] pass default encoder/decoder to custom encoder/decoder functions (#206)
148- [New] `parse`/`stringify`: add `ignoreQueryPrefix`/`addQueryPrefix` options, respectively (#213)
149- [Fix] Handle stringifying empty objects with addQueryPrefix (#217)
150- [Fix] do not mutate `options` argument (#207)
151- [Refactor] `parse`: cache index to reuse in else statement (#182)
152- [Docs] add various badges to readme (#208)
153- [Dev Deps] update `eslint`, `browserify`, `iconv-lite`, `tape`
154- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4
155- [Tests] add `editorconfig-tools`
156
157## **6.4.0**
158- [New] `qs.stringify`: add `encodeValuesOnly` option
159- [Fix] follow `allowPrototypes` option during merge (#201, #201)
160- [Fix] support keys starting with brackets (#202, #200)
161- [Fix] chmod a-x
162- [Dev Deps] update `eslint`
163- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
164- [eslint] reduce warnings
165
166## **6.3.2**
167- [Fix] follow `allowPrototypes` option during merge (#201, #200)
168- [Dev Deps] update `eslint`
169- [Fix] chmod a-x
170- [Fix] support keys starting with brackets (#202, #200)
171- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
172
173## **6.3.1**
174- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!)
175- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape`
176- [Tests] on all node minors; improve test matrix
177- [Docs] document stringify option `allowDots` (#195)
178- [Docs] add empty object and array values example (#195)
179- [Docs] Fix minor inconsistency/typo (#192)
180- [Docs] document stringify option `sort` (#191)
181- [Refactor] `stringify`: throw faster with an invalid encoder
182- [Refactor] remove unnecessary escapes (#184)
183- Remove contributing.md, since `qs` is no longer part of `hapi` (#183)
184
185## **6.3.0**
186- [New] Add support for RFC 1738 (#174, #173)
187- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159)
188- [Fix] ensure `utils.merge` handles merging two arrays
189- [Refactor] only constructors should be capitalized
190- [Refactor] capitalized var names are for constructors only
191- [Refactor] avoid using a sparse array
192- [Robustness] `formats`: cache `String#replace`
193- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest`
194- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix
195- [Tests] flesh out arrayLimit/arrayFormat tests (#107)
196- [Tests] skip Object.create tests when null objects are not available
197- [Tests] Turn on eslint for test files (#175)
198
199## **6.2.3**
200- [Fix] follow `allowPrototypes` option during merge (#201, #200)
201- [Fix] chmod a-x
202- [Fix] support keys starting with brackets (#202, #200)
203- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
204
205## **6.2.2**
206- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
207
208## **6.2.1**
209- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
210- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call`
211- [Tests] remove `parallelshell` since it does not reliably report failures
212- [Tests] up to `node` `v6.3`, `v5.12`
213- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv`
214
215## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed)
216- [New] pass Buffers to the encoder/decoder directly (#161)
217- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160)
218- [Fix] fix compacting of nested sparse arrays (#150)
219
220## **6.1.2
221- [Fix] follow `allowPrototypes` option during merge (#201, #200)
222- [Fix] chmod a-x
223- [Fix] support keys starting with brackets (#202, #200)
224- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
225
226## **6.1.1**
227- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
228
229## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed)
230- [New] allowDots option for `stringify` (#151)
231- [Fix] "sort" option should work at a depth of 3 or more (#151)
232- [Fix] Restore `dist` directory; will be removed in v7 (#148)
233
234## **6.0.4**
235- [Fix] follow `allowPrototypes` option during merge (#201, #200)
236- [Fix] chmod a-x
237- [Fix] support keys starting with brackets (#202, #200)
238- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
239
240## **6.0.3**
241- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
242- [Fix] Restore `dist` directory; will be removed in v7 (#148)
243
244## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed)
245- Revert ES6 requirement and restore support for node down to v0.8.
246
247## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed)
248- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json
249
250## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed)
251- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4
252
253## **5.2.1**
254- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
255
256## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed)
257- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string
258
259## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed)
260- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional
261- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify
262
263## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed)
264- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false
265- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm
266
267## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed)
268- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional
269
270## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed)
271- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation"
272
273## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed)
274- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties
275- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost
276- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing
277- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object
278- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option
279- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects.
280- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47
281- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986
282- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign
283- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute
284
285## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed)
286- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function
287
288## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed)
289- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option
290
291## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed)
292- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57
293- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader
294
295## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed)
296- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object
297
298## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed)
299- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError".
300
301## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed)
302- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46
303
304## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed)
305- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer?
306- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45
307- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39
308
309## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed)
310- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number
311
312## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed)
313- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array
314- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x
315
316## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed)
317- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value
318- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty
319- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver?
320
321## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed)
322- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31
323- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects
324
325## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed)
326- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present
327- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays
328- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge
329- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters?
330
331## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed)
332- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter
333
334## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed)
335- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit?
336- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit
337- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20
338
339## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed)
340- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values
341
342## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed)
343- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters
344- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block
345
346## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed)
347- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument
348- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed
349
350## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed)
351- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted
352- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null
353- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README
354
355## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed)
356- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index