Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give some love to the project #150

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

guizmaii
Copy link
Contributor

@guizmaii guizmaii commented Jan 9, 2025

  • update Scala versions
  • update dependencies
  • update sbt
  • update sbt plugins
  • remove usage of some deprecated methods
  • remove some compilation warnings

@guizmaii guizmaii requested a review from vitaliihonta as a code owner January 9, 2025 07:56
@guizmaii guizmaii changed the title Updates project Update project Jan 9, 2025
@@ -39,7 +41,7 @@ val publishSettings = Seq(
id = "vitaliihonta",
name = "Vitalii Honta",
email = "[email protected]",
url = new URL("https://github.com/vitaliihonta")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was emitting a deprecation warning

@@ -4,6 +4,6 @@ trait ZSearchAttributeMetaEnumInstances {

/** Provides an attribute meta for old [[scala.Enumeration]]
*/
def enumeration(enum: Enumeration): ZSearchAttributeMeta.Of[enum.Value, ZSearchAttribute.Keyword, String] =
new ZSearchAttributeMeta.KeywordMeta[enum.Value](_.toString, raw => enum.withName(raw))
def enumeration(`enum`: Enumeration): ZSearchAttributeMeta.Of[`enum`.Value, ZSearchAttribute.Keyword, String] =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was emitting a warning telling that enum will be a reserved keyword in Scala3 and should be replaced with a backticked name

@@ -156,34 +156,34 @@ object ZSearchAttributeMeta extends ZSearchAttributeMetaCollectionInstances with
override def decode(value: A): A = value
}

private final object StringMeta extends SimplePlainMeta[String] {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was emitting a warning saying that the final is redundant

@@ -226,7 +226,7 @@ object ZAsync {
)(f: A => ZAsync[B]
)(implicit bf: BuildFrom[Collection[A], B, Collection[B]]
): ZAsync[Collection[B]] =
in.foldLeft[ZAsync[mutable.Builder[B, Collection[B]]]](succeed(bf(in)))((acc, a) => acc.zipWith(f(a))(_ += _))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Builder.apply is deprecated in favour of Builder.newBuilder

@@ -215,21 +215,21 @@ object ZSaga {

def interpret[A0](saga: ZSaga[A0]): Either[Throwable, A0] =
saga match {
case succeed: Succeed[A0] => Right(succeed.value)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was emitting a warning as the program is not able to type check the A0 type as it's eliminated at runtime

temporalSaga.addCompensation((() => compensation.compensate()): Proc)
interpret(compensation.cont)

case cont: Bind[baseA, A0] =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What was baseA? 🤔

@@ -35,6 +35,6 @@ class ZioLocalWorkflowImpl extends ZioLocalWorkflow {

override def complete(): Unit = {
logger.info("Completion received!")
state := ()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was emitting a warning saying that this syntax was deprecated

@guizmaii guizmaii changed the title Update project Give some love to the project Jan 9, 2025
@guizmaii guizmaii force-pushed the updates branch 3 times, most recently from c8d9122 to 8dfb458 Compare January 9, 2025 09:59
Comment on lines +60 to +61
scalaVersion := scala213,
crossScalaVersions := allScalaVersions,

Choose a reason for hiding this comment

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

Added this because the scala version used by default in each module was a bit chaotic.

You can see that by running sbt 'show scalaVersion'

@guizmaii guizmaii force-pushed the updates branch 2 times, most recently from 5107e10 to 8bb00b1 Compare January 10, 2025 00:21
- update Scala versions
- update dependencies
- update sbt
- update sbt plugins
- remove usage of some deprecated methods
- remove some compilation warnings
@vitaliihonta
Copy link
Owner

@guizmaii thank you so much for contributing ❤️
The CI broke somehow, so I'll take care of the rest once it's fixed

@vitaliihonta vitaliihonta merged commit 40429e4 into vitaliihonta:main Jan 13, 2025
2 of 6 checks passed
@guizmaii guizmaii deleted the updates branch January 13, 2025 22:29
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.

3 participants