Skip to content

Freeze the public API for 3.0.0 - #247

Merged
isaac-udy merged 2 commits into
mainfrom
release/3.0.0-api-freeze
Nov 11, 2026
Merged

isaac-udy merged 2 commits into
mainfrom
release/3.0.0-api-freeze

Conversation

@isaac-udy

Copy link
Copy Markdown
Owner

Summary

Changes that are cheaper to make before 3.0.0 freezes the public API than after.

  • Web history, path bindings and NavigationFlow are no longer @ExperimentalEnroApi. EmbeddedDestination stays experimental.
  • Generated installNavigationController code no longer suppresses INVISIBLE_REFERENCE. internalCreateEnroController and EnroLog.forceAndroidLogs are public behind @InternalEnroApi.
  • Removed the deprecated List-backstack rememberNavigationContainer overload. The 2.x-named deprecations stay.
  • PathRepository is internal. Constructors of EnroController, NavigationContainer, the context classes, NavigationContainerState and NavigationSavedStateHolder are @AdvancedEnroApi (they can't be internal: enro-test uses them).
  • enro-test compiles in explicit API mode. 69 declarations gained an explicit public; its surface is unchanged.
  • enro-compat: EnroPreview renders its content; onContainer, onParentContainer and onActiveContainer are deprecated because they never ran their block.
  • enro, enro-ui and enro-compat no longer publish material3, material-icons-extended, resources or ui-tooling dependencies (enro-compat keeps material). They use a new configure-compose-ui convention, which also depends on compose.desktop.common rather than currentOs.
  • Kotlin ABI validation is on for the library modules, with dumps committed under each module's api/ directory and checkKotlinAbi added to continuousIntegration. Advanced, Experimental and Internal APIs are excluded from the dumps.
  • POM description and licence name corrected; stale -Xfriend-paths flags removed.

Not changed

  • enro-lint still looks up the non-existent dev.enro.core.NavigationHandleProperty.
  • FlowStepBuilderScope stays: NavigationFlowScopeCompat uses it.

Test plan

  • desktopTest and JVM test pass locally
  • All modules and samples compile for Android, desktop, wasmJs and JS
  • enro-runtime and enro-ui compile for iosSimulatorArm64
  • checkKotlinAbi passes; dumps contain none of the removed or excluded names
  • Regenerated component code has @OptIn(InternalEnroApi::class) and no suppression
  • CI: Android host tests, device tests, browser tests, iOS tests
  • publishEnroLocal, then check the enro, enro-ui and enro-compat POMs

🤖 Generated with Claude Code

isaac-udy and others added 2 commits November 11, 2026 14:01
Graduate web history, path bindings and NavigationFlow out of
@ExperimentalEnroApi. EmbeddedDestination stays experimental.

Generated installNavigationController code no longer suppresses
INVISIBLE_REFERENCE: internalCreateEnroController and
EnroLog.forceAndroidLogs are public behind @InternalEnroApi.

Trim surface that was public by accident:
- remove the List-backstack rememberNavigationContainer overload
- PathRepository is internal
- constructors of EnroController, NavigationContainer, the context
  classes, NavigationContainerState and NavigationSavedStateHolder
  are @AdvancedEnroApi
- enro-test compiles in explicit API mode

enro-compat: EnroPreview renders its content; onContainer,
onParentContainer and onActiveContainer are deprecated because they
never ran their block.

enro, enro-ui and enro-compat no longer publish material, material3,
material-icons-extended, resources or ui-tooling dependencies.

Add Kotlin ABI validation with committed dumps, checked by
continuousIntegration. Advanced, Experimental and Internal APIs are
excluded from the dumps.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@isaac-udy
isaac-udy merged commit b5f6cf1 into main Nov 11, 2026
2 checks passed
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.

1 participant