From ed7e6c79633ef6441d28c2f6a15af60186d4de05 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Mon, 3 Mar 2025 14:19:41 +0100 Subject: [PATCH] :zap: Refatc signals to .get/.set syntax #26 --- README.md | 8 +- dist/dde-with-signals.js | 169 +++++++++++------- dist/dde.js | 83 +++++---- dist/esm-with-signals.d.ts | 11 +- dist/esm-with-signals.js | 169 +++++++++++------- dist/esm.js | 83 +++++---- .../customElement/observedAttributes.js | 2 +- .../examples/introducing/helloWorld.js | 4 +- .../examples/signals/actions-demo.js | 2 +- .../examples/signals/actions-todos.js | 4 +- .../examples/signals/computations-abort.js | 8 +- docs/components/examples/signals/dom-attrs.js | 6 +- docs/components/examples/signals/dom-el.js | 6 +- docs/components/examples/signals/signals.js | 4 +- docs/p04-signals.html.js | 8 +- examples/components/3rd-party.js | 4 +- examples/components/fullNameComponent.js | 10 +- examples/components/todosComponent.js | 10 +- examples/components/webComponent.js | 2 +- examples/index.js | 2 +- package.json | 2 +- signals.d.ts | 12 +- src/dom.js | 6 +- src/events.js | 6 +- src/helpers.js | 3 +- src/signals-lib/common.js | 4 +- src/signals-lib/helpers.js | 6 +- src/signals-lib/signals-lib.js | 68 +++---- 28 files changed, 405 insertions(+), 297 deletions(-) diff --git a/README.md b/README.md index eae793f..9d85083 100644 --- a/README.md +++ b/README.md @@ -18,19 +18,19 @@ function HelloWorldComponent({ initial }){ /** @param {HTMLOptionElement} el */ const isSelected= el=> (el.selected= el.value===initial); // @ts-expect-error 2339: The