digitalbazaar / cborld

A Javascript CBOR-LD processor for web browsers and Node.js apps.
https://json-ld.github.io/cbor-ld-spec/
BSD 3-Clause "New" or "Revised" License
18 stars 12 forks source link

Replace/rework node.js document loader #15

Closed dlongley closed 3 years ago

dlongley commented 3 years ago

The current document loader does some bespoke on-disk caching. This should be reworked or moved outside of the core module as an optional module -- and its implementation should be replaced with something less custom, if we decide we want to keep using it. It is a premature optimization at this point and may create a number of foreseen issues (inability to invalidate caches, etc.) and unforeseen issues that other utility modules we could make use of may help us mitigate.

dlongley commented 3 years ago

Note: Additionally, the loader does not work in the browser -- but this should be addressed separately.

dlongley commented 3 years ago

Fixed. Also see #35 for moving what remains of the old loader to another package.