10000 Comparing v11.0.1...v12.0.0 · koajs/router · GitHub
[go: up one dir, main page]

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: koajs/router
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.0.1
Choose a base ref
...
head repository: koajs/router
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v12.0.0
Choose a head ref
  • 3 commits
  • 5 files changed
  • 2 contributors

Commits on Jul 19, 2022

  1. URL-encode path parameters for Router.url (#116)

    The main breaking change from v8.x to v9.x was an upgrade to `path-to-regex`. [That PR](#71) alluded to a breaking change in encoding. Namely, parameters were not URL-encoded: parameters with safe special characters (like spaces) were not percent-encoded, and parameters with special characters that mean something in a URL, such as slashes (path separators) and question marks (query string delimiter).
    
    The motivation for this PR is to make URL-encoding be the default since typically the parameters provided to `Router.url` are plain, unencoded values. Should someone need an escape hatch, they could pass in `{ encode: null }` (I think) to disable the automatic encoding.
    
    Updated tests and docs.
    ide authored Jul 19, 2022
    Configuration menu
    Copy the full SHA
    94039ef View commit details
    Browse the repository at this point in the history
  2. chore: fixed linting

    titanism committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    8042eb6 View commit details
    Browse the repository at this point in the history
  3. 12.0.0

    titanism committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    c3bbb65 View commit details
    Browse the repository at this point in the history
Loading
0