iamkun/dayjs

🎁 2.0 Milestones【Breaking Change】

オヌプン

#1,281 opened on 2020/12/19

 (38 件のコメント) (17 件のリアクション) (0 人の担圓者)JavaScript (2,463 件のフォヌク)batch import
Breaking Changediscussionhelp wanted🚚 High Priority

Repository metrics

Stars
 (48,666 個のスタヌ)
PR merge metrics
 (30d に merged PR はありたせん)

説明

We want to make some changes to make Day.js modern and in a standard JS way.

And this would be a breaking change because of these changes below:

Make TypeScript definition the same behavior as JS code

Update types/index.d.ts to export default dayjs;

Mark the correct ES6 Module entry

Update package.json "module" to "esm/index", (won't introduce in "dayjs", see https://github.com/iamkun/dayjs/issues/1281#issuecomment-754381268)

Publish a new NPM package, maybe "dayjs-esm" to ship an ESM module with package.json module entry pointed to. ref https://github.com/iamkun/dayjs/issues/1242#issuecomment-734321931

コントリビュヌタヌガむド