Skip to content

chore: merge node v5 to main #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed

chore: merge node v5 to main #470

wants to merge 15 commits into from

Conversation

marandaneto
Copy link
Member

@marandaneto marandaneto commented Apr 25, 2025

Problem

new major for RN, Node and Web
All PRs merged into this branch have already been reviewed.

See the changelog of each package to see whats removed/renamed/changed, etc

Changes

Release info Sub-libraries affected

Bump level

  • Major
  • Minor
  • Patch

Libraries affected

  • All of them
  • posthog-web
  • posthog-node
  • posthog-ai
  • posthog-react-native

Changelog notes

  • Added support for X

@marandaneto marandaneto mentioned this pull request Apr 25, 2025
4 tasks
Copy link

github-actions bot commented Apr 25, 2025

Size Change: -884 B (-0.37%)

Total Size: 238 kB

Filename Size Change
posthog-node/lib/index.cjs.js 37.1 kB -444 B (-1.18%)
posthog-node/lib/index.esm.js 36.8 kB -440 B (-1.18%)
ℹ️ View Unchanged
Filename Size
posthog-ai/lib/anthropic/index.cjs.js 2.85 kB
posthog-ai/lib/anthropic/index.esm.js 2.7 kB
posthog-ai/lib/index.cjs.js 12.8 kB
posthog-ai/lib/index.esm.js 12.5 kB
posthog-ai/lib/langchain/index.cjs.js 7.72 kB
posthog-ai/lib/langchain/index.esm.js 7.5 kB
posthog-ai/lib/openai/index.cjs.js 2.76 kB
posthog-ai/lib/openai/index.esm.js 2.61 kB
posthog-ai/lib/vercel/index.cjs.js 3.91 kB
posthog-ai/lib/vercel/index.esm.js 3.87 kB
posthog-react-native/lib/posthog-core/src/eventemitter.js 1.08 kB
posthog-react-native/lib/posthog-core/src/featureFlagUtils.js 1.51 kB
posthog-react-native/lib/posthog-core/src/index.js 12.7 kB
posthog-react-native/lib/posthog-core/src/lz-string.js 1.42 kB
posthog-react-native/lib/posthog-core/src/types.js 1.07 kB
posthog-react-native/lib/posthog-core/src/utils.js 1.83 kB
posthog-react-native/lib/posthog-core/src/vendor/uuidv7.js 2.04 kB
posthog-react-native/lib/posthog-react-native/index.js 477 B
posthog-react-native/lib/posthog-react-native/src/autocapture.js 1.8 kB
posthog-react-native/lib/posthog-react-native/src/frameworks/wix-navigation.js 505 B
posthog-react-native/lib/posthog-react-native/src/hooks/useFeatureFlag.js 437 B
posthog-react-native/lib/posthog-react-native/src/hooks/useFeatureFlags.js 362 B
posthog-react-native/lib/posthog-react-native/src/hooks/useNavigationTracker.js 707 B
posthog-react-native/lib/posthog-react-native/src/hooks/usePostHog.js 249 B
posthog-react-native/lib/posthog-react-native/src/legacy.js 810 B
posthog-react-native/lib/posthog-react-native/src/native-deps.js 1.34 kB
posthog-react-native/lib/posthog-react-native/src/optional/OptionalAsyncStorage.js 183 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalExpoApplication.js 215 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalExpoDevice.js 211 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalExpoFileSystem.js 224 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalExpoLocalization.js 216 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalReactNativeDeviceInfo.js 220 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalReactNativeLocalize.js 169 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalReactNativeNavigation.js 218 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalReactNativeNavigationWix.js 222 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalReactNativeSafeArea.js 312 B
posthog-react-native/lib/posthog-react-native/src/optional/OptionalSessionReplay.js 231 B
posthog-react-native/lib/posthog-react-native/src/posthog-rn.js 4.85 kB
posthog-react-native/lib/posthog-react-native/src/PostHogContext.js 210 B
posthog-react-native/lib/posthog-react-native/src/PostHogProvider.js 1.75 kB
posthog-react-native/lib/posthog-react-native/src/storage.js 1.09 kB
posthog-react-native/lib/posthog-react-native/src/surveys/components/BottomSection.js 630 B
posthog-react-native/lib/posthog-react-native/src/surveys/components/Cancel.js 527 B
posthog-react-native/lib/posthog-react-native/src/surveys/components/ConfirmationMessage.js 738 B
posthog-react-native/lib/posthog-react-native/src/surveys/components/QuestionHeader.js 541 B
posthog-react-native/lib/posthog-react-native/src/surveys/components/QuestionTypes.js 2.81 kB
posthog-react-native/lib/posthog-react-native/src/surveys/components/SurveyModal.js 1.59 kB
posthog-react-native/lib/posthog-react-native/src/surveys/components/Surveys.js 1.82 kB
posthog-react-native/lib/posthog-react-native/src/surveys/getActiveMatchingSurveys.js 902 B
posthog-react-native/lib/posthog-react-native/src/surveys/icons.js 1.86 kB
posthog-react-native/lib/posthog-react-native/src/surveys/index.js 222 B
posthog-react-native/lib/posthog-react-native/src/surveys/PostHogSurveyProvider.js 1.82 kB
posthog-react-native/lib/posthog-react-native/src/surveys/surveys-utils.js 2.33 kB
posthog-react-native/lib/posthog-react-native/src/surveys/useActivatedSurveys.js 1.41 kB
posthog-react-native/lib/posthog-react-native/src/surveys/useSurveyStorage.js 690 B
posthog-react-native/lib/posthog-react-native/src/types.js 90 B
posthog-react-native/lib/posthog-react-native/src/version.js 124 B
posthog-web/lib/index.cjs.js 24.1 kB
posthog-web/lib/index.esm.js 24.1 kB

compressed-size-action

@@ -4,6 +4,7 @@ on:
push:
branches:
- main
- v5
Copy link
Member Author

Choose a reason for hiding this comment

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

rollback once its done

@marandaneto
Copy link
Member Author

@rafaeelaudibert if you up to merge main into this branch and fix the conflicts, we can then do a final review/test together and release all 3 major versions o/

@marandaneto marandaneto requested review from rafaeelaudibert and a team June 6, 2025 07:58
@daibhin
Copy link
Contributor

daibhin commented Jun 6, 2025

@hpouillot adding you as a reviewer here because you've done a ton of work on the Node SDK recently too and might have some thoughts about things worth including in a new version

@daibhin daibhin requested a review from hpouillot June 6, 2025 08:15
@rafaeelaudibert
Copy link
Member

@marandaneto workin on it now

Node 20+ is the latest maintained version, so let's move to it. We're forced to use it on posthog-ai anyways because of the `@google/ai` package so let's standardize it across all libraries. We're also running CI on Node 20 already.
@rafaeelaudibert
Copy link
Member

Ok, I dont think my merge went well 😮‍💨. Will retry it again. I'm seeing a lot of failures for no reason

@rafaeelaudibert
Copy link
Member

Cherry-picking proved to be easier than merging/rebasing, so here's my new PR: #522

Trying to get CI green in there 🧑‍🏭

@rafaeelaudibert
Copy link
Member

Superseded by #522

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.

6 participants