react-timezone-select

🌐 An extremely usable and dynamic React timezone selector

MIT License

Downloads
223.3K
Stars
204
Committers
14

Bot releases are hidden (Show)

react-timezone-select - v3.2.3 Latest Release

Published by ndom91 9 months ago

react-timezone-select - v3.2.2

Published by ndom91 9 months ago

react-timezone-select - v3.2.1

Published by ndom91 9 months ago

  • Add "use client" directive for use in applications using server components

Full Changelog: https://github.com/ndom91/react-timezone-select/compare/v3.2.0...v3.2.1

react-timezone-select - v3.2.0

Published by ndom91 9 months ago

react-timezone-select - v3.1.0

Published by ndom91 10 months ago

  • Ship as ESM only to fix some other import issues
  • Bump react-select peer dependency to v5.7.3 as minimum due to their shipping of a node esm import fix
react-timezone-select - v3.0.2

Published by ndom91 10 months ago

Summary

Not many changes here, but bumped a major version because I removed a prop (maxAbbrLength) and thats a breaking change.

Changes

  • Removed maxAbbrLength prop
  • Core code clean-up
  • Migrate testing from jest to vitest
  • Update example
react-timezone-select - v2.1.0

Published by ndom91 over 1 year ago

react-timezone-select - v2.0.1

Published by ndom91 over 1 year ago

react-timezone-select - v2.0.0

Published by ndom91 over 1 year ago

  • Major release simply because the primary dependency (react-select) has been made a peer dependency now, in preparation for releasing a hook for the library, decoupling the functionality completely from the react-select component. If you use npm 7+ it will auto install it peer-dependencies for you. If you use another package manager, you may need to add react-select to your project.
react-timezone-select - v1.5.5

Published by ndom91 over 1 year ago

  • Bumped timezone-soft and spacetime versions
  • Gracefully handle timezones not found by those libraries
react-timezone-select - v1.5.1

Published by ndom91 over 1 year ago

  • Update bundling / distribution
  • No longer publishes react/react-dom/emotion, etc. per default with the library

PR: https://github.com/ndom91/react-timezone-select/pull/82

Full Changelog: https://github.com/ndom91/react-timezone-select/compare/v1.5.0...v1.5.1

react-timezone-select - v1.4.1

Published by ndom91 over 1 year ago

react-timezone-select - v1.4.0

Published by ndom91 over 1 year ago

  • Bumped react-select to 5.7.0
react-timezone-select - v1.3.0

Published by ndom91 over 2 years ago

Changes

  • Fixed the ESM/CJS bundling issue. You no longer need next-transpile-modules to use this library with Next.js 12+.
react-timezone-select - v1.1.15

Published by ndom91 almost 3 years ago

  • Improved typescript types / exports
  • Removed css module for hover styling, was blocking use in next.js
react-timezone-select - v1.1.11

Published by ndom91 about 3 years ago

This release doesn't strictly provide new features, but I did upgrade all of the dependencies behind the scenes and renamed one rarely used export.

Changes are as follows:

  • spacetime-informal was renamed to timezone-soft
  • react-select: 4.3.1 -> 5.0.0
  • spacetime: 6.16.2 -> 6.16.3

The timezones object export was renamed from i18nTimezones to allTimezones. This is only there for those that want to extend the list of available timezones themselves, and then spread this list of existing timezones in to fulfill the list.

There were also some minor internal typescript changes that should not affect the end use of this component.

react-timezone-select - v1-stable

Published by ndom91 over 3 years ago

Hey yall!

If you haven't checked in here in a while, this is a major version bump, but no user facing breaking changes!

Just figured its finally time for a major version bump as there have been a lot of internal changes, including:

  • tip: can select the users local timezone by default (...useState(Intl.DateTimeFormat().resolvedOptions().timeZone)) - see readme for details
  • automatically match all possible timezones from the above ^^ to the matching selection available in the dropdown
  • rewrite in typescript ✨
  • pure esm package (if you're having trouble with next.js because of this - check the readme for a workaround 🎉)
  • rewrite / reorganisation of the included demo / dev env app

To get up and running, just install from npm and follow the instructions in the readme!

npm install react-timezone-select

Thanks for your interest and support thusfar!

react-timezone-select - v0.10.6

Published by ndom91 over 3 years ago

Some major changes have taken place since the last stable release. I've refactored the component to be in Typescript, so those of you looking for types, they are now included! Of course you can still use it as you have always been in normal javascript as well. There is no breaking-change in this regard.

In fact, we've also added jest and a suite of tests to ensure there are no unintended breaking changes going forward!

react-timezone-select - v0.9.9

Published by ndom91 almost 4 years ago

Added package.json attributes for import/export to better support usage as an ESM Module.

react-timezone-select - v0.9.7

Published by ndom91 almost 4 years ago

This is a smaller release which redefines how we parse the value passed into value.

It now allows, for example, to simply pass in the timezone name (i.e. "Europe/Berlin") if thats all you store in your DB, and it'll find the correct timezone object and use it.

Thanks #11 for the issue / suggestion!