Skip to content

Make deprecated IO.onError package private#4343

Merged
djspiewak merged 1 commit intotypelevel:series/3.6.xfrom
CJSmith-0141:on_error_package_private
Apr 4, 2025
Merged

Make deprecated IO.onError package private#4343
djspiewak merged 1 commit intotypelevel:series/3.6.xfrom
CJSmith-0141:on_error_package_private

Conversation

@CJSmith-0141
Copy link
Copy Markdown
Contributor

@CJSmith-0141 CJSmith-0141 commented Apr 3, 2025

This is a repeat of #4341 targeting series/3.6.x instead. Fine with closing this one or the other one, no worries :)

closes #4329

This is a source breaking change for Scala 2.12

@armanbilge armanbilge changed the title Make deprecated IO.onError package private on series/3.6.x Make deprecated IO.onError package private Apr 3, 2025
@armanbilge armanbilge linked an issue Apr 3, 2025 that may be closed by this pull request

import cats.effect.{BaseSpec, IO}

class IOCompilationSpec extends BaseSpec {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can just put this into IOSpec.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When it's in IOSpec it picks up the deprecated method. Is that ok?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ooooh I see, this is outside the package. Okay nvm

@djspiewak djspiewak merged commit e3c932a into typelevel:series/3.6.x Apr 4, 2025
34 of 36 checks passed
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.

Allow IO.onError to be passed a total function

3 participants