Skip to content

Develop - #78

Merged
ptr727 merged 3 commits into
mainfrom
develop
Feb 1, 2026
Merged

Develop#78
ptr727 merged 3 commits into
mainfrom
develop

Conversation

@ptr727

Copy link
Copy Markdown
Owner

No description provided.

ptr727and others added 2 commits January 29, 2026 21:35
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ptr727 <2061579+ptr727@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…n and validation (#77)
- Updated XML documentation in LanguageTag.cs to clarify return values
and parsing behavior.
- Enhanced LanguageTagBuilder methods to specify that they set subtags
without validation.
- Improved normalization and validation methods in LanguageTagParser to
ensure null checks are handled properly.
- Added remarks in LogOptions to clarify the effects of setting logger
factory and logger after creation.
- Streamlined async file handling in Rfc5646Data to use 'using'
statements for better resource management.
- Updated tests to inherit from SingleInstanceFixture for consistent
test execution and resource management.
- Refined exception handling in Program.cs to ensure proper logging and
cleanup on errors.
- General code cleanup and consistency improvements across various
files.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ptr727 <2061579+ptr727@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CopilotAI review requested due to automatic review settings February 1, 2026 17:21

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the LanguageTags library to follow standardized patterns across projects, with significant breaking changes to the public API.

Changes:

  • Renamed async methods to follow the From pattern (e.g., LoadDataAsync()FromDataAsync())
  • Simplified logging configuration to use static LogOptions.SetFactory(ILoggerFactory) instead of per-instance options
  • Streamlined API by removing Options parameter overloads throughout the codebase
  • Updated documentation across README, HISTORY, CODESTYLE, AGENTS, and copilot-instructions files
  • Modernized code with cleaner using statements and pattern matching
  • Added comprehensive test coverage for new From pattern methods

Reviewed changes

Copilot reviewed 36 out of 37 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
README.mdUpdated documentation for breaking changes, new API patterns, and simplified logging configuration
LanguageTagsTests/*.csUpdated tests to use FromDataAsync/FromJsonAsync, added new test cases, inherited from SingleInstanceFixture
LanguageTagsTests/Fixture.csRefactored to use AssemblyFixture pattern and SingleInstanceFixture base class
LanguageTagsTests/.editorconfigAdded suppressions for test-specific diagnostics
LogOptionsTests.csSimplified tests to match new static-only logging configuration
LanguageTags/Options.csRemoved entire file (Options class no longer needed)
LanguageTags/LogOptions.csSimplified to static-only configuration, removed instance logger support
LanguageTags/Rfc5646Data.csChanged to instance methods for loading, added FromDataAsync/FromJsonAsync static factories
LanguageTags/Iso6393Data.csChanged to instance methods for loading, added FromDataAsync/FromJsonAsync static factories
LanguageTags/Iso6392Data.csChanged to instance methods for loading, added FromDataAsync/FromJsonAsync static factories
LanguageTags/LanguageTag.csRemoved Options parameter overloads, updated documentation
LanguageTags/LanguageTagParser.csSimplified to remove Options support, modernized pattern matching
LanguageTags/LanguageTagBuilder.csRemoved Options parameter overloads, improved documentation
LanguageTags/LanguageLookup.csChanged from primary constructor with Options to lazy logger initialization
LanguageTags/LanguageSchema.csRemoved unused WriteFileAsync method
LanguageTags/Extensions.csUpdated extension method calls to non-static pattern
LanguageTagsCreate/Program.csAdded exception handling and logger cleanup
LanguageTagsCreate/LoggerFactory.csImproved logger creation with better defaults
LanguageTagsCreate/CreateTagData.csUpdated to use new FromDataAsync methods and simplified argument validation
LanguageTagsCreate/HttpClientFactory.csSimplified pattern matching for HTTP result checking
HISTORY.mdDocumented breaking changes for version 1.2
CODESTYLE.mdUpdated documentation guidelines and testing framework reference
AGENTS.mdUpdated API documentation to reflect new patterns
.github/copilot-instructions.mdComprehensive update to reflect all API changes
.editorconfigMinor cleanup and added ReSharper settings
LanguageTags.code-workspaceAdded dictionary entries, removed deprecated extension

Comment threadLanguageTags/Iso6392Data.cs
Comment threadLanguageTagsTests/Fixture.cs
Comment threadLanguageTags/Rfc5646Data.cs
Comment threadLanguageTags/Iso6393Data.cs
@ptr727
ptr727 merged commit 919f0b2 into mainFeb 1, 2026
13 checks passed
Sign up for freeto 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

@ptr727