Skip to content

perf(analytics): skip validateStruct in release mode#8716

Merged
mikehardy merged 3 commits intoinvertase:mainfrom
philipheinser:patch-1
Dec 2, 2025
Merged

perf(analytics): skip validateStruct in release mode#8716
mikehardy merged 3 commits intoinvertase:mainfrom
philipheinser:patch-1

Conversation

@philipheinser
Copy link
Copy Markdown
Contributor

Description

Skip superstruct create in production to improve performance.

Related issues

#8638

Skip superstruct create in production to improve performance.
@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-native-firebase Ready Ready Preview Comment Sep 30, 2025 0:02am

@github-actions
Copy link
Copy Markdown

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions Bot added the Stale label Oct 28, 2025
@philipheinser
Copy link
Copy Markdown
Contributor Author

@mikehardy Would you mind having a look

@github-actions
Copy link
Copy Markdown

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions Bot added the Stale label Nov 25, 2025
@mikehardy
Copy link
Copy Markdown
Collaborator

This is still open because I do like the idea, apologies I haven't been decisive about getting it yet

@github-actions github-actions Bot removed the Stale label Nov 26, 2025
@mikehardy mikehardy added Workflow: Needs Review Pending feedback or review from a maintainer. and removed Needs Attention labels Nov 29, 2025
Copy link
Copy Markdown
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

I can't think of how the errors thrown in prod would be recoverable anyway so I think this is likely fine. I proposed a small suggestion which I will apply, for lint

Comment thread packages/analytics/lib/struct.js Outdated
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 29, 2025

@mikehardy is attempting to deploy a commit to the Invertase Team on Vercel.

A member of the Team first needs to authorize it.

@mikehardy mikehardy changed the title fix: Optimize validateStruct for production usage perf(analytics): skip validateStruct in release mode Nov 29, 2025
@mikehardy mikehardy added Workflow: Pending Merge Waiting on CI or similar and removed Workflow: Needs Review Pending feedback or review from a maintainer. labels Nov 29, 2025
Comment thread packages/analytics/lib/struct.js Outdated
@mikehardy mikehardy merged commit 2b7bbb1 into invertase:main Dec 2, 2025
14 of 18 checks passed
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Dec 2, 2025
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.

2 participants