Skip to content

Remove copy_with_extension dependency#64

Merged
Albert221 merged 1 commit into
mainfrom
remove-copy_with-dependency
Jun 16, 2026
Merged

Remove copy_with_extension dependency#64
Albert221 merged 1 commit into
mainfrom
remove-copy_with-dependency

Conversation

@PiotrRogulski

Copy link
Copy Markdown
Member

copy_with_extension has been a major annoyance when moving between Flutter versions. leancode_kratos_client used it once to modify one field – I think we can safely do it "manually".

Copilot AI left a comment

Copy link
Copy Markdown

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 removes the copy_with_extension/copy_with_extension_gen dependency pair from leancode_kratos_client by replacing the single generated copyWith(...) usage with a small hand-written helper on AuthFlowDto, and bumps the package version accordingly.

Changes:

  • Drop copy_with_extension from dependencies and copy_with_extension_gen from dev dependencies.
  • Replace the single copyWith(sessionTokenExchangeCode: ...) call with a manual copyWithSessionTokenExchangeCode(...) method.
  • Update generated output (auth_dtos.g.dart), version, and changelog for 0.8.1.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pubspec.yaml Removes copy_with_extension* deps and bumps package version to 0.8.1.
lib/src/kratos_client.dart Switches to the new manual DTO helper for updating sessionTokenExchangeCode.
lib/src/common/api/auth_dtos.dart Removes @CopyWith and introduces copyWithSessionTokenExchangeCode(...).
lib/src/common/api/auth_dtos.g.dart Removes the previously generated CopyWith section; keeps JsonSerializable output.
CHANGELOG.md Adds a 0.8.1 entry documenting the dependency removal.
Files not reviewed (1)
  • lib/src/common/api/auth_dtos.g.dart: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Albert221 Albert221 merged commit c156922 into main Jun 16, 2026
2 checks passed
@Albert221 Albert221 deleted the remove-copy_with-dependency branch June 16, 2026 11:49
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.

4 participants