Skip to content

Inline package-mixins into CodePush.js - #39

Open
ofalvai wants to merge 1 commit into
masterfrom
push-wlmrxykzvmzt
Open

Inline package-mixins into CodePush.js#39
ofalvai wants to merge 1 commit into
masterfrom
push-wlmrxykzvmzt

Conversation

@ofalvai

@ofalvai ofalvai commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

That mixin pattern is really confusing and serves no real purpose, so let's inline it.

This is still far from ideal, but we can't break certain public APIs.

@ofalvai
ofalvai requested a balanced review from Copilot August 20, 2026 16:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Inlines package augmentation logic into CodePush.js, simplifying the update API implementation.

Changes:

  • Adds package download/install helpers directly to CodePush.js.
  • Binds package methods through closures.
  • Removes the obsolete mixin module.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
CodePush.js Inlines remote and local package behavior.
package-mixins.js Removes the former mixin implementation.

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

Comment thread CodePush.js
function attachLocalPackageMethods(localPackage) {
localPackage.install = (installMode, minimumBackgroundDuration, updateInstalledCallback) =>
installUpdate(localPackage, installMode, minimumBackgroundDuration, updateInstalledCallback);
localPackage.isPending = false; // A local package wouldn't be pending until it was installed
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