Skip to content

Add styles export support & async disposal#158

Merged
shgysk8zer0 merged 1 commit intomasterfrom
feature/styles-and-dispose
Feb 27, 2026
Merged

Add styles export support & async disposal#158
shgysk8zer0 merged 1 commit intomasterfrom
feature/styles-and-dispose

Conversation

@shgysk8zer0
Copy link
Member

Support exported module styles and introduce async disposal for navigation events. Router: add an AsyncDisposableStack instance to AegisNavigationEvent with APIs (stack, disposed, adopt, defer, use, disposeAsync) and pass the stack into waitUntil; implement Symbol.asyncDispose to abort the event signal and dispose the stack. Ensure events are cleaned up via requestAnimationFrame(...[Symbol.asyncDispose]) in navigate, popstate, submit flow and other navigation helpers. Add _addStyle to adopt CSSStyleSheet(s) and call it when modules export a styles value. UI: temporarily disable submit buttons during form-submit navigation. Config: allow highlight.js stylesheet assets in CSP. Metadata: bump package version to 1.1.15 and add changelog entry.

Description and issue

Please add relevant sections (Added, removed, changed, fixed) to CHANGELOG.md

List of significant changes made

Support exported module styles and introduce async disposal for navigation events. Router: add an AsyncDisposableStack instance to AegisNavigationEvent with APIs (stack, disposed, adopt, defer, use, disposeAsync) and pass the stack into waitUntil; implement Symbol.asyncDispose to abort the event signal and dispose the stack. Ensure events are cleaned up via requestAnimationFrame(...[Symbol.asyncDispose]) in navigate, popstate, submit flow and other navigation helpers. Add _addStyle to adopt CSSStyleSheet(s) and call it when modules export a styles value. UI: temporarily disable submit buttons during form-submit navigation. Config: allow highlight.js stylesheet assets in CSP. Metadata: bump package version to 1.1.15 and add changelog entry.
@shgysk8zer0 shgysk8zer0 added the enhancement New feature or request label Feb 27, 2026
@shgysk8zer0 shgysk8zer0 self-assigned this Feb 27, 2026
@shgysk8zer0 shgysk8zer0 merged commit 1d566e7 into master Feb 27, 2026
7 checks passed
@shgysk8zer0 shgysk8zer0 deleted the feature/styles-and-dispose branch February 27, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant