Note
This version was published on NPM almost 6 months after the release tag was created on GitHub. Yes, I forgot.
New
- Add
setTzInRealWorldRange()
allowing to shift timezones to be inside the real-world (IANA) range. - Add
setTzConfig()
to set the timezone related configuration: pass it an object to set the timezone separator and enforce the IANA range at the same time.
Improved
- Improve multiple typing resolutions: previously, 1
.d.ts
file were generated per.js
file, preserving the initial folder structure. In both plain JavaScript and TypeScript environments, this was leading to quirks like:- types exported from subpath instead of root
- unexported functions being exported as types
Despite these, documented functions were properly exposed but global typing discoverability was a mess. See the comment in the related pull requests for more. This is now fixed by cleaning and combining all .d.ts
files into one thanks to dts-bundle-generator
.
Documentation
- Fix documentation examples for
tzOffset
. - Rephrase some parts.
Under the hood
- And add more tests for
tzOffset
in order to strenghten. This will be useful for the work around the standardizedTemporal
API. - Update ESLint config to group
import
statements by source. - Change TypeScript
target
toESNExt
. - Rename some internals.
- Remove test files from published package.