-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed ember-moment v10 #371
Conversation
(This was intended to be a WIP PR, not done yet.) |
Because it breaks when transpiling for IE11
@alexlafroscia @NullVoxPopuli I'm willing to be added a maintainer here to land this work and then support it. |
package.json
Outdated
"ember-cli-3.16": "npm:ember-cli@~3.16.0", | ||
"ember-cli-3.20": "npm:ember-cli@~3.20.0", | ||
"ember-cli-3.24": "npm:ember-cli@~3.24.0", | ||
"ember-cli-3.28": "npm:ember-cli@~3.24.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ember-cli-3.28": "npm:ember-cli@~3.24.0", | |
"ember-cli-3.28": "npm:ember-cli@~3.28.0", |
test-app/scenarios.js
Outdated
}); | ||
} | ||
|
||
// async function release(project) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come these are commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's still WIP. I intend to get those passing before this is ready.
This is exciting work! thanks for this! |
The test-app only tests with moment-timezone, because that assumption is baked into many tests that have existed for a long time.
This is ready to release. Can I get auth on npm please? |
Done |
The switch from ember-cli-moment-shim to ember-auto-import was a good step (ember-auto-import is more future-aligned with general ES-module-compatible build systems). But the way ember-moment currently (9.x) brings both moment and moment-timezone as dependencies and auto-imports them is problematic.
There are several other things I will be addressing here too:
This PR is a breaking change that would be ember-moment 10.0. The breaking changes are:
Big picture: moment is an end-of-life technology. My recommendation to app authors is not to rush into rewriting from moment to another library like Luxon, because Temporal is very close to happening, and if you're going to port you might as well port directly to Temporal (which will have native browser implementations).