TriFrost

TriFrost 1.2.1

|peterver

News

Improved

  • feat: Enhanced $.goto with ergonomic support for query-only shorthands. If the URL starts with ?, the current location.pathname is automatically prepended. Example:
// Current URL: /dashboard?page=1
$.goto("?page=2");
// → Navigates to: /dashboard?page=2

// This was previously already there, but:
$.goto("#top");
// → Updates hash to /dashboard#top (no navigation)
  • feat: $.goto(..., { replace: true }) now uses history.replaceState(...) internally, allowing non-navigational updates to the URL, ideal for in-place query string modifications without reloads.

Loved the read? Share it with others