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

Announcing Scala.js 1.18.1. #649

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Jan 6, 2025

No description provided.

@sjrd sjrd requested a review from gzm0 January 6, 2025 10:46
_posts/news/2025-01-07-announcing-scalajs-1.18.0.md Outdated Show resolved Hide resolved
_posts/news/2025-01-07-announcing-scalajs-1.18.0.md Outdated Show resolved Hide resolved
if (i > 40) throw new IllegalArgumentException
}
class Child extends Parent({
val p = try new Parent(42) catch { case _: IllegalArgumentException => break() }
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this is very confusing, because the Parent class is also used as a value. How about:

Suggested change
val p = try new Parent(42) catch { case _: IllegalArgumentException => break() }
val p = try Integer.parseInt("foo") catch { case _: NumberFormatException => break() }

And remove the check in Parent?

The changes you are most likely to hit are:

* We renamed `NoType` to `VoidType`, which represents the IR type `void`.
`void` is now generally handled more regularly, as any other type of the type system.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`void` is now generally handled more regularly, as any other type of the type system.
`void` is now generally handled more regularly.

?

_posts/news/2025-01-07-announcing-scalajs-1.18.0.md Outdated Show resolved Hide resolved
_posts/news/2025-01-07-announcing-scalajs-1.18.0.md Outdated Show resolved Hide resolved
Copy link
Member Author

@sjrd sjrd left a comment

Choose a reason for hiding this comment

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

Updated.

_posts/news/2025-01-07-announcing-scalajs-1.18.0.md Outdated Show resolved Hide resolved
_posts/news/2025-01-07-announcing-scalajs-1.18.0.md Outdated Show resolved Hide resolved
@sjrd sjrd requested a review from gzm0 January 7, 2025 08:16
Copy link
Contributor

@gzm0 gzm0 left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe we want to hold off until we know what the IR checking issue raised on Discord is about.

@sjrd
Copy link
Member Author

sjrd commented Jan 7, 2025

I just opened an issue and its fix PR in the core repo. It actually seems pretty important. Maybe we should immediately release a 1.18.1 and skip 1.18.0.

@sjrd sjrd changed the title Announcing Scala.js 1.18.0. Announcing Scala.js 1.18.1. Jan 8, 2025
@sjrd sjrd requested a review from gzm0 January 8, 2025 08:47
@@ -34,3 +34,4 @@
- 1.13.0
- 1.16.0
- 1.17.0
- 1.18.0
Copy link

Choose a reason for hiding this comment

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

Should this be 1.18.1?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this is the list of base versions for IR. They're all .0s.

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