Skip to content

Release - v2.3.2#3028

Merged
dead-claudia merged 6 commits intoreleasefrom
main
Jun 7, 2025
Merged

Release - v2.3.2#3028
dead-claudia merged 6 commits intoreleasefrom
main

Conversation

@JAForbes
Copy link
Copy Markdown
Collaborator

@JAForbes JAForbes commented Jun 6, 2025

Release v2.3.2

Changelog

Patch Changes

Refactor router, fixes #2505 and #2778 (@kfule)

This PR refactors the router code to fix two issues (#2505 and #2778).

kfule added 6 commits June 6, 2025 16:22
…ixes #2778

Code that sets `fireAsync` to null and uses `hashchange` when `pushState` is not supported was removed in v2.2.0. However, some of that code and comments remained.
This ensures that the reset logic is executed even when there is an internal redirect to the default route in case of failure.
The `state` is represented as a three-valued integer, but due to the `sentinel === currentResolver` condition, a boolean state appears to be sufficient in practice. This improves code readability and further reduces the bundle size.
Since the `state` update process has been removed, `onbeforeupdate` is no longer needed. This further reduces the bundle size.
In the `update()` function, even if the `comp` parameter is undefined, it falls back to "div".
This commit slightly reduces the bundle size and optimizes the component fallback process.
@JAForbes JAForbes added the patch label Jun 6, 2025
@JAForbes JAForbes requested a review from a team as a code owner June 6, 2025 23:23
@dead-claudia dead-claudia merged commit 76d7966 into release Jun 7, 2025
7 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.

3 participants