UNPKG

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