diff --git a/CHANGELOG.md b/CHANGELOG.md index b609bef..6c23fc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.0.1 + +- The package ships its MIT `LICENSE`, and its author, homepage and issue links are up to date. +- The README opens with the new logo, and its images load on npmjs.com too. +- Releases are published from GitHub Actions through npm Trusted Publishing, with a provenance statement. + ## 1.0.0 ### Breaking changes diff --git a/README.md b/README.md index bfa785a..430baea 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +

+ + + react-clear-browser-cache + +

+ # react-clear-browser-cache > Keep open tabs on your latest React build: notice a deploy, clear Cache Storage and reload, or ask the user first. @@ -14,7 +21,7 @@ Users leave tabs open for days. After you deploy, those tabs still run the old b **[▶ Try the live demo](https://devmaxxx.github.io/react-clear-browser-cache/)** — deploy a new version in one click and watch an open tab notice it, prompt, clear Cache Storage and reload. - The demo after a deploy: the update prompt asks to reload, the event log shows meta.json returning v2 while the tab still runs v1. + The demo after a deploy: the update prompt offers v2 and asks to reload, while the tab still runs v1. ## Features diff --git a/docs/demo-light.png b/docs/demo-light.png index 174a19f..31f8207 100644 Binary files a/docs/demo-light.png and b/docs/demo-light.png differ diff --git a/docs/logo-wordmark-dark.svg b/docs/logo-wordmark-dark.svg new file mode 100644 index 0000000..faee053 --- /dev/null +++ b/docs/logo-wordmark-dark.svg @@ -0,0 +1,17 @@ + + react-clear-browser-cache + + + + + + + + + + + + + + react-clear-browser-cache + diff --git a/docs/logo-wordmark-light.svg b/docs/logo-wordmark-light.svg new file mode 100644 index 0000000..d5f11de --- /dev/null +++ b/docs/logo-wordmark-light.svg @@ -0,0 +1,17 @@ + + react-clear-browser-cache + + + + + + + + + + + + + + react-clear-browser-cache + diff --git a/docs/logo.svg b/docs/logo.svg new file mode 100644 index 0000000..92b979c --- /dev/null +++ b/docs/logo.svg @@ -0,0 +1,14 @@ + + react-clear-browser-cache + + + + + + + + + + + + diff --git a/example/index.html b/example/index.html index 6af4f03..7bf601c 100644 --- a/example/index.html +++ b/example/index.html @@ -4,7 +4,8 @@ - + + react-clear-browser-cache diff --git a/example/public/favicon.svg b/example/public/favicon.svg new file mode 100644 index 0000000..92b979c --- /dev/null +++ b/example/public/favicon.svg @@ -0,0 +1,14 @@ + + react-clear-browser-cache + + + + + + + + + + + + diff --git a/example/src/demo/Demo.tsx b/example/src/demo/Demo.tsx index c3b4fe4..b30b1bc 100644 --- a/example/src/demo/Demo.tsx +++ b/example/src/demo/Demo.tsx @@ -410,7 +410,16 @@ export default function Demo() {

Live demo · deploys simulated in your browser

-

react-clear-browser-cache

+

+ + react-clear-browser-cache +

Users keep old tabs open. When you ship, their page still runs the last build and its lazy chunks are gone from the server. This boundary diff --git a/example/src/demo/demo.css b/example/src/demo/demo.css index 2cd1b32..ba5f039 100644 --- a/example/src/demo/demo.css +++ b/example/src/demo/demo.css @@ -137,10 +137,19 @@ button.link { } .hero h1 { + display: flex; + align-items: center; + gap: 0.6rem; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; } +.logo { + flex: none; + width: 1.4em; + height: 1.4em; +} + .lede { color: var(--muted); font-size: 0.95rem; diff --git a/package.json b/package.json index f87c7d0..d617178 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-clear-browser-cache", - "version": "1.0.0", + "version": "1.0.1", "author": { "name": "Maksym Synenko", "url": "https://devmaxxx.github.io/"