Skip to content

Comments

v1.9.21#138

Merged
gmpassos merged 1 commit intomasterfrom
refactor/type-safety-map-construction
Jan 17, 2026
Merged

v1.9.21#138
gmpassos merged 1 commit intomasterfrom
refactor/type-safety-map-construction

Conversation

@gmpassos
Copy link
Contributor

  • EntityHandler:

    • Updated all Map.unmodifiable usages to explicitly specify type arguments, e.g. Map<String, TypeInfo>.unmodifiable.
    • Updated methods including fieldsWithEntityReference, fieldsWithEntityReferenceList, fieldsEntityAnnotations, fieldsWithType, getFieldsTypes, getFieldsEnumTypes, getFieldsEntityTypes, and constructors to use typed unmodifiable maps.
    • Improved type safety in map constructions by adding explicit generic parameters.
  • Dependency updates:

    • meta: ^1.18.0

- `EntityHandler`:
  - Updated all `Map.unmodifiable` usages to explicitly specify type arguments, e.g. `Map<String, TypeInfo>.unmodifiable`.
  - Updated methods including `fieldsWithEntityReference`, `fieldsWithEntityReferenceList`, `fieldsEntityAnnotations`, `fieldsWithType`, `getFieldsTypes`, `getFieldsEnumTypes`, `getFieldsEntityTypes`, and `constructors` to use typed unmodifiable maps.
  - Improved type safety in map constructions by adding explicit generic parameters.

- Dependency updates:
  - `meta`: ^1.18.0
@gmpassos gmpassos merged commit 701a3bb into master Jan 17, 2026
3 checks passed
@codecov
Copy link

codecov bot commented Jan 17, 2026

Codecov Report

❌ Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.50%. Comparing base (5824c3d) to head (3282d19).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
lib/src/bones_api_entity.dart 68.75% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
+ Coverage   65.43%   65.50%   +0.07%     
==========================================
  Files          62       62              
  Lines       20972    20975       +3     
==========================================
+ Hits        13722    13740      +18     
+ Misses       7250     7235      -15     
Flag Coverage Δ
unittests 65.50% <68.75%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

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.

1 participant