Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 4, 2021

Bumps polka from 1.0.0-next.14 to 1.0.0-next.22.

Release notes

Sourced from polka's releases.

v1.0.0-next.22

Patches

  • (polka) Ensure error.status is numeric before assigning as status code (#178): 8448ac0 Thank you @​lovasoa

  • (polka) Ensure error.status is 3-digit status code: 561558b

v1.0.0-next.21

Breaking

  • (polka) Remove code property support for next() errors: f95a5b4 Previously any errors or custom error-objects could use the code property to set the response status code. However, this could pose a problem with native Error types that set an error code (eg, "ENOENT") which is an invalid status code. Now you must use the status property, which was always supported, but took a backseat to code's existence. Express also supports the status property.
    next({
    -- code: 422,
    ++ status: 422,
       message: 'Invalid content',
    });

Chores

  • (@polka/url) Accomodate an updated error message in test expectant: d30d448

v1.0.0-next.20

Breaking

  • (@polka/url): Remove toDecode parameter (#175): e45fe88 Apparently no one was using it except for me 😆 so I removed it as it was causing cache/mutation conflicts in rare cases downstream.

v1.0.0-next.17

Patches

  • (@polka/url): Ensure toDecode value is considered during req._parsedUrl cache match: f64b4bb For example, if you parse a URL without decoding it, that previous result should not be reused if you call parse again w/ toDecode set to true this time. Should be true for the reverse situation too.

v1.0.0-next.16

Breaking

  • No longer automatically decodes req.url and req.path values anymore (#172): 6ef32a6, 363e1f6 Previously, these properties had already passed through decodeURIComponent, which could affect Polka's own routing (#142) or external middleware that always expected req.path and/or req.url to remain percent-encoded.

    However, all req.params values are still decoded!

    This change aligns Polka with the default Express decoding behavior.

Chores

... (truncated)

Commits
  • ce5f91b v1.0.0-next.22
  • 561558b fix(polka): add min range check for err.status code;
  • 8448ac0 fix(polka): prevent non-numeric err.status value (#178)
  • 8d6e318 v1.0.0-next.21
  • d30d448 chore(url): accomodate updated error message
  • f95a5b4 break(polka): remove err.code as onError status fallback;
  • daa2c85 v1.0.0-next.20
  • e45fe88 break(url): remove toDecode parameter (#175)
  • 6ac6498 v1.0.0-next.19
  • 83937d5 chore(url): update docs
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [polka](https://github.com/lukeed/polka) from 1.0.0-next.14 to 1.0.0-next.22.
- [Release notes](https://github.com/lukeed/polka/releases)
- [Commits](lukeed/polka@v1.0.0-next.14...v1.0.0-next.22)

---
updated-dependencies:
- dependency-name: polka
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant