diff --git a/README.md b/README.md index 2262356..77cdd63 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -# rocky7 +# alfama Fine grained reactive UI Library. -[![Version](https://img.shields.io/npm/v/rocky7.svg?color=success&style=flat-square)](https://www.npmjs.com/package/rocky7) +[![Version](https://img.shields.io/npm/v/alfama.svg?color=success&style=flat-square)](https://www.npmjs.com/package/alfama) [![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) -[![Build Status](https://github.com/abhishiv/rocky7/actions/workflows/ci.yml/badge.svg)](https://github.com/abhishiv/rocky7/actions/workflows/ci.yml) -![Badge size](https://deno.bundlejs.com/?q=rocky7&config={%22analysis%22:undefined}&badge=) +[![Build Status](https://github.com/abhishiv/alfama/actions/workflows/ci.yml/badge.svg)](https://github.com/abhishiv/alfama/actions/workflows/ci.yml) +![Badge size](https://deno.bundlejs.com/?q=alfama&config={%22analysis%22:undefined}&badge=) -**npm**: `npm i rocky7` +**npm**: `npm i alfama` -**cdn**: https://cdn.jsdelivr.net/npm/rocky7/+esm +**cdn**: https://cdn.jsdelivr.net/npm/alfama/+esm --- @@ -21,14 +21,14 @@ Fine grained reactive UI Library. - **Signals and Stores.** Signals for primitives and Stores for deeply nested objects/arrays. - **First class HMR** Preserves Signals/Stores across HMR loads for a truly stable HMR experience. - **DevEx.** no compile step needed if you want: choose your view syntax: `h` for plain javascript or `` for babel/typescript. -- **Rich and Complete.** From support for `SVG` to popular patterns like `dangerouslySetInnerHTML`, `ref` to `` and `` rocky has you covered. +- **Rich and Complete.** From support for `SVG` to popular patterns like `dangerouslySetInnerHTML`, `ref` to `` and `` alfama has you covered. #### Ecosystem
- rocky7-router + alfama-router Router with a familiar react-router like API @@ -47,12 +47,12 @@ Fine grained reactive UI Library. #### Example -[Counter - Codesandbox](https://codesandbox.io/s/counter-demo-rocky7-t7ift3?file=/src/index.tsx) +[Counter - Codesandbox](https://codesandbox.io/s/counter-demo-alfama-t7ift3?file=/src/index.tsx) ```tsx /** @jsx h **/ -import { component, h, render } from "rocky7"; +import { component, h, render } from "alfama"; const Page = component<{ name: string }>( "HomePage", @@ -288,7 +288,7 @@ export const PortalExample = component("PortalExample", (props, utils) => { ```tsx /** @jsx h **/ -import { h, render } from "rocky7"; +import { h, render } from "alfama"; import { Layout } from "./index"; const renderApp = ({ Layout }: { Layout: typeof Layout }) => diff --git a/examples/kitchen-sink/index.html b/examples/kitchen-sink/index.html index 3da6907..835cb8d 100644 --- a/examples/kitchen-sink/index.html +++ b/examples/kitchen-sink/index.html @@ -3,7 +3,7 @@ - + =0.1.90" + "alfama": ">=0.1.90" }, "devDependencies": { "typescript": "^5.2.2", diff --git a/examples/kitchen-sink/src/index.tsx b/examples/kitchen-sink/src/index.tsx index 925f965..2904784 100644 --- a/examples/kitchen-sink/src/index.tsx +++ b/examples/kitchen-sink/src/index.tsx @@ -11,7 +11,7 @@ import { Fragment, reify, produce, -} from "rocky7"; +} from "alfama"; export const PortalExample = component("PortalExample", (props, utils) => { const $active = utils.signal("active", false); @@ -154,11 +154,11 @@ export const Layout = component<{}>(

- Rocky7 Kitchen Sink + alfama Kitchen Sink

- + docs

diff --git a/examples/kitchen-sink/src/main.tsx b/examples/kitchen-sink/src/main.tsx index 1573cad..bb9a6f5 100644 --- a/examples/kitchen-sink/src/main.tsx +++ b/examples/kitchen-sink/src/main.tsx @@ -1,6 +1,6 @@ /** @jsx h **/ -import { h, render } from "rocky7"; +import { h, render } from "alfama"; import { Layout } from "./index"; diff --git a/package-lock.json b/package-lock.json index 72d823c..eb5d0c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "rocky7", + "name": "alfama", "version": "0.3.15", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "rocky7", + "name": "alfama", "version": "0.3.15", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 65c2bae..e1a55ce 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "rocky7", + "name": "alfama", "version": "0.3.19", "author": "Abhishiv Saxena", "license": "MIT", @@ -13,7 +13,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/abhishiv/rocky7" + "url": "https://github.com/abhishiv/alfama" }, "files": [ "./dist" diff --git a/src/dom/api.ts b/src/dom/api.ts index e0f7d27..668686a 100644 --- a/src/dom/api.ts +++ b/src/dom/api.ts @@ -196,6 +196,7 @@ export const getRenderContext = (container: HTMLElement, element: VElement) => { renderContext.prevState.clear(); + // so HMR is properly cleaned up renderContext.reg.forEach((step) => { if ( step.type === DOMConstants.ComponentTreeStep && diff --git a/src/dom/utils.ts b/src/dom/utils.ts index 946163c..527849d 100644 --- a/src/dom/utils.ts +++ b/src/dom/utils.ts @@ -138,6 +138,6 @@ export const arrayRemove = (array: T[], ...items: T[]): void => { export function createError(code: string | number, desc?: string) { return new Error( - `Error ${code}: https://github.com/abhishiv/rocky7/wiki/Error-codes#code-${code}` + `Error ${code}: https://github.com/abhishiv/alfama/wiki/Error-codes#code-${code}` ); }