- Setting locale now sets locale on global moment object
- Added
setLocale
andsetTimeZone
. Better naming. Will continue to supportchangeLocale
andchangeTimeZone
but have updated README to prefer new method names - Added
localeChanged
andtimeZoneChanged
events - @mfeltz scoped moment-subtract and moment-add to use the moment service
locale
property
- @kellyselden add back
ember-macro-helpers
- Removed
ember-macro-helpers
- @kellyselden ported computed macro factory to use computed macro utility methods from
ember-macro-helpers
- Upgrade
ember-cli-moment-shim
to 3.0.0 - now helper now recomputes using setTimeout instead of run.later #205
- Revert upgrade
ember-cli-moment-shim
to 2.2.1 (moment.now issue)
- Upgrade
ember-cli-moment-shim
to 2.2.1
- Upgrade ember-cli-moment-shim to 1.3.0
now
helper returnsmoment.now()
instead ofnew Date()
- Added
moment
helper - Added
moment-calendar
helper - @GarPit Added
moment-to-date
helper - @stavarotti added
unix
helper - @yads added
moment-subtract
moment-add
helpers - Removed
ember-getowner-polyfill
as a direct dep - Add moment query helpers (
is-between
,is-same-or-after
,is-same-or-before
,is-same
,is-after
,is-before
) - BREAKING: no longer defaults moment-format to LLLL and instead uses the moment default format (ISO 8601)
- Applications will need to specify the default format to LLLL if they want to keep this behavior: https://github.com/stefanpenner/ember-moment#global-default-output-format
- Adopted yarn
- [BREAKING] computed property macros can now support composition (adopted-ember-addons#139)
- Helper support for
moment().calendar();
(adopted-ember-addons#143)
- Prevent moment 2.11.0 from being installed due to it being unsupported
- Reduce size and complexity of computeds
- Rewrote computeds to support literals as arguments
- Do not warn on missing date when allowEmpty
- Remove
ember-new-computed
- Remove use of an Ember global
- Remove need for instance initializer
- Upgrade
ember-cli-moment-shim
- Add a
defaultFormat
property to the service, whichmoment-format
helpers observer to recompute - BUGFIX:
outputFormat
typo onconfig/environment.js
lookup led to it never being properly looked up
- Adds support a
timeZone
argument on all helpers - Adds a service which contains two methods:
changeLocale
andchangeTimeZone
- Invoking either of these methods will cause all helpers to rerender if a locale/timezone was not specified
- Removes two unused npm deps
- Removes support for legacy helpers
- Drops support for Ember < 1.13.0 (continue to use 3.x for < 1.13.0 support)
- Ember version detection incorrectly reported
- Warn on locale mismatch, silently ignore
en
locale since included by default in moment
- Bugfix global output format
- 2.0-beta + 2.0-canary supported again
- test support for deprecated helpers
- global allowEmpty configuration option
- removes unused helper modules from builds (slimmer dists)
- destroy interval timers on Helper destroy
- work around issue with Ember.run.next blocking test helpers
- Support for 2.0.0-beta and canary
- Upgrades dependencies
- Adds
allow-empty
argument to helpers to prevent Invalid Date to be rendered when passed an empty value (null, undefined, or "")
- Adds
locale
argument to helpers to locally scope locale format to specific helpers
- Adds a global output format string option to config/environment
module.exports = function() {
return {
moment: {
outputFormat: 'L' // overrides the `LLLL` that moment defaults to
}
}
};
- Adds toNow computed property macro
- Adds moment-to-now htmlbar helper
- Fixes documentation error around computed property macro argument order
- Adds the ability to hide the prefix/suffix from toNow/fromNow helpers and computed property macro output
- Removes deprecation warnings from Ember 1.13.6
- Deprecate helpers:
moment
,ago
,duration
in favor ofmoment-format
,moment-from-now
,moment-duration
- Deprecate computed property modules:
ember-moment/computeds/ago
->ember-moment/computeds/from-now
ember-moment/computeds/moment
->ember-moment/computeds/format
- Removed EnumerableUtils.map
- Updated ember-cli-moment-shim to 0.6.0
- moment is now brought in via bower instead of npm (jasonmit/ember-cli-moment-shim#14 (comment))
- Conditionally include all locales if
true
is passed toincludeLocales
option
- Smoke tests added
- Fixing regression which broke 1.10.0
- Added Ember 1.10.0 -> #release to the Travis CI matrix
- Fixes regression in <= 1.12.0 where the helpers are not registered properly
- Support to programmatically including moment i18n locale data via
includeLocales
- Removes support for Ember.Handlebars.helpers in favor of just supporting HTMLBars going forward
- Removes
ember-moment/computed
. Explicit full path import paths to avoid naming conflicts.ember-moment/computeds/duration
ember-moment/computeds/moment
ember-moment/computeds/from-now
- Works around an issue within ember-cli with nested addon's that need to app.import
- 1.13.x support
- moment and moment timezone are now pulled in from
ember-cli-moment-shim
instead ofember-moment
- BREAKING: moved EmberApp's
ember-moment
configuration object toconfig/environment.js
and renamed tomoment
.
// config/environment.js
module.exports = function(environment) {
return {
moment: {
includeTimezone: 'all'
}
}
}
- [BUGFIX] HTMLBars should use
makeBoundHelper
-
[ENHANCEMENT] HTMLBars support (backwards compat. with Handlebars)
-
[ENHANCEMENT] Adding duration helper with examples in the dummy app
-
[BREAKING ENHANCEMENT] The full
moment
Handlebars helper signature is now`{{moment-format date outputFormat inputFormat}}`
to better reflect common usage pattern. You are usually passing a date as the first argument, which does not require specifying an inputFormat, and at the same time, you usually do want to specify an output format. #12.
Fixes case of passing both input and output formats, and changes default output format.
Adds a few more usage examples to dummy app, and improves tests accordingly.
-
[BUGFIX] Passing a two arguments to the
moment
helper was not handled properly. -
[ENHANCEMENT] Added more examples to the dummy app
Early versions, before this doc was maintained