Skip to content

chore(deps): bump kotlininject from 0.4.1 to 0.6.1 #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 27, 2023

Bumps kotlininject from 0.4.1 to 0.6.1.
Updates me.tatarka.inject:kotlin-inject-compiler-ksp from 0.4.1 to 0.6.1

Release notes

Sourced from me.tatarka.inject:kotlin-inject-compiler-ksp's releases.

v0.5.1

[0.5.1] 2022-07-05

Fixed

  • Fixed dependency resolution issue with native artifacts

v0.5.0

[0.5.0] 2022-07-02

Changed

  • The kapt backend is now deprecated and will be removed in a future release. Please migrate to ksp instead.

  • Introduced some stricter checks to catch issues with certain graph setups. This may cause graphs that compiled before to no longer compile. Specifically:

    @MyScope @Component abstract class ParentComponent
    @MyScope @Component abstract class ChildComponent(@Component val parent: ParentComponent)

    will fail with:

    Cannot apply scope: @MyScope ChildComponent
    as scope @MyScope is already applied to parent ParentComponent
    

    as it's ambiguous what the lifetime of the given scope should be. And:

    @Component abstract class ParentComponent {
      @Provides fun foo(bar: Bar): Foo = ...
    } 
    @Component abstract class ChildComponent(@Component val parent: ParentComponent) {
      abstract val foo: Foo
      @Provides fun bar(): Bar = ...
    }

    will fail with:

    Cannot find an @Inject constructor or provider for: Bar 
    

    In other words a parent component can no longer depend on a dependency provided by a child component. Not only does this lead to confusing graphs, but it can lead to memory leaks if the parent component lives longer than the child and ends holding on to that child dependency.

Added

  • You can now use function and Lazy types in Set. This allows you to lazily construct its entries without having to change the type on your @IntoSet methods.

... (truncated)

Changelog

Sourced from me.tatarka.inject:kotlin-inject-compiler-ksp's changelog.

[0.6.1] 2023-02-11

Fixed

  • Fixed code generation issues with assisted injection.

[0.6.0] 2202-12-21

Changed

  • Added the ability to explicitly mark assisted injection parameters with an @Assisted annotation. Not providing them will currently warn which will become an error in the future. This allows better documentation on which params are injected and which ones are provided by the caller. It also allows more flexibility for parameter ordering, you can put the assisted params at the start instead of at the end if you so choose.

    For example, if you have:

    @Inject class AssistedClass(arg1: One , arg2: Two, arg3: Three)
    @Inject Usage(createAssistedClass: (Two, Three) -> AssistedClass)

    you should update it to:

    @Inject class AssistedClass(arg1: One , @Assisted arg2: Two, @Assisted arg3: Three)

Fixed

  • @Inject annotations being ignored if used through a typealias, ex:
    typealias MyInject = Inject
    @MyInject class MyClassToInject

[0.5.1] 2022-07-05

Fixed

  • Fixed dependency resolution issue with native artifacts

[0.5.0] 2022-07-02

Changed

  • The kapt backend is now deprecated and will be removed in a future release. Please migrate to ksp instead.

  • Introduced some stricter checks to catch issues with certain graph setups. This may cause graphs that compiled before to no longer compile. Specifically:

    @MyScope @Component abstract class ParentComponent
    @MyScope @Component abstract class ChildComponent(@Component val parent: ParentComponent)

... (truncated)

