Skip to content

fix(goodreserve-widget): make register wallet-host compatible and prep 0.1.1 publish - #161

Merged
blueogin merged 1 commit into
mainfrom
fix/goodreserve-wallet-host-compat
Aug 12, 2026
Merged

fix(goodreserve-widget): make register wallet-host compatible and prep 0.1.1 publish#161
blueogin merged 1 commit into
mainfrom
fix/goodreserve-wallet-host-compat

Conversation

@blueogin

Copy link
Copy Markdown
Contributor

Description

Summary

  • Export goodWidgetMetadata from @goodwidget/goodreserve-widget/register so wallet hosts can call assertWidgetModuleMetadata.
  • Make register SSR-safe (async, typeof customElements guard, lazy ./element import), matching AI Credits / Superfluid.
  • Align publish metadata (files, sideEffects, bump-version) and bump to 0.1.1 so packed/published artifacts ship dist only.

About # (link your issue here)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature.
  • @mentions of the person or team responsible for reviewing proposed changes

- Updated version in package.json to 0.1.1.
- Added "files" and "sideEffects" fields to package.json for better module handling.
- Enhanced the register function in register.ts to include package metadata and handle dynamic imports for the GoodReserveWidgetElement.
@blueogin
blueogin requested review from a team and L03TJ3 and a lite review from Copilot August 12, 2026 15:56
@blueogin
blueogin merged commit 139b70e into main Aug 12, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the GoodReserve widget’s registration entrypoint and packaging metadata to better support wallet-host usage and SSR-safe consumption, while preparing a publishable dist-only artifact set.

Changes:

  • Exported goodWidgetMetadata from @goodwidget/goodreserve-widget/register and made register() SSR-safe via typeof customElements guard + lazy ./element import.
  • Converted register() to async and aligned it with the registration pattern used in other widgets.
  • Updated package publishing metadata (files, sideEffects, bump-version) and bumped package version to 0.1.1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/goodreserve-widget/src/register.ts Adds exported module metadata and changes custom-element registration to an SSR-safe async flow.
packages/goodreserve-widget/package.json Adjusts publish/package metadata (dist-only, sideEffects, bump script) and bumps version.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

packageVersion: '0.1.1',
} as const

export async function register(tagName: string = DEFAULT_TAG_NAME): Promise<string> {
Comment on lines +3 to +6
export const goodWidgetMetadata = {
packageName: '@goodwidget/goodreserve-widget',
packageVersion: '0.1.1',
} as const
{
"name": "@goodwidget/goodreserve-widget",
"version": "0.1.0",
"version": "0.1.1",
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