vbenjs / vite-plugin-html

A vite plugin for processing html. It is developed based on lodash template
MIT License
554 stars 92 forks source link

Remove url.parse / 删除已弃用的对 url.parse 的调用 #148

Closed mhornbacher closed 2 months ago

mhornbacher commented 3 months ago

这个问题处理了NodeJS中的下列弃用警告,通过使用URL类而不是全局解析方法来处理。两者都有pathname属性,这是这里所需的。(This handles the following deprecation in NodeJS by using the URL class rather than the global parse method which both have the pathname attribute which is what is required here.)

[DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.

修复 #149 (Fixes #149)

mhornbacher commented 3 months ago

@avi-kiddom I think your approval hid the PR from the contributors :(

mhornbacher commented 2 months ago

Thank you!!!