v16.5.0-canary.60
- switchyard: tell Switchyard the app's route.go paths and workers: #102101
- Turbopack: resolve app directory entries in a filesystem-independent order: #102186
- docs: update Route Handler AI SDK streaming examples: #102192
Huge thanks to @sokra, @aurorascharff, and @jamiboym for helping!
7.18.0
- [update] - 2027 DST changes
-
-
- [note] -
Havanakept at −4hr, will support single-change between jan-nov
- [note] -
-
- [change] - #376 ambiguous offset input behaviour - see docs/inputs
-
- [change] - given timezone arguments are never dropped, even with inconsistent offsets
-
- [fix] - iso offsets beside a bracketed timezone are no longer ignored -
'…16:20:00Z[America/Los_Angeles]'
- [fix] - iso offsets beside a bracketed timezone are no longer ignored -
-
- [change] -
.set(input, tz)reads an input without an offset in the given timezone, like constructor
- [change] -
-
- [new] - any whole-minute offset is a fixed-offset timezone, like
'+05:14'- not only quarter-hours
- [new] - any whole-minute offset is a fixed-offset timezone, like
- [change] - interpret
'Z','UTC','Zulu', and'+00:00'more consistently -
- [fix] - trailing Z → UTC (not Etc/GMT)
-
- [new] - support
'Z'as valid iana code
- [new] - support
- [change] - non-standard offsets like
+05:17are no longer ignored - [change] - remove pretend fractional-hour iana codes like
Etc/GMT-5.5 - [change] - support season decade and century in rounding methods
- [change] - add century, decade, and season
progress()result - [change] - use
'+00:00'not'-00:00'in /temporal library - [change] - trim zero milliseconds in iso-full, like temporal does
- [new] - #344
.ceil(unit)and.floor(unit)methods - [new] - support single dst-change years '->11/07:01'
- [new] -
.ceil()and.floor()methods - like.nearest(), they don't move a date already on a boundary - [new] -
season,decadeandcenturyunits in.nearest(),.diff()and.isSame() - [new] -
decadeandcenturyin.progress() - [fix] - fractional arithmetic fixes:
-
- [fix] - 12:10 + 0.001 day = 12:11:26.400
-
- [fix] - 2020-03-08 + 0.9999 day = 1 day
-
- [fix] - +- 0.5 week = 3.5 days
- [fix] - #491 set minutes on fractional tzs (thanks bardrop)
- [fix] - #490 #492 #496 #480 unixFmt dropped values
- [fix] - month diff overcounting after a clamped leap-day (feb 29 2032 -> apr 29 2034)
- [fix] -
.progress(unit)return type is a number - [fix] - #495
dd/mm/yyyyfmt - [fix] - #493 comma-based fractional iso seconds
- [fix] - #489 better add 'season' support
- [fix] - #487 off-by-1 DST in startOf('day')
- [fix] - decimal-rounding issues is isos
- [fix] - typescript issues
- [update] - dependencies
notes: an explicit timezone is now always kept - even if the input has incompatible offsets:
// mixing -2hr offset with -8hr timezone
spacetime('2024-01-01T16:20:00-02:00', 'America/Los_Angeles')
// before: 4:20pm, Etc/GMT+2 (tz ignored)
// now: 10:20am, America/Los_Angeles (same moment)
// mixing 'Z' with a explicit timezone
spacetime('2024-01-01T16:20:00Z', 'America/Los_Angeles')
// before: 4:20pm, UTC (tz ignored)
// now: 8:20am, America/Los_Angeles (same moment)
// mixing 2 iana inputs
spacetime('2024-01-01T16:20:00[America/New_York]', 'America/Los_Angeles')
// before: 4:20pm, America/New_York (tz ignored)
// now: 1:20pm, America/Los_Angeles (same moment)
// same behaviour for .set():
const s = spacetime('2024-06-01T09:00:00', 'America/Los_Angeles')
s.set('2024-01-01T22:00:00', 'Asia/Tokyo')
// before: Jan 2 3:00pm, Asia/Tokyo (read as 10pm LA, then converted)
// now: Jan 1 10:00pm, Asia/Tokyo (read on Tokyo's clock)
see docs/input.md and #376 for details
non-standard offsets like +05:17 are now supported:
spacetime('2024-01-01T16:20:00+05:17')
// before: 4:20pm Local-time (21:20 UTC — offset silently ignored)
// now: 4:20pm, +5.23hrs time (11:03 UTC — the correct moment)
spacetime('2024-01-01T16:20:00+05:14') // 4:20pm, +05:14
spacetime('2024-01-01T16:20:00+05:30') // 4:20pm, +05:30 (was Etc/GMT-5.5)
spacetime('2024-01-01T16:20:00+05:00') // 4:20pm, Etc/GMT-5 (unchanged)
v2.3.0
2.3.0 (2026-11-21)
- add x and y axis titles with xAxisTitle and yAxisTitle (9779407)
- hide the x or y axis with hideXAxis and hideYAxis (5aadd99)
- let height 100% follow the parent element's height (de0d102)
- rotate x axis labels with xAxisLabelRotation (ff04468)
- show pie and donut legends beside the chart with legendPosition (fa19d81)
@ui-sdk/core@0.1.0-beta.14
- 8573f8f:
agent.acttakes an optional{ signal }. When it aborts, a step waiting onallowfails as cancelled and later steps don't run, so a chat's stop button can end a confirm nobody will answer. - 1869178: Agent: a table's header row adds no row text to the controls in it. A sort button in a header used to carry the other column titles as its row, so a step naming one header was refused as ambiguous.
- 4be6e4a: Names read from content put a space around a child that isn't plain inline, like a flex item or an inline-block, as Chromium does. An agent's label for
<button style="display: flex"><span>Read</span><span>Swedish orders</span></button>is "Read Swedish orders", not "ReadSwedish orders". - b8abeb6: An
actstep that names a component by its label no longer lands on an open component whose label only holds the same words, like an open Collapsible "Read live-system.png" for a step naming the Button "System". The step is refused with both refs, as it is while nothing is open. - 855bc7f: The agent bridge leaves out a component inside a popup that's animating out (
data-ending-style), so a step right after a person's choice in a menu isn't ambiguous with the field the menu belongs to. - b4dbe88: Inside a
Field,ComboboxChipstakes the name the field's label gives the input, so screen readers no longer announce an unnamed toolbar. - 1086598: A composed Command group renders shown on the server while there's no query, instead of
hiddenuntil its items bind, so the list doesn't jump on hydration. This also covers Trigger Menu groups. - 2930633: Dialog and Alert Dialog: while one Close part's action runs, the other Close parts get
aria-disabledanddata-disabled, since presses on them are refused until it settles. - fb6945a:
formatShortcut("")andariaKeyshortcuts("")return an empty string instead of throwing, souseShortcutHintrenders nothing for a shortcut with no keys. - f5d0ab3: A popup's exit no longer waits on scroll-driven animations inside it, which kept it mounted for 100 seconds after closing in Firefox.
- 99d761e: The visible value of Progress and Meter is hidden from screen readers, as the docs say, so the value is read once through
aria-valuetext. Chromium used to expose its text under the bar too. - ddee2a4: Keyboard focus moving to another trigger of an open shared Hover Card or Tooltip moves the popup to it at once, as the pointer does, instead of closing it and opening again after the delay.
- 08b86f2: A popup whose
initialFocuspoints at something that can't take focus, like a disabled button, focuses its content instead of leaving focus on the trigger behind it. - 7053edd:
createMove's Alt and arrow nudges land onstep's grid, as drops do, so astepbelow 1 nudges by that step instead of rounding to whole units. - bb8ae12: Arrow keys in a Navigation Menu's list skip a top-level item that's hidden, like one a responsive bar hides when it doesn't fit, instead of stopping on it.
- 349836b: Enter in a Command search with nothing highlighted no longer submits a form around the Command, like a popover's in-place content inside a page form. A Popover whose content holds a form and renders inside another form warns in development, as Dialog and Drawer do.
- 0f8f075: Two copies of core on one page, like an app and an embedded widget, no longer give two anchors the same name, so an open popup stays at its own trigger. Labels without an id get ids apart too.
- f1f87a3: Select's search field no longer writes the old query over text its own
onChangeflushed, so the highlight moves to the first match. - 4c9967d: A
keydownwith nokey, like the one Chrome's autofill sends, no longer throws in the shortcut listener on pages with aToastRegionor any registered shortcut. - 41ade18: A side popup that shrinks to fit beside an anchor at least its width settles in one place. Once it moves inside the anchor, it stays there while the anchor and the viewport don't change, instead of swapping sides every frame as its width changed.
- 911474e: The
ui-sdkskill's agent checklist no longer says to putdata-agent-hiddenon a toast region, which hid every toast from agents. The region is already left out while it's empty. - 1d3cd49: Enter and Space press a Button or Toggle rendered as an SVG element, which has no
click(), instead of throwing. - 69078df: A tab selected by a click or an arrow key scrolls fully into view inside a scrolling list. Browsers don't scroll a half-hidden element they focus, so a tab cut off at the list's edge used to stay cut off.
- ef6d8ce: A
ToastRegionwithouttoasterno longer throws "Expected a toaster from createToaster()" when a second copy of@ui-sdk/coreruns in the page, such as after upgrading duringnext dev. - e9cf7aa: Trigger Menu: a field whose value React controls through
onChangekeeps the typed trigger and opens the list. The menu now reads an edit once the input event has reached the window, after the owner's own listeners. - 279e7e1: A Trigger Menu closes when its Empty part or its last row unmounts, so an Empty shown for one trigger no longer keeps an empty menu open, and swallows Enter, for the next one.