From 97a334913b26698ec7686836c6b86c8ecaa7df93 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Thu, 11 Aug 2022 19:07:18 +0200
Subject: [PATCH] chore: commit save point

---
 README.md                                 |  8 ++++----
 application/source/monster.mjs            |  3 +--
 development/.npmignore                    |  3 ++-
 development/script/create-polyfill.sh     |  2 +-
 development/script/grep-exports.cjs       | 20 +++++---------------
 development/script/release-and-publish.sh |  2 ++
 6 files changed, 15 insertions(+), 23 deletions(-)

diff --git a/README.md b/README.md
index a800c85c4..b4fe6d0e6 100644
--- a/README.md
+++ b/README.md
@@ -72,10 +72,10 @@ 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.
 
-```
-   <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.lastIndexOf,Array.prototype.map,Array.prototype.reduce,Array.prototype.sort,ArrayBuffer,atob,DataView,document,DocumentFragment,Element,Event,globalThis,HTMLDocument,HTMLTemplateElement,JSON,Map,Math.log2,Number.isInteger,Object.assign,Object.defineProperty,Object.entries,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.keys,Promise,Reflect,Reflect.defineProperty,Reflect.get,Reflect.getOwnPropertyDescriptor,Reflect.setPrototypeOf,Set,String.prototype.endsWith,String.prototype.matchAll,String.prototype.padStart,String.prototype.startsWith,String.prototype.trim,Symbol,Symbol.iterator,WeakMap,WeakSet"
-           crossorigin="anonymous"
-           referrerpolicy="no-referrer"></script>
+```html
+<script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?feat"
+       crossorigin="anonymous"
+       referrerpolicy="no-referrer"></script>
 ```
 
 ## Questions
diff --git a/application/source/monster.mjs b/application/source/monster.mjs
index f017bad12..d81de897b 100644
--- a/application/source/monster.mjs
+++ b/application/source/monster.mjs
@@ -22,7 +22,6 @@ export {AbstractConstraint} from "./constraints/abstract.mjs"
 export {IsArray} from "./constraints/isarray.mjs"
 export {AbstractOperator} from "./constraints/abstractoperator.mjs"
 export {Valid} from "./constraints/valid.mjs"
-export {Monster} from "./monster.mjs"
 export {Logger, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF} from "./logging/logger.mjs"
 export {LogEntry} from "./logging/logentry.mjs"
 export {ConsoleHandler} from "./logging/handler/console.mjs"
@@ -126,7 +125,7 @@ export {FocusManager} from "./dom/focusmanager.mjs"
 export {ATTRIBUTEPREFIX, Assembler} from "./dom/assembler.mjs"
 export {Translations} from "./i18n/translations.mjs"
 export {Locale, parseLocale} from "./i18n/locale.mjs"
-export {Formatter} from "./i18n/formatter.mjs"
+export {I18nFormatter} from "./i18n/formatter.mjs"
 export {Fetch} from "./i18n/providers/fetch.mjs"
 export {Provider} from "./i18n/provider.mjs"
 export {
diff --git a/development/.npmignore b/development/.npmignore
index e7c1fb81d..b8fbd72f0 100644
--- a/development/.npmignore
+++ b/development/.npmignore
@@ -3,4 +3,5 @@ tmp
 temp
 coverage
 .c8rc.json
-package-lock.json
\ No newline at end of file
+package-lock.json
+pnpm-lock.yaml
\ No newline at end of file
diff --git a/development/script/create-polyfill.sh b/development/script/create-polyfill.sh
index a22fd07ee..ef004c986 100755
--- a/development/script/create-polyfill.sh
+++ b/development/script/create-polyfill.sh
@@ -15,5 +15,5 @@ url="$(${PROJECT_ROOT}development/node_modules/.bin/create-polyfill-service-url
 if [ ! -x {$url} ] 
 then
   sed -i -E "/id=\"polyfill\"/s|.*|   <script id=\"polyfill\" src=\"${url}\"|g"  ${TEST_PATH}web/test.html  
-  sed -i -E "/id=\"polyfill\"/s|.*|   <script id=\"polyfill\" src=\"${url}\"|g"  ${PROJECT_ROOT}application/README.md  
+  sed -i -E "/id=\"polyfill\"/s|.*|<script id=\"polyfill\" src=\"${url}\"|g"  ${PROJECT_ROOT}README.md  
 fi
diff --git a/development/script/grep-exports.cjs b/development/script/grep-exports.cjs
index 328f9a086..676734a18 100755
--- a/development/script/grep-exports.cjs
+++ b/development/script/grep-exports.cjs
@@ -4,7 +4,7 @@ const regex = /^\s*(?<exp>(export\s+{[^}]+)})/gm;
 
 const fs = require('fs');
 var path = require('path')
-const basename= __dirname + '/../../application/source/'
+const basename = __dirname + '/../../application/source/'
 
 let exportLines = []
 
@@ -18,34 +18,24 @@ function scanSymbols(root) {
             continue;
         } else if (!f.isFile()) {
             continue;
-        };
+        }
 
         if ((path.extname(f.name) !== ".mjs")) {
             continue;
         }
 
-        const fn = path.join( root , f.name);
+        const fn = path.join(root, f.name);
         let content = fs.readFileSync(fn, 'utf8');
 
         while ((m = regex.exec(content)) !== null) {
-            let exp= m.groups?.exp;
+            let exp = m.groups?.exp;
             if (!exp) {
                 continue;
             }
-            
-            
-            exportLines.push(exp + " from \"./" + path.relative(basename, fn)+"\"");
-            
+            exportLines.push(exp + " from \"./" + path.relative(basename, fn) + "\"");
         }
-
     }
 }
 
 scanSymbols(path.normalize(basename))
-
-
 console.log(exportLines.join("\n"));
-
-
-
-
diff --git a/development/script/release-and-publish.sh b/development/script/release-and-publish.sh
index 0e9ddaf84..385c619e4 100755
--- a/development/script/release-and-publish.sh
+++ b/development/script/release-and-publish.sh
@@ -26,6 +26,8 @@ git add ${TEST_PATH}cases/monster.mjs
 git add ${PROJECT_ROOT}release.json
 git commit -m "release and publish to npm"
 
+rm $BUILD_PATH/pnpm-lock.yaml
+
 cd ${BUILD_PATH}
 ##  --dry-run
 pnpm publish --access public
-- 
GitLab