Skip to content

refactor: use unique symbol for more accurate typing.#4651

Merged
yusukebe merged 1 commit intomainfrom
fix-symbol-type-warn
Jan 26, 2026
Merged

refactor: use unique symbol for more accurate typing.#4651
yusukebe merged 1 commit intomainfrom
fix-symbol-type-warn

Conversation

@usualoma
Copy link
Copy Markdown
Member

fixes #4640

Fixes compilation error in consuming code where computed property names
require explicit unique symbol type.

Requires TypeScript 2.7+ (January 2018).

@github-actions
Copy link
Copy Markdown

Bundle size check

main (bcc81b1) #4651 (a935652) +/-
Bundle Size (B) 18,377B 18,377B 0B
Bundle Size (KB) 17.95K 17.95K 0K

Compiler Diagnostics (tsc)

main (bcc81b1) #4651 (a935652) +/-
Files 303 303 0
Lines 141,166 141,166 0
Identifiers 128,937 128,937 0
Symbols 269,486 269,498 12
Types 202,695 202,695 0
Instantiations 609,801 609,801 0
Memory used 332,791K 339,558K 6,767K
I/O read 0.03s 0.02s -0.01s
I/O write 0s 0s 0s
Parse time 0.82s 0.75s -0.07s
Bind time 0.36s 0.29s -0.07s
Check time 2.69s 2.67s -0.02s
Emit time 0s 0s 0s
Total time 3.87s 3.72s -0.15s

Compiler Diagnostics (typescript-go)

main (bcc81b1) #4651 (a935652) +/-
Files 303 303 0
Lines 141,168 141,168 0
Identifiers 128,900 128,900 0
Symbols 391,805 391,892 87
Types 372,896 372,898 2
Instantiations 984,004 984,004 0
Memory used 254,691K 254,773K 82K
Memory allocs 2,553,537 2,553,457 -80
Config time 0.001s 0.001s 0s
Parse time 0.093s 0.113s 0.02s
Bind time 0.032s 0.028s -0.004s
Check time 0.692s 0.75s 0.058s
Emit time 0s 0s 0s
Total time 0.872s 0.964s 0.092s

Reported by octocov

@github-actions
Copy link
Copy Markdown

HTTP Performance Benchmark

Framework Runtime Average Ping Query Body
hono (origin/main) bun 34,525.14 47,765.45 30,114.79 25,695.18
hono (current) bun 34,727.40 48,088.08 30,575.19 25,518.92
Change +0.59% +0.68% +1.53% -0.69%

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.45%. Comparing base (bcc81b1) to head (4093788).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4651   +/-   ##
=======================================
  Coverage   91.45%   91.45%           
=======================================
  Files         173      173           
  Lines       11322    11322           
  Branches     3279     3280    +1     
=======================================
  Hits        10354    10354           
  Misses        967      967           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@usualoma
Copy link
Copy Markdown
Member Author

Hi @yusukebe,

I've cloned the following project and confirmed that the issue no longer occurs. Would you please review this?

michielbdejong/node-typescript-boilerplate#1

Copy link
Copy Markdown
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Copy Markdown
Member

@usualoma

I also confirmed it works! Nice fix. Thank you!

@yusukebe yusukebe merged commit a5be555 into main Jan 26, 2026
20 checks passed
@yusukebe yusukebe deleted the fix-symbol-type-warn branch January 26, 2026 14:36
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.

Build failure when included in TS project

2 participants