feat: add netstandard2.0 target and flattening cache#3
Open
bmgbeokwere wants to merge 1 commit intopanoramicdata:mainfrom
Open
feat: add netstandard2.0 target and flattening cache#3bmgbeokwere wants to merge 1 commit intopanoramicdata:mainfrom
bmgbeokwere wants to merge 1 commit intopanoramicdata:mainfrom
Conversation
Codacy's Analysis Summary0 new issue (≤ 0 issue)
|
Add netstandard2.0 as a second target framework alongside net10.0, making the library consumable from older runtimes. Fixes all API incompatibilities introduced by the broader language and runtime surface of net10.0, and adds a memoisation cache for flattened property accessor resolution. - Add IsExternalInit polyfill to support record struct on netstandard2.0 - Replace ArgumentNullException.ThrowIfNull (.NET 6+) with explicit null guards - Replace index/range syntax (^, ..) with Length-1 and Substring() calls - Replace Dictionary.TryAdd with ContainsKey + Add for netstandard2.0 - Use #if NET5_0_OR_GREATER to select the correct GetMethod overload per target - Fix erroneous static modifier on MapWithDepthTracking - Cache TryBuildFlattenedGetter results keyed on (destPropertyName, sourceType) to eliminate redundant reflection on repeated configuration or validation calls - Add three new flattening cache tests covering hit, key collision, and null miss - Mark all private Profile subclasses in tests as sealed
4efe1f3 to
f64fb46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: add netstandard2.0 target and flattening cache
Add netstandard2.0 as a second target framework alongside net10.0, making the library consumable from older runtimes. Fixes all API incompatibilities introduced by the broader language and runtime surface of net10.0, and adds a memoisation cache for flattened property accessor resolution.