Skip to content

Comments

refactor(client): make properties readonly and adjust modifiers#4763

Closed
BelovedYaoo wants to merge 1 commit intohonojs:mainfrom
BelovedYaoo:refactor/porp-modify
Closed

refactor(client): make properties readonly and adjust modifiers#4763
BelovedYaoo wants to merge 1 commit intohonojs:mainfrom
BelovedYaoo:refactor/porp-modify

Conversation

@BelovedYaoo
Copy link

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

mark properties as readonly and adjust access modifiers in client classes to improve immutability and encapsulation :)

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4763   +/-   ##
=======================================
  Coverage   91.48%   91.48%           
=======================================
  Files         177      177           
  Lines       11551    11551           
  Branches     3353     3354    +1     
=======================================
  Hits        10567    10567           
  Misses        983      983           
  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.

@@ -31,9 +31,9 @@ const createProxy = (callback: Callback, path: string[]) => {
}

class ClientRequestImpl {
Copy link
Member

Choose a reason for hiding this comment

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

ClientRequestImpl is only used in internal. This refactor is not necessary right now.

* Additional `message` that will be logged AND returned to client
*/
public detail?: any
detail?: any
Copy link
Member

Choose a reason for hiding this comment

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

This file is ported from another package

* @link https://www.npmjs.com/package/fetch-result-please

The author intended marking as public. And it's not a problem making them public. This refactoring is not necessary.

@yusukebe
Copy link
Member

I think these refactorings are not necessary. Closing.

@yusukebe yusukebe closed this Feb 24, 2026
@BelovedYaoo BelovedYaoo deleted the refactor/porp-modify branch February 24, 2026 09:08
@BelovedYaoo
Copy link
Author

ok,sorry for making two unnecessary changes. :)

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.

2 participants