serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.3k stars 181 forks source link

Replace moment with dayjs #951

Closed timqian closed 3 years ago

timqian commented 3 years ago

As momentjs is not been actively maintained and it has a big size, we replaced it with dayjs in this PR.

A more direct reason we need to replace it is that momentjs prints unnecessary error logs when it is initialized with a wrong formatted date string. By using dayjs we can avoid this.

Screen Shot 2021-05-18 at 11 45 40 AM
timqian commented 3 years ago

@medikoo Yes, I have tested sls info for normal and nested components projects