Upgrade url-pattern and support optional patterns.

`url-pattern@0.6.0` now supports optional patterns.