Skip to content

Modernize Codebase - #1608

Merged
yuce merged 8 commits into
masterfrom
modernize
Aug 21, 2026
Merged

yuce merged 8 commits into
masterfrom
modernize

Conversation

@yuce

@yuce yuce commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor
  • Upgraded Typescript from 4.9.5 to 6.0.3 (Can't use 7.0.x series yet, since some of our dependencies don't support that).
  • Updated module format from the unsupported commonjs/node to node16.
  • Upgraded dependencies.
  • Removed deprecated API (with the exception of Portable).

Upgrading to a newer Typescript version made the checks more strict,
That unearthed some problems in the code, which I've also fixed.
Other than that, most changes are due to fix type annotations (by adding | null or | undefined) to match the intention.
The files in codec (except codec/builtin) are autogenerated, so they can be safely skipped.

NOTE: Please do not mind the "Check Links" workflow failure. The link to the package on npmjs.com cannot be loaded due to their AI-prevention mechanism.

@codecov

codecov Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.70206% with 140 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.22%. Comparing base (a756754) to head (34c894c).

Files with missing lines Patch % Lines
src/codec/ClientAuthenticationCustomCodec.ts 28.20% 28 Missing ⚠️
src/network/ConnectionManager.ts 48.27% 1 Missing and 14 partials ⚠️
src/codec/ClientAuthenticationCodec.ts 65.00% 7 Missing and 7 partials ⚠️
src/invocation/InvocationService.ts 47.82% 1 Missing and 11 partials ⚠️
src/codec/MapDeleteCodec.ts 22.22% 7 Missing ⚠️
src/listener/ListenerService.ts 0.00% 4 Missing and 1 partial ⚠️
src/protocol/ClientMessage.ts 73.68% 1 Missing and 4 partials ⚠️
src/codec/builtin/CodecUtil.ts 50.00% 2 Missing and 2 partials ⚠️
src/nearcache/NearCache.ts 60.00% 2 Missing and 2 partials ⚠️
src/HazelcastClient.ts 57.14% 0 Missing and 3 partials ⚠️
... and 35 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1608      +/-   ##
==========================================
- Coverage   93.44%   92.22%   -1.23%     
==========================================
  Files         471      471              
  Lines       16767    17062     +295     
  Branches     1357     1516     +159     
==========================================
+ Hits        15668    15735      +67     
- Misses        802      919     +117     
- Partials      297      408     +111     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yuce
yuce merged commit 8e07a78 into master Aug 21, 2026
15 of 16 checks passed
@yuce
yuce deleted the modernize branch August 21, 2026 13:33
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