Skip to content

v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Dec 17:54
· 6 commits to master since this release
04afbba

3.0.0 (2022-12-04)

Bug Fixes

  • update docs to match type signature (31548b4)
  • update docs to match type signature 2 (76ffa08)
  • Upgrade the time zone database to 2022f (d2d3085)

Features

BREAKING CHANGES

The initial ESM support exposed the sources at paths like src/index.js and worked only if you used a bundler. The proper ESM support has been provided by files built to paths like dist/index.mjs, which are mapped to export modules in package.json. For example, if you imported the main module like this:

import { getZonedTime } from './node_modules/timezone-support/src/index.js'

Change it to this:

import { getZonedTime } from 'timezone-support'

See also sections "Loading" and "Modules" in API.md.

Replacing commander in create-timezone-data with a hand-coded command-line parsing should not affect anybody, because the command-line format did not change, but there might be some undetected difference.

Declaring export modules in package.json works reliably since Node.js 14.8, but the rest of the source code and loading the files from the dist directory directly should work since Node.js 6. The script create-timezone-data needs the fs/promises implementation, which was introduced in Node.js 14.