From e22b581a8ab2ae1d2f18b4173bd9ddf8a614a926 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Mon, 19 Dec 2022 00:44:35 +0000 Subject: [PATCH 01/27] CI (AGP) - 2022-12-19 00:44 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index f8bd64c..4180dcc 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-18 00:46 +2022-12-19 00:44 From 7a9064c445d5e8201f4e13af0e9c1617653e2bbe Mon Sep 17 00:00:00 2001 From: agp-bot Date: Tue, 20 Dec 2022 00:50:10 +0000 Subject: [PATCH 02/27] CI (AGP) - 2022-12-20 00:50 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 4180dcc..ac9304f 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-19 00:44 +2022-12-20 00:50 From 0a882b0b485f6445515d919b360df68569df70b7 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Wed, 21 Dec 2022 00:44:56 +0000 Subject: [PATCH 03/27] CI (AGP) - 2022-12-21 00:44 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index ac9304f..cfb0df6 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-20 00:50 +2022-12-21 00:44 From 9df7c3c302cddc9ae228c2e5c7f20c62f61fbfb7 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Thu, 22 Dec 2022 00:48:24 +0000 Subject: [PATCH 04/27] CI (AGP) - 2022-12-22 00:48 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index cfb0df6..63f3a12 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-21 00:44 +2022-12-22 00:48 From b7c524464f419f36f5390c8638efb0543ba95d64 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Fri, 23 Dec 2022 00:47:42 +0000 Subject: [PATCH 05/27] CI (AGP) - 2022-12-23 00:47 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 63f3a12..16dd3a1 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-22 00:48 +2022-12-23 00:47 From 2e28b5dd69bbddb3776d36b8d6fdeb6bb31bc59b Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 25 Dec 2022 01:01:14 +0000 Subject: [PATCH 06/27] CI (AGP) - 2022-12-25 01:01 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 16dd3a1..ab18ffe 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-23 00:47 +2022-12-25 01:01 From cf3a99a4ec981ce47ba950afeb1f96fba66139ee Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 8 Jan 2023 01:04:36 +0000 Subject: [PATCH 07/27] CI (AGP) - 2023-01-08 01:04 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index ab18ffe..24bba1c 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2022-12-25 01:01 +2023-01-08 01:04 From 1523e6c712e2a1c3e7712d9c6ce200a905876670 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 15 Jan 2023 01:04:34 +0000 Subject: [PATCH 08/27] CI (AGP) - 2023-01-15 01:04 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 24bba1c..61e2361 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-01-08 01:04 +2023-01-15 01:04 From 9198071a7bed7ac5c0215ae2564f380a6199a873 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 22 Jan 2023 01:04:09 +0000 Subject: [PATCH 09/27] CI (AGP) - 2023-01-22 01:04 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 61e2361..86bf1ee 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-01-15 01:04 +2023-01-22 01:04 From 07b12a07dc899976e95901bba9d3f44e084719b2 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 29 Jan 2023 01:06:24 +0000 Subject: [PATCH 10/27] CI (AGP) - 2023-01-29 01:06 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 86bf1ee..6466457 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-01-22 01:04 +2023-01-29 01:06 From 2d942dc55e9a046187ee24bd50744e944e3e7798 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 5 Feb 2023 01:06:46 +0000 Subject: [PATCH 11/27] CI (AGP) - 2023-02-05 01:06 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 6466457..330ef82 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-01-29 01:06 +2023-02-05 01:06 From db7bf27accd736bcb164cf12d06d29949a9577f0 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 12 Feb 2023 01:06:52 +0000 Subject: [PATCH 12/27] CI (AGP) - 2023-02-12 01:06 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 330ef82..fc26950 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-02-05 01:06 +2023-02-12 01:06 From 92886d124d8961172c07d96d7075ab26b03d03e3 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 19 Feb 2023 01:05:09 +0000 Subject: [PATCH 13/27] CI (AGP) - 2023-02-19 01:05 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index fc26950..16262c8 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-02-12 01:06 +2023-02-19 01:05 From de415e745f6a4aef2d20ac6ccdfa7c8167f34bca Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 26 Feb 2023 01:10:44 +0000 Subject: [PATCH 14/27] CI (AGP) - 2023-02-26 01:10 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 16262c8..906e986 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-02-19 01:05 +2023-02-26 01:10 From c6944536970849a588114f89cc4586d6069f0b19 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 5 Mar 2023 01:12:48 +0000 Subject: [PATCH 15/27] CI (AGP) - 2023-03-05 01:12 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 906e986..f99c828 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-02-26 01:10 +2023-03-05 01:12 From 82faa3e3d8c227f220c72d8028b134aae04bc67e Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 12 Mar 2023 01:06:41 +0000 Subject: [PATCH 16/27] CI (AGP) - 2023-03-12 01:06 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index f99c828..95f399c 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-03-05 01:12 +2023-03-12 01:06 From 4ed39be5cf0b830037a6b2a4535a03df1c861901 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 19 Mar 2023 01:07:24 +0000 Subject: [PATCH 17/27] CI (AGP) - 2023-03-19 01:07 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 95f399c..89530c6 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-03-12 01:06 +2023-03-19 01:07 From 4586217977eb46262e3e925ecacdd9bc560c9bb3 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 26 Mar 2023 01:03:25 +0000 Subject: [PATCH 18/27] CI (AGP) - 2023-03-26 01:03 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 89530c6..50ee29c 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-03-19 01:07 +2023-03-26 01:03 From 97976714cf4643c088c6989f4d489ab7c77c2934 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 2 Apr 2023 01:01:17 +0000 Subject: [PATCH 19/27] CI (AGP) - 2023-04-02 01:01 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 50ee29c..1fd0e8f 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-03-26 01:03 +2023-04-02 01:01 From 7b64623c7ff9785c794466d4ffa74ca78d2fc9cf Mon Sep 17 00:00:00 2001 From: root Date: Sat, 1 Apr 2023 22:54:49 -0700 Subject: [PATCH 20/27] ok --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index b094ea8..6d07309 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "allowSyntheticDefaultImports": true, "checkJs": true, "forceConsistentCasingInFileNames": true, + "ignoreDeprecations": "5.0", "incremental": true, "module": "nodenext", "noFallthroughCasesInSwitch": true, From 65e16d3aa3b74b08bbb07b7de68ce7eac3a2705e Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 9 Apr 2023 00:57:56 +0000 Subject: [PATCH 21/27] CI (AGP) - 2023-04-09 00:57 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 1fd0e8f..3129bbc 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-04-02 01:01 +2023-04-09 00:57 From fb8be72b9c3218b2172ff0749e0f57031a0b51c4 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 16 Apr 2023 00:59:23 +0000 Subject: [PATCH 22/27] CI (AGP) - 2023-04-16 00:59 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 3129bbc..d190ca7 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-04-09 00:57 +2023-04-16 00:59 From bfa5c80779f04736c748cf2cf1e2d0e0a258e117 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 23 Apr 2023 01:02:34 +0000 Subject: [PATCH 23/27] CI (AGP) - 2023-04-23 01:02 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index d190ca7..9ce21ef 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-04-16 00:59 +2023-04-23 01:02 From 34f252ea940c1797a3d8bbec9620ec5ecc152b25 Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 30 Apr 2023 01:03:08 +0000 Subject: [PATCH 24/27] CI (AGP) - 2023-04-30 01:03 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index 9ce21ef..ec41cc5 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-04-23 01:02 +2023-04-30 01:03 From 80e672b932ecfe90ce65a45ff90e84f4da0ff0f2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 May 2023 08:30:58 -0700 Subject: [PATCH 25/27] fix --- excel/index.ts | 0 src/noact.ts | 24 +++++++++++------------- tsconfig.json | 6 ++---- 3 files changed, 13 insertions(+), 17 deletions(-) create mode 100644 excel/index.ts diff --git a/excel/index.ts b/excel/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/noact.ts b/src/noact.ts index b8bbb07..b738600 100644 --- a/src/noact.ts +++ b/src/noact.ts @@ -1,6 +1,6 @@ type Props = Partial> & { - style?: Partial - dataset?: Record + style?: Extract, string> + dataset?: Record txt?: string } type E = HTMLElementTagNameMap & Record @@ -12,12 +12,10 @@ export const Render = (tagName: T) => (p: Props = {}, . const { style = {}, dataset = {}, ..._p } = props const children = c.filter((c) => c) as NNode[] const render = ((element?: E[T]) => () => { - if (element) { - return element - } + if (element) return element const e = (element = document.createElement(tagName)) - Object.entries(_p).forEach(([k, v]) => (e[k] = v)) - Object.entries(style).forEach(([k, v]) => (e.style[k] = v)) + Object.entries(_p).forEach(([k, v]) => ((e)[k] = v)) + Object.entries(style).forEach(([k, v]) => ((e.style)[k] = v)) Object.entries(dataset).forEach(([k, v]) => (e.dataset[k] = v as string)) children.forEach((child) => e.append(child())) return e @@ -29,10 +27,10 @@ const patchProps = (prev: NNode, next: NNode) => { const e = prev() const { style: pStyle = {}, dataset: pData = {}, ...pProps } = prev.props const { style: nStyle = {}, dataset: nData = {}, ...nProps } = next.props - Object.entries(pProps).forEach(([k]) => nProps[k] === undefined && (e[k] = undefined)) - Object.entries(nProps).forEach(([k, v]) => pProps[k] !== v && (e[k] = v)) - Object.entries(pStyle).forEach(([k]) => nStyle[k] === undefined && e.style.removeProperty(k)) - Object.entries(nStyle).forEach(([k, v]) => pStyle[k] !== v && (e.style[k] = v)) + Object.entries(pProps).forEach(([k]) => (nProps)[k] === undefined && ((e)[k] = undefined)) + Object.entries(nProps).forEach(([k, v]) => (pProps)[k] !== v && ((e)[k] = v)) + Object.entries(pStyle).forEach(([k]) => (nStyle)[k] === undefined && e.style.removeProperty(k)) + Object.entries(nStyle).forEach(([k, v]) => (pStyle)[k] !== v && ((e.style)[k] = v)) Object.entries(pData).forEach(([k]) => nData[k] === undefined && Reflect.deleteProperty(e.dataset, k)) Object.entries(nData).forEach(([k, v]) => pData[k] !== v && (e.dataset[k] = v as string)) } @@ -54,7 +52,7 @@ const reconciliate = (prev: NNode, next: NNode): NNode => { export const NewRNode = (element: HTMLElement, props: Record = {}, ...children: MaybeNNode[]): NNode => Object.assign(() => element, { tagName: element.tagName, props, children: children.filter((c) => c) as NNode[] }) -export const NewMountPoint = (root: HTMLElement | ShadowRoot) => { - let prev = NewRNode(root as any) +export const NewMountPoint = (root: HTMLElement) => { + let prev = NewRNode(root) return (...children: MaybeNNode[]) => (prev = reconciliate(prev, NewRNode(root as any, {}, ...children))) } diff --git a/tsconfig.json b/tsconfig.json index 6d07309..e104999 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "allowSyntheticDefaultImports": true, "checkJs": true, "forceConsistentCasingInFileNames": true, - "ignoreDeprecations": "5.0", "incremental": true, "module": "nodenext", "noFallthroughCasesInSwitch": true, @@ -16,9 +15,8 @@ "removeComments": true, "sourceMap": true, "strict": true, - "suppressImplicitAnyIndexErrors": true, "target": "esnext" }, - "exclude": ["node_modules/**", "dist/**"], - "include": ["**/*.ts", "**/*.mjs"] + "exclude": ["node_modules", "artifacts"], + "include": ["."] } From aa367cb39e9cfe5fe71578d22603360d5e30927f Mon Sep 17 00:00:00 2001 From: agp-bot Date: Sun, 7 May 2023 01:01:28 +0000 Subject: [PATCH 26/27] CI (AGP) - 2023-05-07 01:01 --- .github/.agp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.agp b/.github/.agp index ec41cc5..a606dc0 100644 --- a/.github/.agp +++ b/.github/.agp @@ -3,4 +3,4 @@ Auto Github Push (AGP) https://github.com/ms-jpq/auto-github-push --- -2023-04-30 01:03 +2023-05-07 01:01 From f2b82895a5f769ab69680e7430509d57a2402b21 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 May 2023 18:58:51 +0000 Subject: [PATCH 27/27] Bump webpack-cli from 4.10.0 to 5.1.0 Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.10.0 to 5.1.0. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.10.0...webpack-cli@5.1.0) --- updated-dependencies: - dependency-name: webpack-cli dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ce1438..46adb60 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "sass-loader": "^13", "ts-loader": "^9", "webpack": "^5", - "webpack-cli": "^4" + "webpack-cli": "^5" }, "description": "_", "devDependencies": {