All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and adheres to Semantic Versioning.
- Fixed babel helpers file being generated with incorrect filename in esm build. [#2082]
- Migrate from
sewing-kit-next
toloom
for building - package build output remains identical. [#2039]
- Enable type checking in tests and fix type errors. [#2011]
- Added file exclusion for tests to package.json. [#2005]
formatDate
's options object now expects itshourCycle
value to be 'h11', 'h12', 'h23' or 'h24' rather than an arbitary string. Any other value would have caused an error at runtime, this helps us catch that error at compile time. [#1997]- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Ensure
tsconfig.tsbuildinfo
file is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types
/typesVersions
fields to point directly into the build folder [#1980]
- No updates. Transitive dependency bump.
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- Removed dependency on tslib, as we no-longer compile with
tsc
. #1829
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers #1759
- Add new build outputs (CommonJS, ESM, esnext, Node) for greater tree-shakability #1698
- Updated
tslib
dependency to^1.14.1
. #1657
- Added
isLessThanOneWeekAway
andisLessThanOneYearAgo
functions [#1438]
- Added
getIanaTimeZone
and exposedmemoizedGetDateTimeFormat
(#1367)
- Allows
hour12: true
to be passed toformatDate
(#1299)
- Export the
formatDate
function so it can be used by other packages / projects, e.g. in@shopify/react-i18n
(#1286)
- Fixes the memory leak that was introduced in v0.1.27 when server-side rendering (#1277)
⚠️ A bug fix because Chrome 80's API change to Intl.DateTimeFormat (#1266)
- Specify package has no
sideEffects
(#1233)
- Add
isLessThanOneMinute
,isLessThanOneHour
,isLessThanOneDay
,isLessThanOneWeek
, andisLessThanOneYear
functions (#989)
- Improve performance of
formatDate
to use memoizedDateTimeFormat
. (#643)
- Start of Changelog