Moment-timezone: Update main in bower.json with new filename

Created on 3 Apr 2017  路  6Comments  路  Source: moment/moment-timezone

Latest 0.15.12 releases updated and renamed moment-timezone-with-data-2010-2020.js to moment-timezone-with-data-2012-2022.js, however the main field entry point when using bower needs to be updated as well.

Most helpful comment

Also, could we avoid patch releases for _breaking_ changes like this one?

All 6 comments

Also, could we avoid patch releases for _breaking_ changes like this one?

Same issue for us. It shouldn't have been done in a patch release :(

Edit:
We ended up using the overrides option in our own bower.json, and set the main file, to link to ./builds/moment-timezone-with-data-2012-2022.js, and it started working again.

If you want to temporarily work around the problem, you can add an override to your bower.json:

{
  "name": ...,
  "dependencies": ...,
  ...
  "overrides": {
    "moment-timezone": {
        "main": "builds/moment-timezone-with-data-2012-2022.js"
    }
  }
}

Fixed the bower.json file. My mistake. Apologies.

WRT breaking changes - please keep in mind that moment-timezone is still 0.x. Per SemVer #4, anything may change at any time.

Still, sorry for the confusion. In retrospect, I believe we will change this before 1.0 to not have years in the file name, thus avoiding breaking changes from one year to the next.

Also, if you're still having problems because Bower cached the previous copy, do:

bower cache clean moment-timezone

Then reinstall and it should work.

Thanks. Works now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GMeulendyks picture GMeulendyks  路  5Comments

casper5822 picture casper5822  路  5Comments

sbrandwoo picture sbrandwoo  路  4Comments

im1dermike picture im1dermike  路  4Comments

SathyaChenniappan picture SathyaChenniappan  路  4Comments