-
Notifications
You must be signed in to change notification settings - Fork 0
fix: changes for FFI API in Deno 1.44 #3
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3 +/- ##
==========================================
+ Coverage 86.65% 86.78% +0.12%
==========================================
Files 8 8
Lines 727 734 +7
Branches 65 65
==========================================
+ Hits 630 637 +7
Misses 93 93
Partials 4 4 ☔ View full report in Codecov by Sentry. |
@coderabbitai review |
Actions performedReview triggered.
|
WalkthroughThe recent changes focus on improving compatibility with Deno 1.44 by updating how handle values are checked in Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant Client
participant Constants
participant Server
Client->>Constants: Check INVALID_HANDLE_VALUE
Constants-->>Client: Return array of invalid values
Client->>Server: Request to create named pipe
Server->>Constants: Validate handle value
Constants-->>Server: Return array of invalid values
Server-->>Client: Confirm handle validity
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
server.ts (1)
Line range hint
164-164
: Please specify a type for the variable to avoid the implicitany
type issue flagged by the static analysis tool.// Example fix: let someVariable: number; // Adjust the type as necessary
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- client.ts (1 hunks)
- constants.ts (1 hunks)
- server.ts (1 hunks)
Additional context used
Biome
server.ts
[error] 164-164: This variable implicitly has the any type.
Variable declarations without type annotation and initialization implicitly have the any type. Declare a type or initialize the variable with some value.
Additional comments not posted (3)
constants.ts (1)
1-6
: The update toINVALID_HANDLE_VALUE
to support an array of values is well-implemented and aligns with the changes in Deno 1.44. The inclusion of detailed comments with references enhances maintainability and clarity.client.ts (1)
84-86
: The updated assertion in theconnect
function correctly utilizes the new array format ofINVALID_HANDLE_VALUE
to check for invalid handles. This change ensures compatibility with Deno 1.44 and improves error handling.server.ts (1)
218-220
: The updated assertion in thecreateNamedPipe
function correctly utilizes the new array format ofINVALID_HANDLE_VALUE
to check for invalid handles. This change ensures compatibility with Deno 1.44 and improves error handling.
Prior to Deno 1.44, -1n was returned as the error handle.
See: denoland/deno#23981
Summary by CodeRabbit