Skip to content

Upgrading to 0.17.3 ​

Deprecations ​

URL template helpers ​

Replace the path, query, and host helpers with withParams. The arguments remain the same.

ts
// Before
import { path } from '@kitbag/router'
const userPath = path('/users/[id]', { id: Number })

// After
import { withParams } from '@kitbag/router'
const userPath = withParams('/users/[id]', { id: Number })

The aliases are removed in 0.21.0. See Param Types.

Full release notes.