Skip to content

Conversation

@bubenheimer
Copy link
Contributor

@bubenheimer bubenheimer commented Jan 29, 2024

The PR replaces public constructors on State objects with invoke() factory functions in public companion objects. @StateFactoryMarker can only be applied to functions, not constructors. The chosen constructor replacement approach minimizes the required refactoring impact on correct State object usages, requiring no refactoring in the vast majority of cases.

Fixes #506

…thout remember or similar mechanisms.

The PR replaces public constructors on State objects with `invoke()` factory functions in public companion objects. `@StateFactoryMarker` can only be applied to functions, not constructors. The chosen constructor replacement approach minimizes the required refactoring impact on correct State object usages, requiring no refactoring in the vast majority of cases.

Fixes googlemaps#506
@bubenheimer bubenheimer force-pushed the leverage_statefactorymarker branch from 1221115 to bb1a277 Compare February 2, 2024 02:38
@kikoso kikoso mentioned this pull request May 6, 2024
4 tasks
@kikoso kikoso changed the title fix!: leverage @StateFactoryMarker to flag State object creation wi… fix!: leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms. May 7, 2024
@dkhawk dkhawk changed the title fix!: leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms. fix: leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms. Jul 3, 2024
@dkhawk dkhawk merged commit 9ed3f7a into googlemaps:main Jul 3, 2024
googlemaps-bot pushed a commit that referenced this pull request Jul 3, 2024
# [6.0.0](v5.0.3...v6.0.0) (2024-07-03)

### Bug Fixes

* fix release step ([#586](#586)) ([e5dc195](e5dc195))
* leverage `@StateFactoryMarker` to flag State object creation without remember or similar mechanisms. ([#516](#516)) ([9ed3f7a](9ed3f7a)), closes [#506](#506)
* Return early in rememberComposeBitmapDescriptor for invalid view size ([#533](#533)) ([db97e65](db97e65))

### BREAKING CHANGES

* leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms

Co-authored-by: Uli Bubenheimer <bubenheimer@users.noreply.github.com>
@googlemaps-bot
Copy link
Contributor

🎉 This issue has been resolved in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flag non-remembered State object creation

4 participants