Sorry, the diff of this file is not supported yet
+15
-0
| ## [**3.1.0**](https://github.com/hapijs/qs/issues?milestone=24&state=open) | ||
| - [**#89**](https://github.com/hapijs/qs/issues/89) Add option to disable "Transform dot notation to bracket notation" | ||
| ## [**3.0.0**](https://github.com/hapijs/qs/issues?milestone=23&state=closed) | ||
| - [**#77**](https://github.com/hapijs/qs/issues/77) Perf boost | ||
| - [**#60**](https://github.com/hapijs/qs/issues/60) Add explicit option to disable array parsing | ||
| - [**#80**](https://github.com/hapijs/qs/issues/80) qs.parse silently drops properties | ||
| - [**#74**](https://github.com/hapijs/qs/issues/74) Bad parse when turning array into object | ||
| - [**#81**](https://github.com/hapijs/qs/issues/81) Add a `filter` option | ||
| - [**#68**](https://github.com/hapijs/qs/issues/68) Fixed issue with recursion and passing strings into objects. | ||
| - [**#66**](https://github.com/hapijs/qs/issues/66) Add mixed array and object dot notation support Closes: #47 | ||
| - [**#76**](https://github.com/hapijs/qs/issues/76) RFC 3986 | ||
| - [**#85**](https://github.com/hapijs/qs/issues/85) No equal sign | ||
| - [**#84**](https://github.com/hapijs/qs/issues/84) update license attribute | ||
| ## [**2.4.1**](https://github.com/hapijs/qs/issues?milestone=20&state=closed) | ||
@@ -3,0 +18,0 @@ - [**#73**](https://github.com/hapijs/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function |
+4
-1
@@ -95,3 +95,5 @@ // Load modules | ||
| key = key.replace(/\.([^\.\[]+)/g, '[$1]'); | ||
| if (options.allowDots) { | ||
| key = key.replace(/\.([^\.\[]+)/g, '[$1]'); | ||
| } | ||
@@ -147,2 +149,3 @@ // The regex chunks | ||
| options.parseArrays = options.parseArrays !== false; | ||
| options.allowDots = options.allowDots !== false; | ||
| options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : internals.parameterLimit; | ||
@@ -149,0 +152,0 @@ options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : internals.strictNullHandling; |
+1
-1
| { | ||
| "name": "qs", | ||
| "version": "3.0.0", | ||
| "version": "3.1.0", | ||
| "description": "A querystring parser that supports nesting and arrays, with a depth limit", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/hapijs/qs", |
+7
-0
@@ -50,2 +50,9 @@ /* eslint no-extend-native:0 */ | ||
| it('allows disabling dot notation', function (done) { | ||
| expect(Qs.parse('a.b=c')).to.deep.equal({ a: { b: 'c' } }, { prototype: false }); | ||
| expect(Qs.parse('a.b=c', { allowDots: false })).to.deep.equal({ 'a.b': 'c' }, { prototype: false }); | ||
| done(); | ||
| }); | ||
| it('parses a single nested string', function (done) { | ||
@@ -52,0 +59,0 @@ |
55800
2.76%20
5.26%921
0.88%