Skip to content
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: replace legacy url API #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kpi311
Copy link
Collaborator

@kpi311 kpi311 commented Apr 2, 2021

描述

将旧的URL API替换为WHATWG URL API

原因

根据Nodejs.org上的文档,旧的URL API在Node.js v11.0.0版本被弃用,直到v15.13.0才被撤销弃用,改为Legacy。[1]
我Windows上的VS Code版本号为v1.55.0,其Node.js版本号为v12.18.3;
我Deepin v20.1上的VS Code版本号为v.1.51.0,其Node.js版本号为v12.14.1,均适用本次修改。

新的问题

URL类不支持直接解析纯相对路径(即只提供“/song/:id"),我在runtime.js中只做了临时处理。😅
是不是要先开个issue讨论?😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant