Skip to content

Tags: prantlf/timezone-support

Tags

v3.1.0

Verified

This commit was signed with the committer’s verified signature.
prantlf Ferdinand Prantl
chore: Add new contributors

v3.0.0

Verified

This commit was signed with the committer’s verified signature.
prantlf Ferdinand Prantl
feat: Support ESM properly

* Build ESM output to dist
* Announce ESM exports in package.json
* Add exports for lookup-convert, parse-format, data and limited data
* Replace `commander` with a hand-coded command-line parsing

* Upgrade dev dependencies
* Replace npm with pnpm (worked slower)
* Replace cpy-cli with cp.js (started to create wrong paths)
* Replace eslint with denolint (worked slower)
* Replace coveralls with codecov (they cancel accounts)
* Replace travis with github actions (more work to maintain)

BREAKING CHANGE: 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.

v2.2.0

Verified

This commit was signed with the committer’s verified signature.
prantlf Ferdinand Prantl
2.2.0

v2.1.1

Verified

This commit was signed with the committer’s verified signature.
prantlf Ferdinand Prantl
2.1.1

v2.1.0

Verified

This commit was signed with the committer’s verified signature.
prantlf Ferdinand Prantl
feat: Support ESM properly

* Build ESM output to dist
* Announce ESM exports in package.json
* Add exports for lookup-convert, parse-format, data and limited data
* Replace `commander` with a hand-coded command-line parsing

* Upgrade dev dependencies
* Replace npm with pnpm (worked slower)
* Replace cpy-cli with cp.js (started to create wrong paths)
* Replace eslint with denolint (worked slower)
* Replace coveralls with codecov (they cancel accounts)
* Replace travis with github actions (more work to maintain)

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.

v2.0.2

docs: Add examples of complete application integrating this library

v2.0.1

fix: Input time object for getUnixTime and convertTimeToDate does not…

… need to include hours and minutes - defaults to midnight

v2.0.0

fix: Use valid JavaScript identifiers for exports in vanilla browser …

…modules

BREAKING CHANGE: Previous kebab-case keys in the `window` object changed to camelCase global vbariables. Usage of shims or tools loading UMD modules becomes easier. See the migration guide for more information.

v1.8.1

fix: Upgrade development dependencies to fix a critical security vuln…

…erability

v1.8.0

chore: Remove disused data-generating scripts