Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ljharb/qs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: eaabd05558b657c75a137caf2eb030e8e856b82f
Choose a base ref
...
head repository: ljharb/qs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 298bfa55d6db00ddea78dd0333509aadf9bb3077
Choose a head ref

Commits on Dec 5, 2017

  1. [Fix] correctly parse nested arrays

    Fixes #212.
    Wes Roberts authored and ljharb committed Dec 5, 2017
    Copy the full SHA
    fafc2d2 View commit details

Commits on May 13, 2018

  1. Copy the full SHA
    1bfe04c View commit details
  2. [Tests] up to node v10.1, v9.11, v8.11, v6.14, v4.9; pin …

    …included builds to LTS
    ljharb committed May 13, 2018
    Copy the full SHA
    eee72e3 View commit details
  3. Copy the full SHA
    f85bce6 View commit details

Commits on Jul 26, 2018

  1. [refactor] stringify: Avoid arr = arr.concat(...), push to the exis…

    …ting instance (#269)
    papandreou authored and ljharb committed Jul 26, 2018
    Copy the full SHA
    55d217b View commit details

Commits on Sep 8, 2018

  1. Copy the full SHA
    b6956c9 View commit details

Commits on Sep 16, 2018

  1. [Fix] stringify: fix a crash with strictNullHandling and a custom…

    … `filter`/`serializeDate` (#279)
    Neaox authored and ljharb committed Sep 16, 2018
    Copy the full SHA
    c1c2a9d View commit details

Commits on Sep 17, 2018

  1. [Fix] utils: merge: fix crash when source is a truthy primitive…

    … & no options are provided
    ljharb committed Sep 17, 2018
    Copy the full SHA
    d1d1a97 View commit details

Commits on Jan 16, 2019

  1. Copy the full SHA
    107c302 View commit details

Commits on Jan 31, 2019

  1. Copy the full SHA
    ef27de4 View commit details

Commits on Feb 1, 2019

  1. Copy the full SHA
    49ad67f View commit details

Commits on Feb 3, 2019

  1. Copy the full SHA
    98c93d6 View commit details
  2. Copy the full SHA
    31bcb32 View commit details

Commits on Feb 14, 2019

  1. Copy the full SHA
    fd950b0 View commit details

Commits on Mar 29, 2019

  1. [Fix] fix for an impossible situation: when the formatter is called w…

    …ith a non-string value
    
    Note that all these tests passed already. Since the only time a
    formatter is called is in a context where it is concatenated with
    another string using `+`, this is a redundant step. However, for
    pedantic correctness and documentation, the contract for formatters is
    to always return a string.
    ljharb committed Mar 29, 2019
    Copy the full SHA
    45f6759 View commit details

Commits on Jun 26, 2019

  1. add FUNDING.yml

    This is an experiment; I intend to use 100% of funds to support the OSS community and my OSS projects' costs.
    ljharb committed Jun 26, 2019
    Copy the full SHA
    51b8a0b View commit details
  2. Copy the full SHA
    5639c20 View commit details

Commits on Mar 11, 2021

  1. [meta] fix README.md (#399)

    - `defaultEncoder`=> `defaultDecoder`
    mizozobu authored and ljharb committed Mar 11, 2021
    Copy the full SHA
    12ac1c4 View commit details

Commits on Sep 1, 2021

  1. Copy the full SHA
    1072d57 View commit details

Commits on Dec 27, 2021

  1. Copy the full SHA
    691e739 View commit details

Commits on Dec 28, 2021

  1. Copy the full SHA
    ed0f5dc View commit details

Commits on Jan 9, 2022

  1. Copy the full SHA
    0338716 View commit details

Commits on Jan 10, 2022

  1. [Dev Deps] backport from main

    ljharb committed Jan 10, 2022
    Copy the full SHA
    f814a7f View commit details
  2. v6.5.3

    ljharb committed Jan 10, 2022
    Copy the full SHA
    298bfa5 View commit details
Showing with 499 additions and 310 deletions.
  1. +14 −1 .editorconfig
  2. +0 −1 .eslintignore
  3. +21 −3 .eslintrc
  4. +12 −0 .github/FUNDING.yml
  5. +18 −0 .github/workflows/node-aught.yml
  6. +7 −0 .github/workflows/node-pretest.yml
  7. +18 −0 .github/workflows/node-tens.yml
  8. +15 −0 .github/workflows/rebase.yml
  9. +12 −0 .github/workflows/require-allow-edits.yml
  10. +3 −0 .gitignore
  11. +14 −4 .npmignore
  12. +13 −0 .nycrc
  13. +0 −167 .travis.yml
  14. +24 −0 CHANGELOG.md
  15. +0 −28 LICENSE
  16. +29 −0 LICENSE.md
  17. +54 −19 README.md
  18. +2 −2 component.json
  19. +35 −25 dist/qs.js
  20. +1 −1 lib/formats.js
  21. +6 −5 lib/parse.js
  22. +21 −14 lib/stringify.js
  23. +7 −5 lib/utils.js
  24. +18 −16 package.json
  25. +0 −15 test/.eslintrc
  26. +79 −4 test/parse.js
  27. +45 −0 test/stringify.js
  28. +31 −0 test/utils.js
15 changes: 14 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -7,11 +7,15 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 140
max_line_length = 160
quote_type = single

[test/*]
max_line_length = off

[LICENSE.md]
indent_size = off

[*.md]
max_line_length = off

@@ -28,3 +32,12 @@ indent_size = 2
[LICENSE]
indent_size = 2
max_line_length = off

[coverage/**/*]
indent_size = off
indent_style = off
indent = off
max_line_length = off

[.nycrc]
indent_style = tab
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

24 changes: 21 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -3,17 +3,35 @@

"extends": "@ljharb",

"ignorePatterns": [
"dist/",
],

"rules": {
"complexity": 0,
"consistent-return": 1,
"func-name-matching": 0,
"func-name-matching": 0,
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
"indent": [2, 4],
"max-lines-per-function": 0,
"max-params": [2, 12],
"max-statements": [2, 45],
"multiline-comment-style": 0,
"no-continue": 1,
"no-magic-numbers": 0,
"no-param-reassign": 1,
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
"operator-linebreak": [2, "before"],
}
},

"overrides": [
{
"files": "test/**",
"rules": {
"max-lines-per-function": 0,
"max-statements": 0,
"no-extend-native": 0,
"function-paren-newline": 0,
},
},
],
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: [ljharb]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/qs
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with a single custom sponsorship URL
18 changes: 18 additions & 0 deletions .github/workflows/node-aught.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Tests: node.js < 10'

on: [pull_request, push]

jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '< 10'
type: minors
command: npm run tests-only

node:
name: 'node < 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
7 changes: 7 additions & 0 deletions .github/workflows/node-pretest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'Tests: pretest/posttest'

on: [pull_request, push]

jobs:
tests:
uses: ljharb/actions/.github/workflows/pretest.yml@main
18 changes: 18 additions & 0 deletions .github/workflows/node-tens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Tests: node.js >= 10'

on: [pull_request, push]

jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '>= 10'
type: minors
command: npm run tests-only

node:
name: 'node >= 10'
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
15 changes: 15 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Automatic Rebase

on: [pull_request]

jobs:
_:
name: "Automatic Rebase"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/rebase@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/require-allow-edits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Require “Allow Edits”

on: [pull_request_target]

jobs:
_:
name: "Require “Allow Edits”"

runs-on: ubuntu-latest

steps:
- uses: ljharb/require-allow-edits@main
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -10,3 +10,6 @@ dist/*
yarn.lock
package-lock.json
npm-shrinkwrap.json

.nyc_output/
coverage/
18 changes: 14 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
bower.json
component.json
.npmignore
.travis.yml
# gitignore
npm-debug.log
node_modules
.DS_Store

# Only apps should have lockfiles
yarn.lock
package-lock.json
npm-shrinkwrap.json

.nyc_output/
coverage/

.github/workflows
13 changes: 13 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"lines": 86,
"statements": 85.93,
"functions": 82.43,
"branches": 76.06,
"exclude": [
"coverage",
"dist"
]
}
167 changes: 0 additions & 167 deletions .travis.yml

This file was deleted.

24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## **6.5.3**
- [Fix] `parse`: ignore `__proto__` keys (#428)
- [Fix]` `utils.merge`: avoid a crash with a null target and a truthy non-array source
- [Fix] correctly parse nested arrays
- [Fix] `stringify`: fix a crash with `strictNullHandling` and a custom `filter`/`serializeDate` (#279)
- [Fix] `utils`: `merge`: fix crash when `source` is a truthy primitive & no options are provided
- [Fix] when `parseArrays` is false, properly handle keys ending in `[]`
- [Fix] fix for an impossible situation: when the formatter is called with a non-string value
- [Fix] `utils.merge`: avoid a crash with a null target and an array source
- [Refactor] `utils`: reduce observable [[Get]]s
- [Refactor] use cached `Array.isArray`
- [Refactor] `stringify`: Avoid arr = arr.concat(...), push to the existing instance (#269)
- [Refactor] `parse`: only need to reassign the var once
- [Robustness] `stringify`: avoid relying on a global `undefined` (#427)
- [readme] remove travis badge; add github actions/codecov badges; update URLs
- [Docs] Clean up license text so it’s properly detected as BSD-3-Clause
- [Docs] Clarify the need for "arrayLimit" option
- [meta] fix README.md (#399)
- [meta] add FUNDING.yml
- [actions] backport actions from main
- [Tests] always use `String(x)` over `x.toString()`
- [Tests] remove nonexistent tape option
- [Dev Deps] backport from main

## **6.5.2**
- [Fix] use `safer-buffer` instead of `Buffer` constructor
- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
Loading