Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

v0.3.0-alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@pskfyi pskfyi released this 18 Dec 01:29
· 19 commits to main since this release
  • Updated globImport API to better work with Deno security policies

It was discovered after publishing that the previous API had unexpected behavior. In Deno, when remote library calls import() without a protocol (such as https) it prepends the import path with the library's hosted URL. So when importing from deno.land/x/, import("/foo") would import from "https://deno.land/x/pskfyi_deno_utils/foo" while in locally testing this behavior was not observed. This behavior can be avoided by having the consumer provide their own imports, meaning that file handlers must become a required argument.