Remove AutoMapper dependency and implement manual property mapping#37
Open
corpo-iwillspeak wants to merge 3 commits intoolegtarasov:masterfrom
Open
Remove AutoMapper dependency and implement manual property mapping#37corpo-iwillspeak wants to merge 3 commits intoolegtarasov:masterfrom
corpo-iwillspeak wants to merge 3 commits intoolegtarasov:masterfrom
Conversation
Co-authored-by: corpo-iwillspeak <265613520+corpo-iwillspeak@users.noreply.github.com> Agent-Logs-Url: https://github.com/crispthinking/FastText.NetWrapper/sessions/4f8a1d14-bc20-46dc-974c-386441953c2d
…pendency Remove AutoMapper dependency
Author
|
This also solves half of your issues with #36 by removing the dependency. |
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.
Due to the presence of CVE-2026-32933 in AutoMapper and the more restrictive licensing of AutoMapper after 15.0 this PR removes the use of AutoMapper completely and replaces it with two dedicated mapping methods.
Open to suggestions here.
This pull request removes the dependency on AutoMapper from the
FastText.NetWrapperproject and replaces its usage with custom mapping methods. This change simplifies the codebase and reduces external dependencies. The referenced version of AutoMapper contains a vulnerability and later versions have moved to a restrictive license.Dependency removal:
FastText.NetWrapper.csprojand all relatedusing AutoMapper;statements from code files. [1] [2] [3]Code refactoring for argument mapping:
FastTextArgsand its derived classes with a newMapFromStructmethod for manual property assignment fromFastTextWrapper.FastTextArgsStruct. [1] [2] [3]FastTextArgsclass.FastTextWrapperclass constructor. [1] [2] [3]FastTextWrappermethods with new static mapping methodsToArgsStructandToAutotuneArgsStruct. [1] [2] [3] [4]