Skip to content

Releases: ItemConsulting/lib-xp-time

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 10:33
d0e6d80

Major Changes

  • f0f359c: Support Enonic XP 8, and drop support for XP 7.

Minor Changes

  • 53e1fed: Add ChronoUnit, the units of time from NANOS to MILLENNIA.

    The date-time classes get the methods that take a unit: plus() and minus() with an amount and a unit, until() to count the whole units to another date or time, and truncatedTo().

  • 53e1fed: Add Duration, an exact amount of time in hours, minutes and seconds.

    It can be added to and subtracted from Instant, LocalTime, LocalDateTime, OffsetTime, OffsetDateTime and ZonedDateTime with plus() and minus().

  • 53e1fed: Add Period, an amount of years, months and days that follows the calendar.

    It can be added to and subtracted from LocalDate, LocalDateTime, OffsetDateTime and ZonedDateTime with plus() and minus(), and LocalDate.until() gives the Period between two dates.

Patch Changes

  • 58e8aa6: Correct type declarations that did not match java.time.
  • 58e8aa6: Fix formatDate() throwing on date strings with a negative UTC offset, such as 2023-06-07T10:00:00-05:00.
  • 58e8aa6: formatDate() now formats a Date in the system time zone when no timezoneId is given.

1.2.1

Choose a tag to compare

@tajakobsen tajakobsen released this 07 Feb 09:32
5fdce0f

What's Changed

  • Add support for java.util.Locale.LanguageRange by @tajakobsen in #11

Full Changelog: 1.1.0...1.2.1

1.1.0

Choose a tag to compare

@tajakobsen tajakobsen released this 16 Jan 13:45
2fc2acd

What's Changed

  • Migrated build tools to use tsup

Full Changelog: 1.0.4...1.1.0

Add missing isAfter and isBefore methods

Choose a tag to compare

@tajakobsen tajakobsen released this 04 Mar 11:01
2c7f494

Full Changelog: 1.0.3...1.0.4

Support Node 18 env in package.json

Choose a tag to compare

@tajakobsen tajakobsen released this 23 Aug 07:51
92d324e

Full Changelog: 1.0.2...1.0.3

Fix published types in npm

Choose a tag to compare

@tajakobsen tajakobsen released this 08 Jun 10:16
a175f30

Changed path of generated types so that npm will work correctly.

v1.0.1

Choose a tag to compare

@Scheie Scheie released this 07 Jun 13:21
Release version 1.0.1

General release

Choose a tag to compare

@tajakobsen tajakobsen released this 03 Mar 15:21
9954b6a

What's Changed

  • Improve README.md examples by @Scheie in #8

Full Changelog: 0.1.2...1.0.0

Fix TypeScript type npm package

Pre-release

Choose a tag to compare

@tajakobsen tajakobsen released this 23 Feb 15:32
3992fb9

What's Changed

  • Fix path in prepublishOnly where type declarations are by @tajakobsen in #7

Full Changelog: 0.1.1...0.1.2

Change version of testLib

Pre-release

Choose a tag to compare

@tajakobsen tajakobsen released this 23 Feb 13:05
15b9287

Full Changelog: 0.1.0...0.1.1