Skip to content

fix: Fix hashing issue with inline scripts#1591

Merged
aklinker1 merged 2 commits into
wxt-dev:mainfrom
SimYunSup:fix/#1578
Apr 19, 2025
Merged

fix: Fix hashing issue with inline scripts#1591
aklinker1 merged 2 commits into
wxt-dev:mainfrom
SimYunSup:fix/#1578

Conversation

@SimYunSup

Copy link
Copy Markdown
Contributor

Overview

This bug cause of ohash v2 hash function change.

ohash hash function uses SHA256, so Number(hashid) return NaN. So I replaced it to hash(hashId).

If reuse murmurhash, wait to merge unjs/ohash#158

Manual Testing

스크린샷 2025-04-18 23 57 43

Related Issue

This PR closes #1578

@netlify

netlify Bot commented Apr 18, 2025

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit f871986
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/6802becc7f281e0008b78898
😎 Deploy Preview https://deploy-preview-1591--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aklinker1 aklinker1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 why did I need it to be a number in the first place lol

Thanks for the PR, will run checks, merge, and release!

@aklinker1 aklinker1 changed the title fix: Replace Number to rehash fix: Fix hashing issue with inline scripts Apr 19, 2025
@pkg-pr-new

pkg-pr-new Bot commented Apr 19, 2025

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1591

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1591

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1591

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1591

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1591

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1591

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1591

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1591

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1591

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1591

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1591

wxt

npm i https://pkg.pr.new/wxt@1591

commit: f871986

@aklinker1 aklinker1 merged commit 7eb32bd into wxt-dev:main Apr 19, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The popup doesn't show anything and right clicking into developer mode shows an error:Error: @vitejs/plugin-react can't detect preamble

2 participants