You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe c370f4e marked the exported load function as deprecated in error. It looks like the documentation was simply copied from the export of a Cheerio constructor over to the load function, including a deprecation message that made sense if someone was using the constructor, but is confusing when load is used.
As an example the following code:
let $ = cheerio.load(pageHTML);
produces the following JSDoc documentation in code editors:
The default cheerio instance @deprecated - Use the function returned by load instead.
As best I can tell, this example uses the same method of loading html as is what is shown in the project documentation.
If this was not intentional, could we update the JSDoc to remove this deprecation warning and maybe update the function description?
If it is, could the project documentation we updated to indicated what is now the preferred method of loading and parsing HTML?
The text was updated successfully, but these errors were encountered:
Hi,
I believe c370f4e marked the exported load function as deprecated in error. It looks like the documentation was simply copied from the export of a
Cheerio
constructor over to the load function, including a deprecation message that made sense if someone was using the constructor, but is confusing whenload
is used.As an example the following code:
produces the following JSDoc documentation in code editors:
As best I can tell, this example uses the same method of loading html as is what is shown in the project documentation.
If this was not intentional, could we update the JSDoc to remove this deprecation warning and maybe update the function description?
If it is, could the project documentation we updated to indicated what is now the preferred method of loading and parsing HTML?
The text was updated successfully, but these errors were encountered: