Closed Falx closed 2 years ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 1922210134: | 0.0% |
Covered Lines: | 1258 |
Relevant Lines: | 1258 |
Super, thanks!
Released as v5.1.0.
Purpose
This PR has two purposes:
Exposing information on instantiated resources
This allows users of Componentjs to query the instantiated registry for types. In our use case this allows us to discover certain instantiated classes that implement a given interface.
New public methods:
ComponentsManager#getInstantiatedResources(): Resource[]
ConfigConstructorPool#getInstanceRegistry(): Record<string, Promise<any>>
ConfigRegistry#getInstantiatedResource(term: RDF.Term): Resource
Fixed a bug
A bug was discovered where blankNodes and literal could overwrite eachother in the internal registry. This was fixed by replacing all indexing code of
resource.value
totermToString(resource.term)
and vice verca withstringToTerm(resourceId)
.A new dependency on
rdfjs-string
was added for that.