-
Notifications
You must be signed in to change notification settings - Fork 199
chore: build with node 22 #937
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
|
Caution Review failedThe pull request is closed. WalkthroughUpdates the Node.js runtime target in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Init as App initialization
participant Client as Client.static init
participant Guards as Guard helpers (isWindow..., isUserAgent...)
Note over Client: Old flow: direct access to window/navigator
Init->>Client: trigger static initializers
Client->>Guards: call isWindowObjectAvailable()
Guards-->>Client: true/false
alt window available
Client->>Guards: call isUserAgentIncludes(...)/isAppVersionIncludes(...)
Guards-->>Client: boolean results
Client-->Init: set static flags (IS_EDGE, IS_SF, IS_ANDROID, ...)
else non-browser context
Client-->Init: set static flags to safe defaults (false/undefined)
end
Note over Guards: Guards avoid direct undefined property access and use optional chaining where applicable
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
… impact on our problem" This reverts commit e103db3.
# Conflicts: # packages/core/src/Client.ts # packages/core/src/gui/MaxLog.ts # packages/core/src/gui/MaxWindow.ts # packages/core/src/util/domUtils.ts
|




Make the
Clientclass initialization more robust.On node 22, there were some errors when running
js-example-nodejs.Notes
Covers #67
Summary by CodeRabbit
Chores
Refactor