Lunar Phase v2.0.0 #26
jasonsturges
started this conversation in
General
Replies: 1 comment
-
If anyone experiences issues with this update, please let me know and I will do my best to assist. Please submit an issue for any problems. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Though the API is largely unchanged, major rework of the package has been implemented.
First, this project was ported to TypeScript and now features type declaration for inclusion in TypeScript projects.
Second, the build pipeline has been converted to Vite, now featuring CJS, ESM, UMD, and IIFE builds.
There are potentially three breaking changes.
Options params instead of Hemisphere
To better support features requests, this package is moving to an options pattern instead of individual parameters of functions.
This should only effect those who specify Hemisphere, such as Southern Hemisphere for lunar emoji.
Formerly called as:
Now called via options as:
Julian vs JulianDay
The
JulianDay
instance is now justJulian
.Formerly called as:
Now called via
Julian
Emoji constants
Emoji per hemisphere are now just two constant enumerations.
Formerly these would be accessed via nested constants:
Now, each set is simply accessed individually:
Log an issue and I will assist in any migration issues.
What's Changed
Full Changelog: v1.0.10...v2.0.0
This discussion was created from the release Lunar Phase v2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions