Skip to content

Conversation

@antongolub
Copy link
Collaborator

  • exposes internal deps versions
  • exports zx own version as static value

fixes #1295

import { versions } from 'zx'

versions.zx     // 8.7.2
versions.chalk  // 5.4.1
  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub requested a review from Copilot July 30, 2025 16:41
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 exposes internal dependency versions through a new versions object in the zx library. It replaces the dynamic version reading with a static approach and provides users access to versions of all internal dependencies.

Key changes:

  • Added a static versions object that exports versions of zx and its dependencies
  • Replaced dynamic VERSION reading with a static reference to versions.zx
  • Created a build script to generate the versions file automatically

Reviewed Changes

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

Show a summary per file
File Description
src/versions.ts New file defining the static versions object with zx and dependency versions
src/index.ts Updated VERSION constant to use static versions.zx instead of dynamic file reading
src/goods.ts Added export of versions from versions.ts
scripts/build-versions.mjs New build script to automatically generate versions.ts from package.json files
package.json Updated build process to include versions generation step
test/* Added comprehensive test coverage for the new versions functionality
docs/api.md Added documentation for the new versions API

@antongolub antongolub merged commit c9d6511 into google:main Jul 30, 2025
28 checks passed
@antongolub antongolub deleted the export-deps-versions branch July 30, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URL.parse, introduced in #1193, breaks compatibility with Node < v22.1.0

1 participant