Skip to content

v2.0.0

Compare
Choose a tag to compare
@cat394 cat394 released this 18 Jul 05:58
· 143 commits to main since this release

Breaking Change!!

Due to my lack of understanding of query parameters, I used to generate the query parameters with the characters ?q= prepended, but I realized this was wrong and changed it to start with ?.

Example:

Previous:

const routeConfig = {
    productsSearch: {
        path: 'products/search/?q=size'
    }
}

// ... create link generator

link('productsSearch', null, { size: 'large' }) // result: '/products/search?q=size'

Now:

const routeConfig = {
    productsSearch: {
        path: 'products/search/?size'
    }
}

link('productsSearch', null, { size: 'large'}) // result: '/products/search?size=large