Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: public arrow fns -> prototype-based bound fns #161

Merged
merged 4 commits into from
Dec 5, 2024
Merged

Conversation

huntabyte
Copy link
Member

@huntabyte huntabyte commented Dec 4, 2024

This PR refactors all public-facing class methods from arrow functions to prototype methods with constructor binding. This architectural change improves inheritance patterns and reduces memory usage across instances.

  • Enables proper inheritance and super calls
  • Reduces memory footprint (shared methods via prototype)
  • Maintains a stable this binding for callbacks (better DX)

Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: 524bbe0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
runed Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Dec 4, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
runed ✅ Ready (View Log) Visit Preview 524bbe0

@huntabyte huntabyte merged commit 1233b67 into main Dec 5, 2024
4 checks passed
@huntabyte huntabyte deleted the consistency branch December 5, 2024 00:04
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.

1 participant