temporal_js 0.0.3
temporal_js: ^0.0.3 copied to clipboard
TC39 Temporal date/time API for Dart, backed by the JS Temporal API via dart:js_interop. Lightweight, immutable date and time types for Dart web apps.
0.0.3 #
- Add rounding, difference and string options, overflow control,
copyWith, calendar metadata, and conversions between Temporal date types. - Add nanosecond instant construction and access, duration rounding, totals,
comparison and relative arithmetic, and zoned date-time helpers including
startOfDay()andgetTimeZoneTransition(). - Add
TemporalNowfor current dates, times, instants, and the host time zone. - Improve Temporal error classification and omit absent JS options instead of
passing
null. - Expand browser regression coverage for the new APIs and ISO string formatting.
0.0.2 #
Published as a standalone package on pub.flutter-io.cn. Web apps that want to depend directly
on the browser-backed Temporal implementation (without going through the umbrella
temporal package) can now add temporal_js explicitly.
0.0.1 #
Initial release with core Temporal types backed by the browser's native JS Temporal API:
PlainDate— an ISO 8601 calendar date (year, month, day) with no time or timezonePlainTime— a wall-clock time with no date or timezonePlainDateTime— a combined calendar date and wall-clock timePlainYearMonth— a year and month with no day or timezonePlainMonthDay— a month and day with no year or timezoneInstant— an exact UTC point in timeZonedDateTime— an exact moment tied to a specific IANA timezoneTemporalDuration— a duration spanning calendar and time unitsCalendar— a calendar system (ISO 8601, Buddhist, Hebrew, etc.)TimeZone— an IANA timezone identifier