-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(utils, vue-app): use ufo
to parse queries and join urls
#8765
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #8765 +/- ##
==========================================
- Coverage 66.03% 66.02% -0.01%
==========================================
Files 92 92
Lines 4013 4012 -1
Branches 1105 1105
==========================================
- Hits 2650 2649 -1
Misses 1097 1097
Partials 266 266
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
packages/vue-app/template/server.js
Outdated
opts.query = stringify(opts.query) | ||
opts.path = opts.path + (opts.query ? '?' + opts.query : '') | ||
opts.path = withQuery(opts.path, opts.query) | ||
opts.query = stringifyQuery(opts.query || {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking createNext
it seems we no longer would need stringifing opts.query
(not used until res.end)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is very satisfying
packages/vue-app/template/server.js
Outdated
opts.query = stringify(opts.query) | ||
opts.path = opts.path + (opts.query ? '?' + opts.query : '') | ||
opts.path = withQuery(opts.path, opts.query) | ||
opts.query = stringifyQuery(opts.query || {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is very satisfying
Types of changes
Description
As we're already importing and using
ufo
, we can eliminate some of our homegrown URL tools. This PR (so far):urlJoin()
functions (duplicates) with theufo
equivalentclientUseUrl
feature flag from feat(vue-app): support configurable features #6287)Checklist: