Skip to content

Conversation

@NisargIO
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
react-scan ⬜️ Skipped (Inspect) Dec 12, 2024 8:38am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 12, 2024

Open in Stackblitz

npm i https://pkg.pr.new/aidenybai/react-scan@106

commit: bf95a0c

- Removed unused imports and variables
- Reorganized code for better readability
- Added optional parameters for path, params, commit, and branch in Monitoring component
- Updated getSession function to accept optional commit and branch parameters
- Updated flush function to pass commit and branch to getSession
- Updated toPayloadInteraction function to include commit and branch in interaction payload
- Updated initPerformanceMonitoring function to include commit and branch in performance entry
- Updated Session interface to include url, route, commit, and branch properties
- Updated Interaction interface to include commit and branch properties
- Updated InternalInteraction interface to include commit and branch properties
- Updated AstroMonitor component to use path instead of pathname prop
- Updated AstroMonitor component to pass path and params to computeRoute function
- Updated MonitoringWithoutRouteProps interface to include optional commit and branch properties
- Updated the `getInteractionId` function to clarify path replacement behavior.
- Refactored `splitInteractions` to use a for-loop instead of forEach for better performance.
- Changed the initialization of `pendingInteractions` and `completedInteractions` to use `new Array<InternalInteraction>()`.
- Enhanced type definitions by adding `Component` to imports from './types'.
- Improved code readability and organization.
- Added a warning message to the build scripts in both root and scan package to remind developers to bump the version before building.
- Refactored file handling in `tsup.config.ts` to use `fs/promises` for asynchronous file operations.
- Enhanced the `flush` function in the network monitoring module to improve interaction handling and ensure proper session management.
- Updated type definitions for `Interaction` and `Component` to allow for numeric interaction IDs.
- Modified the `getSession` function to include the package version in the session data.
Copy link
Owner

@aidenybai aidenybai left a comment

Choose a reason for hiding this comment

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

no

@NisargIO NisargIO merged commit b40def9 into main Dec 12, 2024
5 checks passed
@NisargIO NisargIO deleted the nisarg/commits-and-paths branch December 12, 2024 08:48
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