From 8f5c686949c10271adcd0afd84d22c7754e497b5 Mon Sep 17 00:00:00 2001 From: Ryan Christian Date: Sun, 9 Mar 2025 23:45:24 -0500 Subject: [PATCH 1/2] test: Update tests for upstream preact fix --- test/router.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/router.test.js b/test/router.test.js index 984699f..247128e 100644 --- a/test/router.test.js +++ b/test/router.test.js @@ -248,8 +248,7 @@ describe('Router', () => { expect(scratch).to.have.property('innerHTML', '

A

hello

'); // We should never re-invoke while loading (that would be a remount of the old route): - // ...but we do - //expect(A).not.to.have.been.called; + expect(A).not.to.have.been.called; expect(B).to.have.been.calledWith({ path: '/b', query: {}, params: {}, rest: '' }); B.resetHistory(); @@ -275,8 +274,7 @@ describe('Router', () => { expect(scratch).to.have.property('innerHTML', '

B

hello

'); // We should never re-invoke while loading (that would be a remount of the old route): - // ...but we do - //expect(B).not.to.have.been.called; + expect(B).not.to.have.been.called; expect(C).to.have.been.calledWith({ path: '/c', query: {}, params: {}, rest: '' }); C.resetHistory(); From 67975f0c3155dae63d062ad4dd48fca334ebc3ae Mon Sep 17 00:00:00 2001 From: Ryan Christian Date: Sun, 6 Apr 2025 04:08:53 -0500 Subject: [PATCH 2/2] chore: Bump Preact version --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 37d7809..d74e44f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "chai": "^5.1.1", "htm": "^3.1.1", "kleur": "^4.1.5", - "preact": "^10.24.3", + "preact": "^10.26.5", "preact-render-to-string": "^6.5.11", "sinon": "^18.0.0", "sinon-chai": "^4.0.0", @@ -3300,9 +3300,9 @@ "license": "MIT" }, "node_modules/preact": { - "version": "10.24.3", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.3.tgz", - "integrity": "sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==", + "version": "10.26.5", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.26.5.tgz", + "integrity": "sha512-fmpDkgfGU6JYux9teDWLhj9mKN55tyepwYbxHgQuIxbWQzgFg5vk7Mrrtfx7xRxq798ynkY4DDDxZr235Kk+4w==", "dev": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index 9b92d90..2574327 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "chai": "^5.1.1", "htm": "^3.1.1", "kleur": "^4.1.5", - "preact": "^10.24.3", + "preact": "^10.26.5", "preact-render-to-string": "^6.5.11", "sinon": "^18.0.0", "sinon-chai": "^4.0.0",