Skip to content

Yatagan 2.0 release notes and migration guide#214

Open
bacecek wants to merge 2 commits into
mainfrom
users/bacecek/yatagan_2
Open

Yatagan 2.0 release notes and migration guide#214
bacecek wants to merge 2 commits into
mainfrom
users/bacecek/yatagan_2

Conversation

@bacecek
Copy link
Copy Markdown
Collaborator

@bacecek bacecek commented Jan 2, 2026

This PR introduces a markdown file for the 2.0 release notes and migration guide.
It also contains updated README.md files for new version.

@bacecek bacecek requested a review from Jeffset January 2, 2026 13:52
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.65%. Comparing base (09ca4f6) to head (4c22a28).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #214   +/-   ##
=========================================
  Coverage     83.65%   83.65%           
  Complexity     1661     1661           
=========================================
  Files           200      200           
  Lines          7967     7967           
  Branches       1517     1517           
=========================================
  Hits           6665     6665           
  Misses          760      760           
  Partials        542      542           

☔ 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.

Comment thread MIGRATION.md Outdated
Comment on lines +65 to +66
@Conditional(FeatureA::class)
@Conditional(FeatureB::class)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This code is technically incorrect, because these two conditionals would conflict, because they lack onlyIn selector. As in "before" block too. I understand that this is only a demo code, but I'd probably be better to demo fully correct code. We could leave only one conditional, or specify onlyIn.

Comment thread MIGRATION.md Outdated

### 2. Generated Component Class Names

Generated implementation class names have changed to be more tooling-friendly.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Generated implementation class names have changed to be more tooling-friendly.
Generated implementation class names have changed to be more user-friendly, so that they can be used directly.

Comment thread MIGRATION.md Outdated

### 3. Subcomponent Binding Forbidden

Direct binding/injection of subcomponent instances is no longer allowed. Use factory methods instead.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I actually don't remember, but wan't this released in 1.x.y also?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

AFAIK here is a commit where the change was introduced: d6bf9d2
And as I can see, it was merged only in main with fix version 2.0.0

Comment thread MIGRATION.md Outdated
Comment on lines +134 to +136
### 4. Component Factory Method Behavior

All methods in a component interface returning a non-root component are now treated as factory methods, regardless of parameters.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This section is essentially the consequence of ### 3., maybe let's merge these sections? It doesn't seem to deserve a full section on its own.

@bacecek bacecek force-pushed the users/bacecek/yatagan_2 branch from ecbaa32 to c90b094 Compare March 9, 2026 16:13
@bacecek
Copy link
Copy Markdown
Collaborator Author

bacecek commented Mar 9, 2026

@Jeffset I guess I have fixed mentioned problems, could you please take another look?

@bacecek bacecek force-pushed the users/bacecek/yatagan_2 branch from c90b094 to 4c22a28 Compare April 21, 2026 18:28
@bacecek bacecek marked this pull request as ready for review April 21, 2026 18:29
@bacecek bacecek requested a review from Jeffset April 21, 2026 18:29
@bacecek
Copy link
Copy Markdown
Collaborator Author

bacecek commented Apr 21, 2026

Hi, @Jeffset

I changed my mind and would like to merge the migration guide into the repository after all, and then link to it from the release tab.

I also updated the README to reflect the current state of the project.

Please take a look when you have time.

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.

2 participants