bootstrap-datepicker icon indicating copy to clipboard operation
bootstrap-datepicker copied to clipboard

1.7.0 RC1 dist not updated

Open gcarothers opened this issue 9 years ago • 7 comments

Expected behaviour

Source code should match dist copy

Actual behaviour

Dist is reasonably out of date (seems to be exactly the same as 1.6.3) and is also pointed to by main so requiring or installing 1.7.0 doesn't do anything.

Datepicker version used

1.7.0 RC1

Example code

gcarothers avatar Feb 07 '17 02:02 gcarothers

For example:

-                               if (typeof this.o.format === 'string') {
-                                       if ((String(this.element[0].value).length === String(this.o.format).length) && (String(oldDates) !== Str
ing(this.dates)))
-                                               this._trigger('changeDate');
-                        this.element.change();
-                                   } else if (String(oldDates) !== String(this.dates)) {
-                        this._trigger('changeDate');
-                        this.element.change();
-                    }
-                       }
+                               if (String(oldDates) !== String(this.dates) && fromArgs) {
+                                       this._trigger('changeDate');
+                                       this.element.change();
+                               }
+            }
                        if (!this.dates.length && oldDates.length) {

gcarothers avatar Feb 07 '17 03:02 gcarothers

Hi @gcarothers, can you verify that you are indeed using 1.7.0-RC1 (you can check you dependecy manager output or check the version variable in the datepicker console.log($.fn.datepicker.version);). Because the dist files were generated before the release in 6de2c8e.

acrobat avatar Feb 07 '17 07:02 acrobat

EDIT: Wait, scrap what I wrote below. Cloudflare is up-to-date with your dist version.

The issue is actually that @teoulas fix via PR 1912 is not present in the RC1, either by reintroducing the bug or using some source other than this file (which works very well for me).

The lines that @gcarothers mentions are exactly the lines that cause the problems solved by PR 1912.

Old message


I'd like to add that I just spent 30min debugging due to using cloudflares marked 1.7.0-RC1 that, if used, actually gives

> console.log($.fn.datepicker.version);
1 1.7.0-dev

If you check their version of RC1 the content STILL resembles what @gcarothers has posted, even after 19 days of the dist-update.

This drove me crazy, since the excerpt was the exact place where @teoulas had fixed the "update-on-initialization"-bug with pull request 1912.

So what I assumed was a fixed version was actually still from before the pull request from august 2016.

fridde avatar Feb 10 '17 18:02 fridde

Hmm you are right about the missing lines on the cdn version of the js file. I will look into this! I'm also trying to release RC2 this weekend so hopefully this solves the problem!

acrobat avatar Feb 11 '17 11:02 acrobat

Not trying to annoy, but I just wonder how the release process works:

Are you just redefining this file as the new version and the CDNs out there detect a changed version in the dist-folder?

Or are you manually editing anything in beforehand? I was thinking about mirroring the current master branch of above mentioned file on my server and checking for updates once a day (to avoid hotlinking to github), since it's the version without the annoying "trigger change() on inititialization" bug that somehow found its way back into RC1.

fridde avatar Feb 19 '17 10:02 fridde

The release process is creating a tag in git and publishing it on npm. For now you are good to mirror master. After 1.7.0 release we branch off to 1.7 and master will be 1.8/2.0

1.7.0-RC2 should not be away long. If #2124 is fixed soon I tag RC2 otherwise this will wait for RC3 and I have RC2 out in the next few days

acrobat avatar Feb 19 '17 16:02 acrobat

Fixed by 0d32bc5d91da11d9a3587537c3c36ce7ee815c94

vsn4ik avatar Apr 21 '18 09:04 vsn4ik