Skip to content

chore: upgrade date-fns to v3 - #59

Open
AndyOGo wants to merge 1 commit into
deseretdigital:masterfrom
AndyOGo:chore/upgrade-date-fns-to-v3
Open

chore: upgrade date-fns to v3#59
AndyOGo wants to merge 1 commit into
deseretdigital:masterfrom
AndyOGo:chore/upgrade-date-fns-to-v3

Conversation

@AndyOGo

@AndyOGo AndyOGo commented Aug 29, 2024

Copy link
Copy Markdown

Fixes #58

  • full TypeScript
  • dropping IE support
  • removed default exports

https://blog.date-fns.org/v3-is-out/


  • Bump version

Comment thread src/utils.js
fn && fn(event, ...args);
if (fn) {
fn(event, ...args);
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: this project has no lock file.
It looks like that some lint rules have changed.

✖ kcd-scripts lint found some errors. Please fix them and try committing again.

/Users/andy/work/js/dayzed/src/utils.js
  18:7  error  Expected an assignment or function call and instead saw an expression  babel/no-unused-expressions

✖ 1 problem (1 error, 0 warnings)

Comment thread package.json
"dependencies": {
"@babel/runtime": "^7.6.2",
"date-fns": "^2.0.0"
"date-fns": "^3.6.0"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might consider that a breaking change if you care about IE support.

@AndyOGo

AndyOGo commented Sep 2, 2025

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to use date-fns v3

1 participant