slackhq/compose-lints (com.slack.lint.compose:compose-lint-checks)
### [`v1.3.1`](https://togithub.com/slackhq/compose-lints/blob/HEAD/CHANGELOG.md#131)
[Compare Source](https://togithub.com/slackhq/compose-lints/compare/1.3.0...1.3.1)
*2024-01-25*
- Lower the lint API back to `14`, not `15`.
### [`v1.3.0`](https://togithub.com/slackhq/compose-lints/blob/HEAD/CHANGELOG.md#130)
[Compare Source](https://togithub.com/slackhq/compose-lints/compare/1.2.0...1.3.0)
*2024-01-25*
- **New**: Implement `ModifierComposed` check to lint against use of `Modifier.composed`, which is no longer recommended in favor of the new `Modifier.Node` API.
- **New**: Implement `ComposeUnstableReceiver` check to warn when composable extension functions or composables instance functions have unstable receivers/containing classes.
- **New**: Check for property accessors with composition locals.
- **Enhancement**: The `ComposeComposableModifier` message now recommends the new `Modifier.Node` API.
- **Enhancement**: Make lints **significantly** more robust to edge cases like typealiases, import aliases, parentheses, fully-qualified references, and whitespace. Our tests now cover all these cases.
- **Enhancement**: Update `@Preview` detection to also detect Compose Desktop's own `@Preview` annotation.
- **Enhancement**: Improve the `ComposeParameterOrder` check to only lint the parameter list and add a quickfix.
- **Enhancement**: Add support for checking for loops in multiple content emitters.
- **Fix**: Fix allowed names config for Unit-returning functions.
- **Fix**: Ignore context receivers in multiple content emissions lint.
- **Fix**: Allow nullable types for trailing lambdas in `ComposeParameterOrder`.
- **Fix**: Best-effort work around name mangling when comparing name in M2ApiDetector's allow list.
- **Fix**: Fix `ComposePreviewPublic` to always just require private, remove preview parameter configuration.
- **Docs**: Improve docs for `ComposeContentEmitterReturningValues`
- Build against lint-api `31.2.2`.
- Test against lint-api `31.4.0-alpha06`.
- Raise Kotlin apiVersion/languageVersion to `1.9.0`.
Special thanks to [@jzbrooks](https://togithub.com/jzbrooks), [@joeMalebe](https://togithub.com/joeMalebe), [@dellisd](https://togithub.com/dellisd) for contributing to this release!
Configuration
π Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.2.0
->1.3.1
Release Notes
slackhq/compose-lints (com.slack.lint.compose:compose-lint-checks)
### [`v1.3.1`](https://togithub.com/slackhq/compose-lints/blob/HEAD/CHANGELOG.md#131) [Compare Source](https://togithub.com/slackhq/compose-lints/compare/1.3.0...1.3.1) *2024-01-25* - Lower the lint API back to `14`, not `15`. ### [`v1.3.0`](https://togithub.com/slackhq/compose-lints/blob/HEAD/CHANGELOG.md#130) [Compare Source](https://togithub.com/slackhq/compose-lints/compare/1.2.0...1.3.0) *2024-01-25* - **New**: Implement `ModifierComposed` check to lint against use of `Modifier.composed`, which is no longer recommended in favor of the new `Modifier.Node` API. - **New**: Implement `ComposeUnstableReceiver` check to warn when composable extension functions or composables instance functions have unstable receivers/containing classes. - **New**: Check for property accessors with composition locals. - **Enhancement**: The `ComposeComposableModifier` message now recommends the new `Modifier.Node` API. - **Enhancement**: Make lints **significantly** more robust to edge cases like typealiases, import aliases, parentheses, fully-qualified references, and whitespace. Our tests now cover all these cases. - **Enhancement**: Update `@Preview` detection to also detect Compose Desktop's own `@Preview` annotation. - **Enhancement**: Improve the `ComposeParameterOrder` check to only lint the parameter list and add a quickfix. - **Enhancement**: Add support for checking for loops in multiple content emitters. - **Fix**: Fix allowed names config for Unit-returning functions. - **Fix**: Ignore context receivers in multiple content emissions lint. - **Fix**: Allow nullable types for trailing lambdas in `ComposeParameterOrder`. - **Fix**: Best-effort work around name mangling when comparing name in M2ApiDetector's allow list. - **Fix**: Fix `ComposePreviewPublic` to always just require private, remove preview parameter configuration. - **Docs**: Improve docs for `ComposeContentEmitterReturningValues` - Build against lint-api `31.2.2`. - Test against lint-api `31.4.0-alpha06`. - Raise Kotlin apiVersion/languageVersion to `1.9.0`. Special thanks to [@jzbrooks](https://togithub.com/jzbrooks), [@joeMalebe](https://togithub.com/joeMalebe), [@dellisd](https://togithub.com/dellisd) for contributing to this release!Configuration
π Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.