70bd6342d801bcc9d7d0bb266fdec79fc161f8b7ed66945665a06b574cedd06dd94e655549840cbda916c5c7816e9150e78954522e05d397e73a5d40f0fa5d 14 KB

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