Commits
  • 0c3182f Prepare release 0.6.1
  • 04cb398 Don't provide assisted types beyond the original level where they are declared
  • 3031f16 Bump version for dev
  • feba165 revamp the optimize step with better field naming and to be more reliable
  • 6f60af2 Fix issue with browser-tools polluting project dir breaking checkout
  • f3b19af Prepare release 0.6.0
  • 21fbd53 Work around ksp issue getting all functions from class
  • a0db895 Don't generate code for properties/methods that are overridden
  • 1ada636 Add a test case for overwriting provides functions.
  • 2220981 Generate graph when @​Inject is typealiased (#234)
  • Additional commits viewable in compare view

Updates me.tatarka.inject:kotlin-inject-runtime from 0.4.1 to 0.6.1

Release notes

Sourced from me.tatarka.inject:kotlin-inject-runtime's releases.

v0.5.1

[0.5.1] 2022-07-05

Fixed

  • Fixed dependency resolution issue with native artifacts

v0.5.0

[0.5.0] 2022-07-02

Changed

  • The kapt backend is now deprecated and will be removed in a future release. Please migrate to ksp instead.

  • Introduced some stricter checks to catch issues with certain graph setups. This may cause graphs that compiled before to no longer compile. Specifically:

    @MyScope @Component abstract class ParentComponent
    @MyScope @Component abstract class ChildComponent(@Component val parent: ParentComponent)

    will fail with:

    Cannot apply scope: @MyScope ChildComponent
    as scope @MyScope is already applied to parent ParentComponent
    

    as it's ambiguous what the lifetime of the given scope should be. And:

    @Component abstract class ParentComponent {
      @Provides fun foo(bar: Bar): Foo = ...
    } 
    @Component abstract class ChildComponent(@Component val parent: ParentComponent) {
      abstract val foo: Foo
      @Provides fun bar(): Bar = ...
    }

    will fail with:

    Cannot find an @Inject constructor or provider for: Bar 
    

    In other words a parent component can no longer depend on a dependency provided by a child component. Not only does this lead to confusing graphs, but it can lead to memory leaks if the parent component lives longer than the child and ends holding on to that child dependency.

Added

  • You can now use function and Lazy types in Set. This allows you to lazily construct its entries without having to change the type on your @IntoSet methods.

... (truncated)

Changelog

Sourced from me.tatarka.inject:kotlin-inject-runtime's changelog.

[0.6.1] 2023-02-11

Fixed

  • Fixed code generation issues with assisted injection.

[0.6.0] 2202-12-21

Changed

  • Added the ability to explicitly mark assisted injection parameters with an @Assisted annotation. Not providing them will currently warn which will become an error in the future. This allows better documentation on which params are injected and which ones are provided by the caller. It also allows more flexibility for parameter ordering, you can put the assisted params at the start instead of at the end if you so choose.

    For example, if you have:

    @Inject class AssistedClass(arg1: One , arg2: Two, arg3: Three)
    @Inject Usage(createAssistedClass: (Two, Three) -> AssistedClass)

    you should update it to:

    @Inject class AssistedClass(arg1: One , @Assisted arg2: Two, @Assisted arg3: Three)

Fixed

  • @Inject annotations being ignored if used through a typealias, ex:
    typealias MyInject = Inject
    @MyInject class MyClassToInject

[0.5.1] 2022-07-05

Fixed

  • Fixed dependency resolution issue with native artifacts

[0.5.0] 2022-07-02

Changed

  • The kapt backend is now deprecated and will be removed in a future release. Please migrate to ksp instead.

  • Introduced some stricter checks to catch issues with certain graph setups. This may cause graphs that compiled before to no longer compile. Specifically:

    @MyScope @Component abstract class ParentComponent
    @MyScope @Component abstract class ChildComponent(@Component val parent: ParentComponent)

... (truncated)

Commits
  • 0c3182f Prepare release 0.6.1
  • 04cb398 Don't provide assisted types beyond the original level where they are declared
  • 3031f16 Bump version for dev
  • feba165 revamp the optimize step with better field naming and to be more reliable
  • 6f60af2 Fix issue with browser-tools polluting project dir breaking checkout
  • f3b19af Prepare release 0.6.0
  • 21fbd53 Work around ksp issue getting all functions from class
  • a0db895 Don't generate code for properties/methods that are overridden
  • 1ada636 Add a test case for overwriting provides functions.
  • 2220981 Generate graph when @​Inject is typealiased (#234)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps `kotlininject` from 0.4.1 to 0.6.1.

Updates `me.tatarka.inject:kotlin-inject-compiler-ksp` from 0.4.1 to 0.6.1
- [Release notes](https://github.com/evant/kotlin-inject/releases)
- [Changelog](https://github.com/evant/kotlin-inject/blob/main/CHANGELOG.md)
- [Commits](evant/kotlin-inject@v0.4.1...v0.6.1)

Updates `me.tatarka.inject:kotlin-inject-runtime` from 0.4.1 to 0.6.1
- [Release notes](https://github.com/evant/kotlin-inject/releases)
- [Changelog](https://github.com/evant/kotlin-inject/blob/main/CHANGELOG.md)
- [Commits](evant/kotlin-inject@v0.4.1...v0.6.1)

---
updated-dependencies:
- dependency-name: me.tatarka.inject:kotlin-inject-compiler-ksp
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: me.tatarka.inject:kotlin-inject-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Changes that affect dependencies gradle Gradle changes labels Mar 27, 2023
@dependabot dependabot bot requested a review from sureshg March 27, 2023 19:57
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions github-actions bot merged commit 1922e4a into main Mar 27, 2023
@dependabot dependabot bot deleted the dependabot/gradle/kotlininject-0.6.1 branch March 27, 2023 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Changes that affect dependencies gradle Gradle changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants