addDocuments({documents})
to add many URL to document mappings from an iterable object.
addStatic
deep clones documents to avoid shared document mutation issues.- The clone adds potential time and memory use considerations depending on
the frequency of
addStatic
calls and on document size. For expected use cases this should be minimal. - structuredClone is used and may not be available in old browsers and Node.js before v17. Use a polyfill if needed.
- The clone adds potential time and memory use considerations depending on
the frequency of
- BREAKING: Convert to module (ESM).
- BREAKING: Drop support for node <= 14.
- Update dev deps to latest.
- Use
[email protected]
for coverage.
- Only set
static
tag for statically loaded contexts.
- Adds
setProtocolHandler()
method (and a did-specific alias for it,setDidResolver()
).
- Set
static
tag for statically loaded contexts.
- See git history for changes.