Skip to content

feat: add changesets native dependency format package#177

Merged
TheUnderScorer merged 5 commits into
mainfrom
feature/add-native-changeset-preset
Jul 8, 2026
Merged

feat: add changesets native dependency format package#177
TheUnderScorer merged 5 commits into
mainfrom
feature/add-native-changeset-preset

Conversation

@TheUnderScorer

Copy link
Copy Markdown
Contributor

Added a shared package that adds native dependencies note in the changesets generated changelog. The goal is to share it in React-Native and Flutter SDKs.

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 63489b1

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

This PR includes changesets to release 1 package
Name Type
@fingerprintjs/changesets-native-dependency-format Minor

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

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

Adds a new shared Changesets changelog preset/package intended to append a “native dependencies version range” note to the last changeset entry, so it can be reused across SDK repos (React Native / Flutter).

Changes:

  • Introduces @fingerprintjs/changesets-native-dependency-format, wrapping the existing @fingerprintjs/changesets-changelog-format and appending a generated native-deps note to the final changelog entry.
  • Implements native dependency resolution helpers for iOS (CocoaPods podspec parsing) and Android (Gradle task output parsing).
  • Updates the release workflow to provide NPM_TOKEN for publishing, and updates the pnpm lockfile for new dependencies.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
pnpm-lock.yaml Adds dependency graph entries for the new package and its transitive deps.
packages/changesets-native-dependency-format/tsconfig.json Adds TypeScript build config for the new package.
packages/changesets-native-dependency-format/package.json Declares the new publishable package and its build script/dependencies.
packages/changesets-native-dependency-format/src/index.ts Implements the changelog preset wrapper and note appending behavior.
packages/changesets-native-dependency-format/src/native-dependency/note.ts Generates the native dependency Markdown note (currently with hardcoded SDK paths/tasks).
packages/changesets-native-dependency-format/src/native-dependency/changeset.ts Determines which changeset is “last” for appending the note.
packages/changesets-native-dependency-format/src/native-dependency/android.ts Runs a Gradle task and humanizes the Maven-style version output.
packages/changesets-native-dependency-format/src/native-dependency/gradle.ts Resolves whether to call system Gradle vs gradlew.
packages/changesets-native-dependency-format/src/native-dependency/ios.ts Resolves iOS dependency version constraints from podspec (JSON/DSL).
packages/changesets-native-dependency-format/src/native-dependency/pods.ts Interacts with CocoaPods CLI to parse podspec DSL.
packages/changesets-native-dependency-format/src/native-dependency/utils.ts Shared helpers (Maven range humanization + command-not-found detection).
.github/workflows/release-dx-packages.yml Adds NPM_TOKEN to publish step env.
.changeset/slow-meteors-wait.md Adds the changeset entry for the new package release.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/changesets-native-dependency-format/src/index.ts Outdated
Comment thread packages/changesets-native-dependency-format/src/index.ts
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This PR will create a minor release 🚀

⚠️ This is a test run of the release-notes-comment action that can be found in .github/workflows/analyze-commits.yml

1.6.0 (2026-07-08)

Features

  • add changesets native dependency format package (29ab76e)
  • add support for customizable Android and iOS paths in native deps note generation (c2fe2e3)

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Following releases will be created using changesets from this PR:

@fingerprintjs/changesets-native-dependency-format@0.1.0

Minor Changes

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 50% 3/6
🟢 Branches 100% 0/0
🔴 Functions 50% 1/2
🔴 Lines 25% 1/4

Test suite run success

15 tests passing in 7 suites.

Report generated by 🧪jest coverage report action from 63489b1

Show full coverage report
St File % Stmts % Branch % Funcs % Lines Uncovered Line #s
🟡 All files 50 100 50 25
🟢  greeting.ts 100 100 100 100
🔴  index.ts 0 100 0 0 1-4

@TheUnderScorer
TheUnderScorer merged commit ff7156a into main Jul 8, 2026
18 checks passed
@TheUnderScorer
TheUnderScorer deleted the feature/add-native-changeset-preset branch July 8, 2026 13:10
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.

3 participants