Socket
Socket
Sign inDemoInstall

@anglr/datetime

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anglr/datetime - npm Package Versions

1
11

5.0.0-beta.20221018120203

Diff

kukjevov
published 5.0.0-beta.20221018111751 •

kukjevov
published 5.0.0-beta.20221018103539 •

kukjevov
published 5.0.0-beta.20221018102923 •

kukjevov
published 5.0.0-beta.20221017112052 •

kukjevov
published 5.0.0-beta.20221017033852 •

kukjevov
published 4.0.0 •

Changelog

Source

Version 4.0.0 (2022-10-14)

Bug Fixes

  • updated DateValueProvider service, now correctly returns start of day for format with day

Features

  • new DateApiObjectCtor interface, that is definition of type, that is used for creating instance of DateApiObject
  • new DATE_API_OBJECT_TYPE injection token used for injecting type that creates instance of DateApiObject
  • updated DateApi interface
    • new generic parameter TDateApiObject which allows to get specific DateApiObject implementation
  • subpackage @anglr/datetime/moment
    • updated MomentDateApi
      • now creates DateApiObject using DATE_API_OBJECT_TYPE
    • new momentDateApiObjectType type that represents creation of DateApiObject for moment
    • new MOMENT_DATE_API_OBJECT_TYPE injection token used for injecting type that creates instance of DateApiObject for moment
    • MomentDateApiObject made part of public API
  • subpackage @anglr/datetime/date-fns
    • updated DateFnsDateApi
      • now creates DateApiObject using DATE_API_OBJECT_TYPE
    • new dateFnsDateApiObjectType type that represents creation of DateApiObject for date-fns
    • new DATE_FNS_DATE_API_OBJECT_TYPE injection token used for injecting type that creates instance of DateApiObject for date-fns
    • DateFnsDateApiObject made part of public API

BREAKING CHANGES

  • updated DateConvertPipe now returns DateApiObject<TDate> instead of TDate
  • updated DateFnsDateApi constructor has new parameter DATE_API_OBJECT_TYPE
  • renamed DATEFNS_FORMAT_PROVIDER to DATE_FNS_FORMAT_PROVIDER
kukjevov
published 4.0.0-beta.20221014045146 •

kukjevov
published 4.0.0-beta.20221013112531 •

kukjevov
published 4.0.0-beta.20220526110343 •

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