Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blueprintjs/datetime2

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blueprintjs/datetime2

Re-exports of @blueprintjs/datetime APIs

  • 2.3.15
  • npm
  • Socket score

Version published
Weekly downloads
32K
decreased by-0.84%
Maintainers
0
Weekly downloads
 
Created
Source

Blueprint Date & Time Components (V2)

Blueprint is a React UI toolkit for the web.

This package contains next-generation components for interacting with dates & times.

Compared to the "V1" components in @blueprintjs/datetime, the "V3" components in this package:

  • use react-day-picker v8 instead of v7 (this unblocks React 18 compatibility)
  • are easier to internationalize & localize since date-fns is now a dependency (instead of localeUtils, you can specify a locale code and we'll automatically load the date-fns locale object)

This package also contains legacy APIs which are re-exported aliases for components from @blueprintjs/datetime v5.x. These "V2" names are backwards-compatible with @blueprintjs/datetime2 v0.x.

To migrate to the latest "V3" components, follow the react-day-picker v8 migration guide.

Note that @blueprintjs/datetime2 will transitively install multiple versions of react-day-picker. These two copies of react-day-picker can happily exist together in a single JS bundle, and with the help of tree-shaking, you can avoid bundling both if you only use the deprecated "V1" / "V2" datetime components or only use the new "V3" APIs.

Full Documentation | Source Code

Keywords

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc