Skip to content

Conversation

@obabichevjb
Copy link
Collaborator

Description

Migration of kotlinx.datetime from version 6 to version 7


Type of Change

Updates/remove existing public API methods:

  • Is breaking change

Affected databases:

  • All

Related Issues

EXPOSED-813 When is the plan to migrate kotlinx.datetime.Instant to kotlin.time.Instant?

@obabichevjb obabichevjb force-pushed the obabichev/exposed-813-migrate-instant branch from 91ecabe to c8812f0 Compare July 11, 2025 12:11
@obabichevjb obabichevjb requested review from bog-walk and e5l July 11, 2025 13:12
joda-time = "2.14.0"
junit = "4.13.2"
kotlinx-datetime = "0.6.2"
kotlinx-datetime = "0.7.1-0.6.x-compat"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I took compat version to have original Instant inside kotlinx.datetime. Otherwise it would be typealias to kotlin.time.Instant, and our api spec generator updates APIs and changes type of Instant to the kotlin.time.Instant

Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

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

lgtm, please also update the release notes

Copy link
Member

@bog-walk bog-walk left a comment

Choose a reason for hiding this comment

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

Just 3 things to consider adding:

  • (as mentioned above) Section in 1.0.0 migration guide
  • Missing deprecation on XKotlinInstantColumnType
  • Link to official library section in deprecation message for more details

@obabichevjb obabichevjb merged commit 68b07a5 into main Jul 17, 2025
6 checks passed
@obabichevjb obabichevjb deleted the obabichev/exposed-813-migrate-instant branch July 17, 2025 09:55
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.

4 participants