Skip to content

Conversation

@antongolub
Copy link
Collaborator

  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub added the refactoring Internal code improvements label Jul 20, 2025
@antongolub antongolub requested a review from Copilot July 20, 2025 10:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors internal property names within the ProcessPromise class to improve consistency. The main change renames the private _command property to _cmd throughout the codebase.

  • Renames _command to _cmd across TypeScript source, compiled JavaScript, and test files
  • Removes an unused ac property from a context object
  • Updates size limits to reflect the reduced bundle size from shorter property names

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

File Description
src/core.ts Updates private property name from _command to _cmd and removes unused ac property
build/core.cjs Reflects the same property renaming changes in the compiled JavaScript output
test/core.test.js Updates test code to use the new _cmd property name
.size-limit.json Adjusts bundle size limits to reflect the smaller footprint from shorter property names
Comments suppressed due to low confidence (1)

src/core.ts:301

  • The removal of the 'ac' property from the context object should be verified to ensure it's not used elsewhere in the codebase. If this property was part of an interface or expected by other code, removing it could cause runtime errors.
      signal:   self.signal,

@antongolub antongolub merged commit 3ca9cd8 into google:main Jul 20, 2025
28 checks passed
@antongolub antongolub deleted the refactor-prop-names branch July 20, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Internal code improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant