@tpluscode/rdfine
Advanced tools
Comparing version 0.4.13 to 0.4.14
@@ -6,2 +6,14 @@ # Change Log | ||
## [0.4.14](https://github.com/tpluscode/rdfine/compare/@tpluscode/rdfine@0.4.13...@tpluscode/rdfine@0.4.14) (2020-05-06) | ||
### Bug Fixes | ||
* **core:** slight perf boost by skipping unnecessary mixins ([101f7a3](https://github.com/tpluscode/rdfine/commit/101f7a3c8bfd186d082dee117ea7d9a37d707de5)) | ||
* **core:** type cache incorrectly created ([21e16e6](https://github.com/tpluscode/rdfine/commit/21e16e6fac15a9adfa43a429bc65bbe5ab5e4d89)) | ||
## [0.4.13](https://github.com/tpluscode/rdfine/compare/@tpluscode/rdfine@0.4.12...@tpluscode/rdfine@0.4.13) (2020-05-05) | ||
@@ -8,0 +20,0 @@ |
@@ -38,3 +38,3 @@ import cf from 'clownface'; | ||
} | ||
BaseClass = this.__getBaseClass(BaseClass, graphPointer.out(rdf.type).terms); | ||
BaseClass = this.__getBaseClass(BaseClass, graphPointer.out(rdf.type).values); | ||
const entity = new BaseClass(term); | ||
@@ -46,3 +46,3 @@ const mixins = [...this.__mixins].reduce((selected, next) => { | ||
return selected; | ||
}, new Set([...explicitMixins, ...BaseClass.__mixins])); | ||
}, new Set(explicitMixins)); | ||
const Type = this.__extend(BaseClass, [...mixins]); | ||
@@ -58,3 +58,3 @@ return createProxy(new Type(term, {}, options.parent)); | ||
const rdfTypeMixins = types.reduce((mixins, type) => { | ||
const typeMixins = this.__typeMixins.get(type.value); | ||
const typeMixins = this.__typeMixins.get(type); | ||
if (typeMixins) { | ||
@@ -61,0 +61,0 @@ typeMixins.forEach(m => mixins.add(m)); |
{ | ||
"name": "@tpluscode/rdfine", | ||
"version": "0.4.13", | ||
"version": "0.4.14", | ||
"description": "RDF/JS idiomatic, native, effective", | ||
@@ -72,3 +72,3 @@ "main": "main.js", | ||
}, | ||
"gitHead": "4b9f401967395d735089c936ee913d67101f7acb" | ||
"gitHead": "e616534d9c1ba9d69eb179013141afaa09bd403f" | ||
} |
68893