From a4852e1d9d7c52e11e1b795d3d69b44f3f8adb57 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Fri, 14 Jun 2024 02:44:17 -0700 Subject: [PATCH] chore: update staging (#295) * chore(main): release 1.2.0 (#216) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: about section on subdomain loads (#263) Without this people see confusing button to click, and some configuration, but have no idea what is happening. Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> * fix: remove fonts except woff2 (#282) * fix: add purgecss webpack plugin * fix: keep only woff2 font, remove purgeCss * chore: improve LCP performance (#293) --------- Co-authored-by: Marcin Rataj Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com> --- CHANGELOG.md | 19 +++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- public/index.html | 2 +- src/components/About.tsx | 14 ++++++++++++++ src/components/Header.tsx | 4 ++-- src/index.tsx | 10 ++++------ src/pages/config.tsx | 2 +- src/pages/default-page-styles.css | 3 +++ src/pages/helper-ui.tsx | 12 +++--------- src/pages/redirect-page.tsx | 7 +++++-- test-e2e/first-hit.test.ts | 8 ++++---- test-e2e/subdomain-detection.test.ts | 2 +- webpack.config.js | 24 ++++++++++++++++++++---- 14 files changed, 80 insertions(+), 33 deletions(-) create mode 100644 src/components/About.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c5bbe3d..88f064df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.2.0](https://github.com/ipfs/service-worker-gateway/compare/v1.1.0...v1.2.0) (2024-05-17) + + +### Features + +* _redirects only for /ipns and /ipfs ([#233](https://github.com/ipfs/service-worker-gateway/issues/233)) ([89faa58](https://github.com/ipfs/service-worker-gateway/commit/89faa588ee0c033f3d2631d5c2823c005f17ead5)) +* add content-loading indication page ([#258](https://github.com/ipfs/service-worker-gateway/issues/258)) ([c815a25](https://github.com/ipfs/service-worker-gateway/commit/c815a25d2657244cde5cea95cf535dd1bc728675)) +* cache sw assets with service worker ([#234](https://github.com/ipfs/service-worker-gateway/issues/234)) ([20a8f32](https://github.com/ipfs/service-worker-gateway/commit/20a8f329402dac4cba53fec55bd059eeb7f7137d)) +* landing & config page UX improvements ([#235](https://github.com/ipfs/service-worker-gateway/issues/235)) ([fb9b04e](https://github.com/ipfs/service-worker-gateway/commit/fb9b04e06b6b3670728c243838ee86f3d6b55067)) +* meaningful error pages ([#195](https://github.com/ipfs/service-worker-gateway/issues/195)) ([80774f5](https://github.com/ipfs/service-worker-gateway/commit/80774f50760e4b757dfacfb7d5df79f3fb020012)) + + +### Bug Fixes + +* ipfs-hosted redirects are not infinite ([#215](https://github.com/ipfs/service-worker-gateway/issues/215)) ([40cc8c7](https://github.com/ipfs/service-worker-gateway/commit/40cc8c7612302e60a2be2c9372e22e95fa10a799)) +* multiple bugs ([#220](https://github.com/ipfs/service-worker-gateway/issues/220)) ([75aa0b8](https://github.com/ipfs/service-worker-gateway/commit/75aa0b8773c8f1ab484ac110fe607404303e2e8c)) +* revert "feat: migrate to preact/compat ([#190](https://github.com/ipfs/service-worker-gateway/issues/190))" ([#219](https://github.com/ipfs/service-worker-gateway/issues/219)) ([4443174](https://github.com/ipfs/service-worker-gateway/commit/44431745be1f5638fb47969326865c8825ade141)) +* use separate logger for ui/sw ([#217](https://github.com/ipfs/service-worker-gateway/issues/217)) ([a96837b](https://github.com/ipfs/service-worker-gateway/commit/a96837b9cf753fa71dcf5a393686fe4d21c7036f)) + ## [1.1.0](https://github.com/ipfs-shipyard/service-worker-gateway/compare/v1.0.0...v1.1.0) (2024-04-19) diff --git a/package-lock.json b/package-lock.json index e904b6b2..d743c414 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "helia-service-worker-gateway", - "version": "1.1.0", + "version": "1.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "helia-service-worker-gateway", - "version": "1.1.0", + "version": "1.2.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index cbd5f284..6532bd82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "helia-service-worker-gateway", - "version": "1.1.0", + "version": "1.2.0", "private": true, "type": "module", "description": "Bundle Helia with Webpack", diff --git a/public/index.html b/public/index.html index bc75ddd3..9c812017 100644 --- a/public/index.html +++ b/public/index.html @@ -25,6 +25,6 @@ -
+
diff --git a/src/components/About.tsx b/src/components/About.tsx new file mode 100644 index 00000000..70422be9 --- /dev/null +++ b/src/components/About.tsx @@ -0,0 +1,14 @@ +import React from 'react' + +export default function About (): JSX.Element { + return ( + + ) +} diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 6d7bec62..5029b6be 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -6,14 +6,14 @@ import ipfsLogo from '../ipfs-logo.svg' export default function Header (): JSX.Element { const { gotoPage } = React.useContext(RouteContext) return ( -
+
IPFS logo
-

Service Worker Gateway (beta)

+

Service Worker Gateway (beta)