@atlas.js/component
Advanced tools
Comparing version 1.1.0 to 1.2.0-alpha.a596c671
@@ -6,2 +6,21 @@ # Change Log | ||
<a name="1.2.0-alpha.a596c671"></a> | ||
# 1.2.0-alpha.a596c671 (2018-05-14) | ||
### Features | ||
* **atlas:** allow components to define their config schema 💪 ([ecd54d8](https://github.com/strvcom/atlas.js/commit/ecd54d8)), closes [#28](https://github.com/strvcom/atlas.js/issues/28) | ||
* **atlas:** Legendary: overhaul Hooks ([7710edd](https://github.com/strvcom/atlas.js/commit/7710edd)), closes [#35](https://github.com/strvcom/atlas.js/issues/35) [#34](https://github.com/strvcom/atlas.js/issues/34) | ||
* **component:** Drop support for the old resolve constructor param ([394f65d](https://github.com/strvcom/atlas.js/commit/394f65d)) | ||
### BREAKING CHANGES | ||
* **atlas:** | ||
* **component:** | ||
<a name="1.1.0"></a> | ||
@@ -8,0 +27,0 @@ # [1.1.0](https://github.com/strvcom/atlas.js/compare/@atlas.js/component@1.0.1...@atlas.js/component@1.1.0) (2017-12-13) |
{ | ||
"name": "@atlas.js/component", | ||
"description": "The main class from which all other components inherit for @atlas.js. You should not need to use this class directly - it is used internally.", | ||
"version": "1.1.0", | ||
"version": "1.2.0-alpha.a596c671", | ||
"author": "Robert Rossmann <robert.rossmann@strv.com>", | ||
@@ -16,2 +16,5 @@ "bugs": "https://github.com/strvcom/atlas.js/issues", | ||
"main": "src", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
@@ -18,0 +21,0 @@ "type": "git", |
@@ -10,24 +10,10 @@ "use strict"; | ||
constructor(options = {}) { | ||
Object.defineProperty(this, "atlas", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: null | ||
}); | ||
Object.defineProperty(this, "log", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: null | ||
}); | ||
Object.defineProperty(this, "config", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: {} | ||
}); | ||
this.atlas = null; | ||
this.log = null; | ||
this.config = {}; | ||
this.atlas = options.atlas; | ||
this.log = options.log; | ||
this.config = options.config || {}; | ||
this.component = options.component || options.resolve; | ||
this.component = options.component; | ||
this.dispatch = options.dispatch; | ||
} | ||
@@ -37,16 +23,7 @@ | ||
Object.defineProperty(Component, "defaults", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: {} | ||
}); | ||
Object.defineProperty(Component, "requires", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: [] | ||
}); | ||
Component.config = {}; | ||
Component.defaults = {}; | ||
Component.requires = []; | ||
var _default = Component; | ||
exports.default = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4Lm1qcyJdLCJuYW1lcyI6WyJDb21wb25lbnQiLCJjb25zdHJ1Y3RvciIsIm9wdGlvbnMiLCJhdGxhcyIsImxvZyIsImNvbmZpZyIsImNvbXBvbmVudCIsInJlc29sdmUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSxNQUFNQSxTQUFOLENBQWdCO0FBUWRDLGNBQVlDLFVBQVUsRUFBdEIsRUFBMEI7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLGFBSmxCO0FBSWtCO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSxhQUhwQjtBQUdvQjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsYUFGakI7QUFFaUI7QUFDeEIsU0FBS0MsS0FBTCxHQUFhRCxRQUFRQyxLQUFyQjtBQUNBLFNBQUtDLEdBQUwsR0FBV0YsUUFBUUUsR0FBbkI7QUFDQSxTQUFLQyxNQUFMLEdBQWNILFFBQVFHLE1BQVIsSUFBa0IsRUFBaEM7QUFFQSxTQUFLQyxTQUFMLEdBQWlCSixRQUFRSSxTQUFSLElBQXFCSixRQUFRSyxPQUE5QztBQUNEOztBQWRhOztzQkFBVlAsUzs7OztTQUNjOztzQkFEZEEsUzs7OztT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FLRixLQUFMLEdBQWFELFFBQVFDLEtBQXJCO0FBQ0EsU0FBS0MsR0FBTCxHQUFXRixRQUFRRSxHQUFuQjtBQUNBLFNBQUtDLE1BQUwsR0FBY0gsUUFBUUcsTUFBUixJQUFrQixFQUFoQztBQUNBLFNBQUtDLFNBQUwsR0FBaUJKLFFBQVFJLFNBQXpCO0FBQ0EsU0FBS0MsUUFBTCxHQUFnQkwsUUFBUUssUUFBeEI7QUFDRDs7QUFqQmE7O0FBQVZQLFMsQ0FDR0ssTSxHQUFTLEU7QUFEWkwsUyxDQUlHUSxRLEdBQVcsRTtBQUpkUixTLENBS0dTLFEsR0FBVyxFO2VBZUxULFMiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBDb21wb25lbnQge1xuICBzdGF0aWMgY29uZmlnID0ge31cblxuICAvLyBAREVQUkVDQVRFRDogVXNlIHN0YXRpYyBjb25maWcgYXMgSlNPTiBTY2hlbWFcbiAgc3RhdGljIGRlZmF1bHRzID0ge31cbiAgc3RhdGljIHJlcXVpcmVzID0gW11cblxuICBhdGxhcyA9IG51bGxcbiAgbG9nID0gbnVsbFxuICBjb25maWcgPSB7fVxuXG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMgPSB7fSkge1xuICAgIHRoaXMuYXRsYXMgPSBvcHRpb25zLmF0bGFzXG4gICAgdGhpcy5sb2cgPSBvcHRpb25zLmxvZ1xuICAgIHRoaXMuY29uZmlnID0gb3B0aW9ucy5jb25maWcgfHwge31cbiAgICB0aGlzLmNvbXBvbmVudCA9IG9wdGlvbnMuY29tcG9uZW50XG4gICAgdGhpcy5kaXNwYXRjaCA9IG9wdGlvbnMuZGlzcGF0Y2hcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDb21wb25lbnRcbiJdfQ== |
@@ -14,2 +14,6 @@ "use strict"; | ||
}); | ||
it('has a static config property with an empty object', () => { | ||
expect(_.default.config).to.be.an('object'); | ||
expect(Object.keys(_.default.config)).to.have.length(0); | ||
}); | ||
it('has a static defaults property with an empty object', () => { | ||
@@ -50,3 +54,12 @@ expect(_.default.defaults).to.be.an('object'); | ||
}); | ||
it('saves the dispatch function given on constructor to itself', () => { | ||
const dispatch = () => {}; | ||
const component = new _.default({ | ||
dispatch | ||
}); | ||
expect(component).itself.to.respondTo('dispatch'); | ||
expect(component.dispatch).to.eql(dispatch); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwaS50ZXN0Lm1qcyJdLCJuYW1lcyI6WyJkZXNjcmliZSIsIml0IiwiZXhwZWN0IiwidG8iLCJiZSIsImEiLCJub3QiLCJ0aHJvdyIsImRlZmF1bHRzIiwiYW4iLCJPYmplY3QiLCJrZXlzIiwiaGF2ZSIsImxlbmd0aCIsInJlcXVpcmVzIiwiYXRsYXMiLCJsb2ciLCJjb25maWciLCJjb21wb25lbnQiLCJwcm9wZXJ0eSIsInJlc29sdmUiLCJpdHNlbGYiLCJyZXNwb25kVG8iXSwibWFwcGluZ3MiOiI7O0FBQUE7Ozs7QUFFQUEsU0FBUywyQkFBVCxFQUFzQyxNQUFNO0FBQzFDQyxLQUFHLFFBQUgsRUFBYSxNQUFNO0FBQ2pCQyxzQkFBa0JDLEVBQWxCLENBQXFCQyxFQUFyQixDQUF3QkMsQ0FBeEIsQ0FBMEIsVUFBMUI7QUFDRCxHQUZEO0FBSUFKLEtBQUcsb0JBQUgsRUFBeUIsTUFBTTtBQUM3QkMsV0FBTyxNQUFNLGVBQWIsRUFBOEJDLEVBQTlCLENBQWlDRyxHQUFqQyxDQUFxQ0MsS0FBckM7QUFDRCxHQUZEO0FBSUFOLEtBQUcscURBQUgsRUFBMEQsTUFBTTtBQUM5REMsV0FBTyxVQUFVTSxRQUFqQixFQUEyQkwsRUFBM0IsQ0FBOEJDLEVBQTlCLENBQWlDSyxFQUFqQyxDQUFvQyxRQUFwQztBQUNBUCxXQUFPUSxPQUFPQyxJQUFQLENBQ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9KVxuXG4gIGl0KCdzYXZlcyBhdGxhcywgbG9nIGFuZCBjb25maWcgb2JqZWN0cyBnaXZlbiBvbiBjb25zdHJ1Y3RvciB0byBpdHNlbGYnLCAoKSA9PiB7XG4gICAgY29uc3QgYXRsYXMgPSB7IGF0bGFzOiB0cnVlIH1cbiAgICBjb25zdCBsb2cgPSB7IGxvZzogdHJ1ZSB9XG4gICAgY29uc3QgY29uZmlnID0geyBjb25maWc6IHRydWUgfVxuICAgIGNvbnN0IGNvbXBvbmVudCA9IG5ldyBDb21wb25lbnQoe1xuICAgICAgYXRsYXMsXG4gICAgICBsb2csXG4gICAgICBjb25maWcsXG4gICAgfSlcblxuICAgIGV4cGVjdChjb21wb25lbnQpLnRvLmhhdmUucHJvcGVydHkoJ2F0bGFzJywgYXRsYXMpXG4gICAgZXhwZWN0KGNvbXBvbmVudCkudG8uaGF2ZS5wcm9wZXJ0eSgnbG9nJywgbG9nKVxuICAgIGV4cGVjdChjb21wb25lbnQpLnRvLmhhdmUucHJvcGVydHkoJ2NvbmZpZycsIGNvbmZpZylcbiAgfSlcblxuICBpdCgnc2F2ZXMgdGhlIGNvbXBvbmVudCBmdW5jdGlvbiBnaXZlbiBvbiBjb25zdHJ1Y3RvciB0byBpdHNlbGYnLCAoKSA9PiB7XG4gICAgY29uc3QgcmVzb2x2ZSA9ICgpID0+IHt9XG4gICAgY29uc3QgY29tcG9uZW50ID0gbmV3IENvbXBvbmVudCh7XG4gICAgICBjb21wb25lbnQ6IHJlc29sdmUsXG4gICAgfSlcblxuICAgIGV4cGVjdChjb21wb25lbnQpLml0c2VsZi50by5yZXNwb25kVG8oJ2NvbXBvbmVudCcpXG4gIH0pXG59KVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwaS50ZXN0Lm1qcyJdLCJuYW1lcyI6WyJkZXNjcmliZSIsIml0IiwiZXhwZWN0IiwiQ29tcG9uZW50IiwidG8iL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xvZycsIGxvZylcbiAgICBleHBlY3QoY29tcG9uZW50KS50by5oYXZlLnByb3BlcnR5KCdjb25maWcnLCBjb25maWcpXG4gIH0pXG5cbiAgaXQoJ3NhdmVzIHRoZSBjb21wb25lbnQgZnVuY3Rpb24gZ2l2ZW4gb24gY29uc3RydWN0b3IgdG8gaXRzZWxmJywgKCkgPT4ge1xuICAgIGNvbnN0IHJlc29sdmUgPSAoKSA9PiB7fVxuICAgIGNvbnN0IGNvbXBvbmVudCA9IG5ldyBDb21wb25lbnQoe1xuICAgICAgY29tcG9uZW50OiByZXNvbHZlLFxuICAgIH0pXG5cbiAgICBleHBlY3QoY29tcG9uZW50KS5pdHNlbGYudG8ucmVzcG9uZFRvKCdjb21wb25lbnQnKVxuICB9KVxuXG4gIGl0KCdzYXZlcyB0aGUgZGlzcGF0Y2ggZnVuY3Rpb24gZ2l2ZW4gb24gY29uc3RydWN0b3IgdG8gaXRzZWxmJywgKCkgPT4ge1xuICAgIGNvbnN0IGRpc3BhdGNoID0gKCkgPT4ge31cbiAgICBjb25zdCBjb21wb25lbnQgPSBuZXcgQ29tcG9uZW50KHsgZGlzcGF0Y2ggfSlcblxuICAgIGV4cGVjdChjb21wb25lbnQpLml0c2VsZi50by5yZXNwb25kVG8oJ2Rpc3BhdGNoJylcbiAgICBleHBlY3QoY29tcG9uZW50LmRpc3BhdGNoKS50by5lcWwoZGlzcGF0Y2gpXG4gIH0pXG59KVxuIl19 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
16081
143
1