Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The previous version of Faustwasm only supported using local files as imports. The goal was to extend its capabilities to support both HTTP/HTTPS and pkgUrl imports.
This was achieved by transitioning from using the libcurl library for downloading files to using XMLHttpRequest in browser environments. Since XMLHttpRequest isn't defined in Node.js, an external library, "xmlhttprequest," was used to ensure compatibility.
Note: When bundling for the web, you might encounter errors indicating that HTTP library doesn't exist. This is normal because the library is only required if the environment is Node.js, so it isn't an actual error.
As a result, Faustwasm now allows dependencies on packages from the registry and libraries served via HTTP and HTTPS protocols.