Skip to content
Snippets Groups Projects
Commit 15d04f4d authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

Release 1.15.0

parent be7eb9c1
No related branches found
No related tags found
No related merge requests found
Showing
with 1987 additions and 4011 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -19,18 +19,6 @@ ...@@ -19,18 +19,6 @@
"theme_opts": { "theme_opts": {
"theme": "light", "theme": "light",
"title": "Monster", "title": "Monster",
"menu": [
{
"title": "schukai GmbH",
"link": "https://www.schukai.com/",
"target": "_blank"
},
{
"title": "NPM",
"link": "https://www.npmjs.com/package/@schukai/monster",
"target": "_blank"
}
],
"meta": [ "meta": [
{ {
"name": "author", "name": "author",
...@@ -54,6 +42,10 @@ ...@@ -54,6 +42,10 @@
"src": "https://code.jquery.com/jquery-3.5.1.js", "src": "https://code.jquery.com/jquery-3.5.1.js",
"integrity": "sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=", "integrity": "sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=",
"crossorigin": "anonymous" "crossorigin": "anonymous"
},
{
"src": "https://monsterjs.org/js/doc/monster-versions.js",
"crossorigin": "anonymous"
} }
], ],
"footer": "<a href='https://about.schukai.com/de/impressum/'>Imprint</a>", "footer": "<a href='https://about.schukai.com/de/impressum/'>Imprint</a>",
......
This diff is collapsed.
...@@ -20,11 +20,15 @@ ...@@ -20,11 +20,15 @@
"clean-jsdoc-theme": "^3.2.8", "clean-jsdoc-theme": "^3.2.8",
"crypt": "^0.0.2", "crypt": "^0.0.2",
"flow-bin": "^0.159.0", "flow-bin": "^0.159.0",
"fs": "^0.0.1-security",
"jsdoc": "^3.6.7", "jsdoc": "^3.6.7",
"jsdom": "^17.0.0", "jsdom": "^17.0.0",
"jsdom-global": "^3.0.2", "jsdom-global": "^3.0.2",
"uglify-js": "^3.14.1", "uglify-js": "^3.14.1",
"uglifycss": "^0.0.29", "uglifycss": "^0.0.29",
"url": "^0.11.0",
"url-exist": "~2.0.1",
"util": "^0.12.4",
"webpack": "^5.52.0", "webpack": "^5.52.0",
"webpack-cli": "^4.8.0" "webpack-cli": "^4.8.0"
} }
......
...@@ -2,6 +2,20 @@ ...@@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [1.15.0] - 2021-09-13
### Added
- [when changing the option attribute, the options should also change](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/50)
- [new PROPERTY_KEY_INTERNALDATA internals](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/52)
## Changed
- [improvement of the prox handling in the proxobserver](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/55)
- [move observedAttributes to customelements](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/54)
- [optimization of the extends handling in distinction to Object.assign](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/53)
- [change from Monster.assignToNamespace to assignToNamespace an import](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/51)
## [1.14.1] - 2021-09-12 ## [1.14.1] - 2021-09-12
### Fixed ### Fixed
......
...@@ -40,7 +40,7 @@ For some functions you need additional [polyfills](#polyfill). ...@@ -40,7 +40,7 @@ For some functions you need additional [polyfills](#polyfill).
<script type="module"> <script type="module">
import { import {
Monster Monster
} from 'https://unpkg.com/@schukai/monster@1.14.1/dist/modules/monster.js'; } from 'https://unpkg.com/@schukai/monster@1.15.0/dist/modules/monster.js';
let id = document.getElementById('version'); let id = document.getElementById('version');
id.innerHTML = Monster.getVersion(); id.innerHTML = Monster.getVersion();
</script> </script>
...@@ -51,8 +51,8 @@ For some functions you need additional [polyfills](#polyfill). ...@@ -51,8 +51,8 @@ For some functions you need additional [polyfills](#polyfill).
`nomodule` for backwards compatibility `nomodule` for backwards compatibility
``` ```
<script type="module" src="https://unpkg.com/@schukai/monster@1.14.1/dist/modules/monster.js"></script> <script type="module" src="https://unpkg.com/@schukai/monster@1.15.0/dist/modules/monster.js"></script>
<script nomodule src="https://unpkg.com/@schukai/monster@1.14.1/dist/monster.js"></script> <script nomodule src="https://unpkg.com/@schukai/monster@1.15.0/dist/monster.js"></script>
``` ```
### Polyfill ### Polyfill
...@@ -61,7 +61,7 @@ We do try to work around some browser bugs, but on the whole we don't use polyfi ...@@ -61,7 +61,7 @@ We do try to work around some browser bugs, but on the whole we don't use polyfi
However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased. However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased.
``` ```
<script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Array.isArray,Array.prototype.entries,Array.prototype.fill,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.map,Array.prototype.reduce,ArrayBuffer,console,DataView,document,DocumentFragment,Element,Event,globalThis,HTMLDocument,Intl,JSON,Map,Math.log2,Number.isInteger,Object.assign,Object.defineProperty,Object.entries,Object.freeze,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.keys,Promise,Reflect,Reflect.defineProperty,Reflect.get,Reflect.getOwnPropertyDescriptor,Reflect.setPrototypeOf,Set,String.prototype.trim,Symbol,Symbol.for,Symbol.iterator,Uint8Array,URL,WeakMap,WeakSet" <script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Array.isArray,Array.prototype.entries,Array.prototype.fill,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.map,Array.prototype.reduce,ArrayBuffer,DataView,document,DocumentFragment,Element,Event,globalThis,HTMLDocument,HTMLTemplateElement,Intl,JSON,Map,Math.log2,Number.isInteger,Object.assign,Object.defineProperty,Object.entries,Object.freeze,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.keys,Promise,Reflect,Reflect.defineProperty,Reflect.get,Reflect.getOwnPropertyDescriptor,Reflect.setPrototypeOf,Set,String.prototype.trim,Symbol,Symbol.for,Symbol.iterator,Uint8Array,URL,WeakMap,WeakSet"
crossorigin="anonymous" crossorigin="anonymous"
referrerpolicy="no-referrer"></script> referrerpolicy="no-referrer"></script>
``` ```
...@@ -78,7 +78,7 @@ After that, all classes are accessible via `MyMonster`. For example `MyMonster.g ...@@ -78,7 +78,7 @@ After that, all classes are accessible via `MyMonster`. For example `MyMonster.g
## Documentation ## Documentation
To check out docs and examples, visit [monsterjs.org/en/doc/1.14.1/](https://monsterjs.org/en/doc/1.14.1/). To check out docs and examples, visit [monsterjs.org/en/doc/1.15.0/](https://monsterjs.org/en/doc/1.15.0/).
## Questions ## Questions
......
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster}from"./namespace.js";const PROPERTY_KEY_OPTIONS="monsterOptions";export{Monster,PROPERTY_KEY_OPTIONS}; "use strict";import{Monster}from"./namespace.js";const PROPERTY_KEY_INTERNALDATA="monsterInternalData";export{Monster,PROPERTY_KEY_INTERNALDATA};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster}from"../namespace.js";import{Base}from"../types/base.js";class AbstractConstraint extends Base{constructor(){super()}isValid(s){return Promise.reject(s)}}Monster.assignToNamespace("Monster.Constraints",AbstractConstraint);export{Monster,AbstractConstraint}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{Base}from"../types/base.js";class AbstractConstraint extends Base{constructor(){super()}isValid(s){return Promise.reject(s)}}assignToNamespace("Monster.Constraints",AbstractConstraint);export{Monster,AbstractConstraint};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";class AbstractOperator extends AbstractConstraint{constructor(t,r){if(super(),!(t instanceof AbstractConstraint&&r instanceof AbstractConstraint))throw new TypeError("parameters must be from type AbstractConstraint");this.operantA=t,this.operantB=r}}Monster.assignToNamespace("Monster.Constraints",AbstractOperator);export{Monster,AbstractOperator}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractConstraint}from"./abstract.js";class AbstractOperator extends AbstractConstraint{constructor(t,r){if(super(),!(t instanceof AbstractConstraint&&r instanceof AbstractConstraint))throw new TypeError("parameters must be from type AbstractConstraint");this.operantA=t,this.operantB=r}}assignToNamespace("Monster.Constraints",AbstractOperator);export{Monster,AbstractOperator};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";import{AbstractOperator}from"./abstractoperator.js";class AndOperator extends AbstractOperator{isValid(t){return Promise.all([this.operantA.isValid(t),this.operantB.isValid(t)])}}Monster.assignToNamespace("Monster.Constraints",AndOperator);export{Monster,AndOperator}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractOperator}from"./abstractoperator.js";class AndOperator extends AbstractOperator{isValid(r){return Promise.all([this.operantA.isValid(r),this.operantB.isValid(r)])}}assignToNamespace("Monster.Constraints",AndOperator);export{Monster,AndOperator};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";class Invalid extends AbstractConstraint{isValid(t){return Promise.reject(t)}}Monster.assignToNamespace("Monster.Constraints",Invalid);export{Monster,Invalid}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractConstraint}from"./abstract.js";class Invalid extends AbstractConstraint{isValid(s){return Promise.reject(s)}}assignToNamespace("Monster.Constraints",Invalid);export{Monster,Invalid};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";import{isArray}from"../types/is.js";class IsArray extends AbstractConstraint{isValid(r){return isArray(r)?Promise.resolve(r):Promise.reject(r)}}Monster.assignToNamespace("Monster.Constraints",IsArray);export{Monster,IsArray}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractConstraint}from"./abstract.js";import{isArray}from"../types/is.js";class IsArray extends AbstractConstraint{isValid(s){return isArray(s)?Promise.resolve(s):Promise.reject(s)}}assignToNamespace("Monster.Constraints",IsArray);export{Monster,IsArray};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";import{isObject}from"../types/is.js";class IsObject extends AbstractConstraint{isValid(s){return isObject(s)?Promise.resolve(s):Promise.reject(s)}}Monster.assignToNamespace("Monster.Constraints",IsObject);export{Monster,IsObject}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractConstraint}from"./abstract.js";import{isObject}from"../types/is.js";class IsObject extends AbstractConstraint{isValid(s){return isObject(s)?Promise.resolve(s):Promise.reject(s)}}assignToNamespace("Monster.Constraints",IsObject);export{Monster,IsObject};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";const namespace="Monster.Constraints"; "use strict";const namespace="Monster.Constraints";
\ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractOperator}from"./abstractoperator.js";class OrOperator extends AbstractOperator{isValid(o){var a=this;return new Promise(function(t,r){let e,n;a.operantA.isValid(o).then(function(){t()}).catch(function(){(e=!1)===n&&r()}),a.operantB.isValid(o).then(function(){t()}).catch(function(){(n=!1)===e&&r()})})}}Monster.assignToNamespace("Monster.Constraints",OrOperator);export{Monster,OrOperator}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractOperator}from"./abstractoperator.js";class OrOperator extends AbstractOperator{isValid(s){var o=this;return new Promise(function(t,r){let a,e;o.operantA.isValid(s).then(function(){t()}).catch(function(){(a=!1)===e&&r()}),o.operantB.isValid(s).then(function(){t()}).catch(function(){(e=!1)===a&&r()})})}}assignToNamespace("Monster.Constraints",OrOperator);export{Monster,OrOperator};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";class Valid extends AbstractConstraint{isValid(s){return Promise.resolve(s)}}Monster.assignToNamespace("Monster.Constraints",Valid);export{Monster,Valid}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{AbstractConstraint}from"./abstract.js";class Valid extends AbstractConstraint{isValid(s){return Promise.resolve(s)}}assignToNamespace("Monster.Constraints",Valid);export{Monster,Valid};
\ No newline at end of file \ No newline at end of file
/** Monster 1.14.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */ /** Monster 1.15.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster}from"../namespace.js";import{isFunction}from"../types/is.js";import{validateString}from"../types/validate.js";import{Pathfinder}from"./pathfinder.js";function buildMap(t,e,i,r,n){validateString(e);const o=new Map;let a=new Pathfinder(t),l=a.getVia(e);return l instanceof Map&&l.forEach((t,e,a)=>{isFunction(n)&&!0!==n.call(a,t,e)||(e=build(t,r,e),t=build(t,i),o.set(e,t))}),o}function build(t,a,e){if(void 0===a)return e||t;validateString(a);const i=[...a.matchAll(/(?<placeholder>\$\{(?<path>[a-z.-_0-9]*)\})/gm)];let r=new Pathfinder(t);return 0===i.length?r.getVia(a):(i.forEach(t=>{var e=t?.groups,t=e?.placeholder;void 0!==t&&(e=e?.path,e=r.getVia(e),a=a.replaceAll(t,e))}),a)}Monster.assignToNamespace("Monster.Data",buildMap);export{Monster,buildMap}; "use strict";import{Monster,assignToNamespace}from"../namespace.js";import{isFunction}from"../types/is.js";import{validateString}from"../types/validate.js";import{Pathfinder}from"./pathfinder.js";function buildMap(t,a,i,r,n){validateString(a);const o=new Map;let e=new Pathfinder(t),s=e.getVia(a);return s instanceof Map&&s.forEach((t,a,e)=>{isFunction(n)&&!0!==n.call(e,t,a)||(a=build(t,r,a),t=build(t,i),o.set(a,t))}),o}function build(t,e,a){if(void 0===e)return a||t;validateString(e);const i=[...e.matchAll(/(?<placeholder>\${(?<path>[a-z.-_0-9]*)})/gm)];let r=new Pathfinder(t);return 0===i.length?r.getVia(e):(i.forEach(t=>{var a=t?.groups,t=a?.placeholder;void 0!==t&&(a=a?.path,a=r.getVia(a),e=e.replaceAll(t,a))}),e)}assignToNamespace("Monster.Data",buildMap);export{Monster,buildMap};
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment