1 |
3a515b92
|
cagy
|
## **6.7.0**
|
2 |
|
|
- [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219)
|
3 |
|
|
- [Fix] correctly parse nested arrays (#212)
|
4 |
|
|
- [Fix] `utils.merge`: avoid a crash with a null target and a truthy non-array source, also with an array source
|
5 |
|
|
- [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty`
|
6 |
|
|
- [Refactor] `utils`: `isBuffer`: small tweak; add tests
|
7 |
|
|
- [Refactor] use cached `Array.isArray`
|
8 |
|
|
- [Refactor] `parse`/`stringify`: make a function to normalize the options
|
9 |
|
|
- [Refactor] `utils`: reduce observable [[Get]]s
|
10 |
|
|
- [Refactor] `stringify`/`utils`: cache `Array.isArray`
|
11 |
|
|
- [Tests] always use `String(x)` over `x.toString()`
|
12 |
|
|
- [Tests] fix Buffer tests to work in node < 4.5 and node < 5.10
|
13 |
|
|
- [Tests] temporarily allow coverage to fail
|
14 |
|
|
|
15 |
|
|
## **6.6.0**
|
16 |
|
|
- [New] Add support for iso-8859-1, utf8 "sentinel" and numeric entities (#268)
|
17 |
|
|
- [New] move two-value combine to a `utils` function (#189)
|
18 |
|
|
- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
|
19 |
|
|
- [Fix] when `parseArrays` is false, properly handle keys ending in `[]` (#260)
|
20 |
|
|
- [Fix] `stringify`: do not crash in an obscure combo of `interpretNumericEntities`, a bad custom `decoder`, & `iso-8859-1`
|
21 |
|
|
- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
|
22 |
|
|
- [refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
|
23 |
|
|
- [Refactor] `parse`: only need to reassign the var once
|
24 |
|
|
- [Refactor] `parse`/`stringify`: clean up `charset` options checking; fix defaults
|
25 |
|
|
- [Refactor] add missing defaults
|
26 |
|
|
- [Refactor] `parse`: one less `concat` call
|
27 |
|
|
- [Refactor] `utils`: `compactQueue`: make it explicitly side-effecting
|
28 |
|
|
- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`, `iconv-lite`, `safe-publish-latest`, `tape`
|
29 |
|
|
- [Tests] up to `node` `v10.10`, `v9.11`, `v8.12`, `v6.14`, `v4.9`; pin included builds to LTS
|
30 |
|
|
|
31 |
|
|
## **6.5.2**
|
32 |
|
|
- [Fix] use `safer-buffer` instead of `Buffer` constructor
|
33 |
|
|
- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
|
34 |
|
|
- [Dev Deps] update `browserify`, `eslint`, `iconv-lite`, `safer-buffer`, `tape`, `browserify`
|
35 |
|
|
|
36 |
|
|
## **6.5.1**
|
37 |
|
|
- [Fix] Fix parsing & compacting very deep objects (#224)
|
38 |
|
|
- [Refactor] name utils functions
|
39 |
|
|
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
|
40 |
|
|
- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` so newer npm doesn’t break older node
|
41 |
|
|
- [Tests] Use precise dist for Node.js 0.6 runtime (#225)
|
42 |
|
|
- [Tests] make 0.6 required, now that it’s passing
|
43 |
|
|
- [Tests] on `node` `v8.2`; fix npm on node 0.6
|
44 |
|
|
|
45 |
|
|
## **6.5.0**
|
46 |
|
|
- [New] add `utils.assign`
|
47 |
|
|
- [New] pass default encoder/decoder to custom encoder/decoder functions (#206)
|
48 |
|
|
- [New] `parse`/`stringify`: add `ignoreQueryPrefix`/`addQueryPrefix` options, respectively (#213)
|
49 |
|
|
- [Fix] Handle stringifying empty objects with addQueryPrefix (#217)
|
50 |
|
|
- [Fix] do not mutate `options` argument (#207)
|
51 |
|
|
- [Refactor] `parse`: cache index to reuse in else statement (#182)
|
52 |
|
|
- [Docs] add various badges to readme (#208)
|
53 |
|
|
- [Dev Deps] update `eslint`, `browserify`, `iconv-lite`, `tape`
|
54 |
|
|
- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4
|
55 |
|
|
- [Tests] add `editorconfig-tools`
|
56 |
|
|
|
57 |
|
|
## **6.4.0**
|
58 |
|
|
- [New] `qs.stringify`: add `encodeValuesOnly` option
|
59 |
|
|
- [Fix] follow `allowPrototypes` option during merge (#201, #201)
|
60 |
|
|
- [Fix] support keys starting with brackets (#202, #200)
|
61 |
|
|
- [Fix] chmod a-x
|
62 |
|
|
- [Dev Deps] update `eslint`
|
63 |
|
|
- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
|
64 |
|
|
- [eslint] reduce warnings
|
65 |
|
|
|
66 |
|
|
## **6.3.2**
|
67 |
|
|
- [Fix] follow `allowPrototypes` option during merge (#201, #200)
|
68 |
|
|
- [Dev Deps] update `eslint`
|
69 |
|
|
- [Fix] chmod a-x
|
70 |
|
|
- [Fix] support keys starting with brackets (#202, #200)
|
71 |
|
|
- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
|
72 |
|
|
|
73 |
|
|
## **6.3.1**
|
74 |
|
|
- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!)
|
75 |
|
|
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape`
|
76 |
|
|
- [Tests] on all node minors; improve test matrix
|
77 |
|
|
- [Docs] document stringify option `allowDots` (#195)
|
78 |
|
|
- [Docs] add empty object and array values example (#195)
|
79 |
|
|
- [Docs] Fix minor inconsistency/typo (#192)
|
80 |
|
|
- [Docs] document stringify option `sort` (#191)
|
81 |
|
|
- [Refactor] `stringify`: throw faster with an invalid encoder
|
82 |
|
|
- [Refactor] remove unnecessary escapes (#184)
|
83 |
|
|
- Remove contributing.md, since `qs` is no longer part of `hapi` (#183)
|
84 |
|
|
|
85 |
|
|
## **6.3.0**
|
86 |
|
|
- [New] Add support for RFC 1738 (#174, #173)
|
87 |
|
|
- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159)
|
88 |
|
|
- [Fix] ensure `utils.merge` handles merging two arrays
|
89 |
|
|
- [Refactor] only constructors should be capitalized
|
90 |
|
|
- [Refactor] capitalized var names are for constructors only
|
91 |
|
|
- [Refactor] avoid using a sparse array
|
92 |
|
|
- [Robustness] `formats`: cache `String#replace`
|
93 |
|
|
- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest`
|
94 |
|
|
- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix
|
95 |
|
|
- [Tests] flesh out arrayLimit/arrayFormat tests (#107)
|
96 |
|
|
- [Tests] skip Object.create tests when null objects are not available
|
97 |
|
|
- [Tests] Turn on eslint for test files (#175)
|
98 |
|
|
|
99 |
|
|
## **6.2.3**
|
100 |
|
|
- [Fix] follow `allowPrototypes` option during merge (#201, #200)
|
101 |
|
|
- [Fix] chmod a-x
|
102 |
|
|
- [Fix] support keys starting with brackets (#202, #200)
|
103 |
|
|
- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
|
104 |
|
|
|
105 |
|
|
## **6.2.2**
|
106 |
|
|
- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
|
107 |
|
|
|
108 |
|
|
## **6.2.1**
|
109 |
|
|
- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
|
110 |
|
|
- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call`
|
111 |
|
|
- [Tests] remove `parallelshell` since it does not reliably report failures
|
112 |
|
|
- [Tests] up to `node` `v6.3`, `v5.12`
|
113 |
|
|
- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv`
|
114 |
|
|
|
115 |
|
|
## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed)
|
116 |
|
|
- [New] pass Buffers to the encoder/decoder directly (#161)
|
117 |
|
|
- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160)
|
118 |
|
|
- [Fix] fix compacting of nested sparse arrays (#150)
|
119 |
|
|
|
120 |
|
|
## **6.1.2
|
121 |
|
|
- [Fix] follow `allowPrototypes` option during merge (#201, #200)
|
122 |
|
|
- [Fix] chmod a-x
|
123 |
|
|
- [Fix] support keys starting with brackets (#202, #200)
|
124 |
|
|
- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
|
125 |
|
|
|
126 |
|
|
## **6.1.1**
|
127 |
|
|
- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
|
128 |
|
|
|
129 |
|
|
## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed)
|
130 |
|
|
- [New] allowDots option for `stringify` (#151)
|
131 |
|
|
- [Fix] "sort" option should work at a depth of 3 or more (#151)
|
132 |
|
|
- [Fix] Restore `dist` directory; will be removed in v7 (#148)
|
133 |
|
|
|
134 |
|
|
## **6.0.4**
|
135 |
|
|
- [Fix] follow `allowPrototypes` option during merge (#201, #200)
|
136 |
|
|
- [Fix] chmod a-x
|
137 |
|
|
- [Fix] support keys starting with brackets (#202, #200)
|
138 |
|
|
- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
|
139 |
|
|
|
140 |
|
|
## **6.0.3**
|
141 |
|
|
- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
|
142 |
|
|
- [Fix] Restore `dist` directory; will be removed in v7 (#148)
|
143 |
|
|
|
144 |
|
|
## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed)
|
145 |
|
|
- Revert ES6 requirement and restore support for node down to v0.8.
|
146 |
|
|
|
147 |
|
|
## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed)
|
148 |
|
|
- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json
|
149 |
|
|
|
150 |
|
|
## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed)
|
151 |
|
|
- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4
|
152 |
|
|
|
153 |
|
|
## **5.2.1**
|
154 |
|
|
- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
|
155 |
|
|
|
156 |
|
|
## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed)
|
157 |
|
|
- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string
|
158 |
|
|
|
159 |
|
|
## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed)
|
160 |
|
|
- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional
|
161 |
|
|
- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify
|
162 |
|
|
|
163 |
|
|
## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed)
|
164 |
|
|
- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false
|
165 |
|
|
- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm
|
166 |
|
|
|
167 |
|
|
## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed)
|
168 |
|
|
- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional
|
169 |
|
|
|
170 |
|
|
## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed)
|
171 |
|
|
- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation"
|
172 |
|
|
|
173 |
|
|
## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed)
|
174 |
|
|
- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties
|
175 |
|
|
- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost
|
176 |
|
|
- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing
|
177 |
|
|
- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object
|
178 |
|
|
- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option
|
179 |
|
|
- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects.
|
180 |
|
|
- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47
|
181 |
|
|
- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986
|
182 |
|
|
- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign
|
183 |
|
|
- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute
|
184 |
|
|
|
185 |
|
|
## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed)
|
186 |
|
|
- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function
|
187 |
|
|
|
188 |
|
|
## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed)
|
189 |
|
|
- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option
|
190 |
|
|
|
191 |
|
|
## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed)
|
192 |
|
|
- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57
|
193 |
|
|
- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader
|
194 |
|
|
|
195 |
|
|
## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed)
|
196 |
|
|
- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object
|
197 |
|
|
|
198 |
|
|
## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed)
|
199 |
|
|
- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError".
|
200 |
|
|
|
201 |
|
|
## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed)
|
202 |
|
|
- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46
|
203 |
|
|
|
204 |
|
|
## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed)
|
205 |
|
|
- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer?
|
206 |
|
|
- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45
|
207 |
|
|
- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39
|
208 |
|
|
|
209 |
|
|
## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed)
|
210 |
|
|
- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number
|
211 |
|
|
|
212 |
|
|
## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed)
|
213 |
|
|
- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array
|
214 |
|
|
- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x
|
215 |
|
|
|
216 |
|
|
## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed)
|
217 |
|
|
- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value
|
218 |
|
|
- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty
|
219 |
|
|
- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver?
|
220 |
|
|
|
221 |
|
|
## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed)
|
222 |
|
|
- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31
|
223 |
|
|
- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects
|
224 |
|
|
|
225 |
|
|
## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed)
|
226 |
|
|
- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present
|
227 |
|
|
- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays
|
228 |
|
|
- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge
|
229 |
|
|
- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters?
|
230 |
|
|
|
231 |
|
|
## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed)
|
232 |
|
|
- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter
|
233 |
|
|
|
234 |
|
|
## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed)
|
235 |
|
|
- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit?
|
236 |
|
|
- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit
|
237 |
|
|
- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20
|
238 |
|
|
|
239 |
|
|
## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed)
|
240 |
|
|
- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values
|
241 |
|
|
|
242 |
|
|
## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed)
|
243 |
|
|
- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters
|
244 |
|
|
- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block
|
245 |
|
|
|
246 |
|
|
## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed)
|
247 |
|
|
- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument
|
248 |
|
|
- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed
|
249 |
|
|
|
250 |
|
|
## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed)
|
251 |
|
|
- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted
|
252 |
|
|
- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null
|
253 |
|
|
- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README
|
254 |
|
|
|
255 |
|
|
## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed)
|
256 |
|
|
- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index
|