Skip to content

Allow PostHog packages to release individually#196

Merged
marandaneto merged 3 commits into
mainfrom
chore/individual-package-releases
May 6, 2026
Merged

Allow PostHog packages to release individually#196
marandaneto merged 3 commits into
mainfrom
chore/individual-package-releases

Conversation

@marandaneto

Copy link
Copy Markdown
Member

💡 Motivation and Context

A changeset that only bumped PostHog caused PostHog.AspNetCore and PostHog.AI to be versioned and released too, because their Changesets metadata used workspace:* for the internal PostHog dependency.

Switching those internal dependency ranges to workspace:^ keeps compatible PostHog patch/minor releases from forcing dependency-only bumps of the dependent packages, so each package can be released individually unless it has its own changeset or the dependency update falls outside the compatible range.

💚 How did you test it?

  • pnpm install --frozen-lockfile
  • Temporarily added a test changeset for only PostHog, ran pnpm changeset version, and verified only src/PostHog/package.json / src/PostHog/CHANGELOG.md changed for the release; PostHog.AspNetCore and PostHog.AI were not version-bumped. Reverted the temporary generated files before committing.
  • git diff --check

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

If releasing new changes

  • Ran pnpm changeset to generate a changeset file

@marandaneto
marandaneto requested review from a team and haacked as code owners May 5, 2026 18:45
@greptile-apps

greptile-apps Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "chore: allow individual package releases" | Re-trigger Greptile

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

posthog-dotnet Compliance Report

Date: 2026-05-06 22:05:10 UTC
Duration: 568ms

⚠️ Some Tests Failed

2/16 tests passed, 14 failed


Feature_Flags Tests

⚠️ 2/16 tests passed, 14 failed

View Details
Test Status Duration
Request Payload.Request With Person Properties Device Id 41ms
Request Payload.Flags Request Uses V2 Query Param 21ms
Request Payload.Flags Request Hits Flags Path Not Decide 5ms
Request Payload.Flags Request Omits Authorization Header 5ms
Request Payload.Token In Flags Body Matches Init 5ms
Request Payload.Groups Round Trip 5ms
Request Payload.Groups Default To Empty Object 5ms
Request Payload.Person Properties Distinct Id Auto Populated When Caller Omits It 4ms
Request Payload.Disable Geoip False Propagates As Geoip Disable False 5ms
Request Payload.Disable Geoip Omitted Defaults To False 5ms
Request Payload.Flag Keys To Evaluate Contains Only Requested Key 5ms
Request Lifecycle.No Flags Request On Init Alone 3ms
Request Lifecycle.No Flags Request On Normal Capture 178ms
Request Lifecycle.Two Flag Calls Produce Two Remote Requests 6ms
Request Lifecycle.Mock Response Value Is Returned To Caller 5ms
Side Effect Events.Get Feature Flag Captures Feature Flag Called Event 5ms

Failures

request_payload.request_with_person_properties_device_id

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.flags_request_uses_v2_query_param

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.flags_request_hits_flags_path_not_decide

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.flags_request_omits_authorization_header

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.token_in_flags_body_matches_init

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.groups_round_trip

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.groups_default_to_empty_object

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.person_properties_distinct_id_auto_populated_when_caller_omits_it

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.disable_geoip_false_propagates_as_geoip_disable_false

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.disable_geoip_omitted_defaults_to_false

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_payload.flag_keys_to_evaluate_contains_only_requested_key

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_lifecycle.two_flag_calls_produce_two_remote_requests

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

request_lifecycle.mock_response_value_is_returned_to_caller

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

side_effect_events.get_feature_flag_captures_feature_flag_called_event

404, message='Not Found', url='http://sdk-adapter:8080/get_feature_flag'

@marandaneto

Copy link
Copy Markdown
Member Author

@PostHog/team-client-libraries on the other hand this is quite nice, so not sure if we should keep as is and change the other monorepos to do this or if its better to be controlled, wdyt?
found by 92dd0e9

@marandaneto
marandaneto requested a review from a team May 6, 2026 08:46

@ioannisj ioannisj 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.

@PostHog/team-client-libraries on the other hand this is quite nice, so not sure if we should keep as is and change the other monorepos to do this or if its better to be controlled, wdyt? found by 92dd0e9

For me it makes a lot more sense for this to be controlled. So a base package update should not always release dependent packages. Otherwise the versions are too chained together, and a potential bug in a base package version will propagate to all packages immediately.

We'll also need to update the note in RELEASING.md as well

@marandaneto
marandaneto enabled auto-merge (squash) May 6, 2026 09:37
# Conflicts:
#	src/PostHog.AI/package.json
#	src/PostHog.AspNetCore/package.json
@marandaneto
marandaneto merged commit 271a7d6 into main May 6, 2026
14 checks passed
@marandaneto
marandaneto deleted the chore/individual-package-releases branch May 6, 2026 22:07
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