Releases: adonisjs/http-server
Releases · adonisjs/http-server
Fixing the exception handler behavior
Updating underlying dependencies
- chore(package): update dependencies 53de610
Adding hasValidSignature to request to verify signedUrls
Adding support for makeUrl and makeSignedUrl in router
Migrating to AdonisJs
Commits:
- chore: update fold version to latest a2c7654
- chore(package): update utils packages 24028a8
- docs(readme): update links to adonisjs instead poppinss c8d34f7
- feat: adding providers, cleaning up types faa2a76
- chore(package): update dependencies 9839db8
- feat: add request and response and get rid of them as dependencies 24cb802
- feat: adding benchmarks ef3c3d4
- test: add test around an edge case 865a599
- refactor: cleaning up server code to be more coupled to it's internals 57cb654
- refactor: cleaningup types to remove generics a805a98
Commit Range:
v1.2.3...master
Updating underlying dependencies
- chore(package): update dependencies 2ad3416
Upgrading response package
- chore(package): update dependencies 1942d8a
Profiling request and internal actions
Making router agnostic about making urls
Earlier the router was generating fully qualified URLS for a given domain. Instead, now it becomes agnostic about it and instead exposes the API to lookup routes and a helper method to make url from the looked up route.
Earlier
router.get('/posts/:id', handler).domain('blog.adonisjs.com')
router.makeUrl('/posts/:id', { params: { id: 1 } })
// returns: //blog.adonisjs.com/posts/1
Now
import { makeUrl } from '@poppinss/http-server'
const route = router.lookup('/posts/:id')
makeUrl(route.pattern, { params: { id: 1 } })
// returns /posts/1
With the newer API you can decide
- If you want to append a domain or not.
- Decide which protocol to use