Skip to content
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

Update dependencies. #25840

Merged
merged 10 commits into from
Mar 21, 2018
Merged

Update dependencies. #25840

merged 10 commits into from
Mar 21, 2018

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Mar 13, 2018

I left workbox-build @2.1.3 since I can't find any docs what they have changed and with v3.0.0 it's broken.

Maybe @Lyricalz can help us out :)

TODO:

  • Use sinon from a CDN
  • Use QUnit from a CDN
  • Update workbox to v3.0.0

@XhmikosR XhmikosR requested a review from Johann-S March 13, 2018 17:11
@XhmikosR XhmikosR force-pushed the v4-dev-xmr-update-deps branch from effb4ac to e35d4db Compare March 13, 2018 23:35
@Johann-S
Copy link
Member

Johann-S commented Mar 14, 2018

There are a new release of Popper.js (released yesterday): 1.14.1

package.json Outdated
"shelljs": "^0.8.1",
"shx": "^0.2.2",
"sinon": "^4.4.3",
"sinon": "^4.4.5",
Copy link
Member

@Johann-S Johann-S Mar 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we upgrade to their new major release Sinon 5 ? Because currently we haven't unit tests which use Sinon (but it'll happen soon)

Hmm no finally Sinon 5 isn't ready

@XhmikosR
Copy link
Member Author

There are a new release of Popper.js (released yesterday): 1.14.1

Yeah, but it doesn't have any changes to the dist files as far as I can tell.

As for sinon, I wasn't sure if v5 works so I stayed with v4 to be safe.

@Johann-S
Copy link
Member

We cannot update to QUnit 2.5.1 because of karma-qunit which seems dead... See: karma-runner/karma-qunit#98

@@ -26,7 +26,7 @@
<script src="https://code.jquery.com/qunit/qunit-2.4.1.js"></script>

<!-- Sinon -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sinon.js/4.4.3/sinon-no-sourcemaps.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sinon.js/4.4.5/sinon-no-sourcemaps.min.js"></script>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's 404 that is why I haven't changed it. Please revert it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed ! My bad

@Johann-S Johann-S force-pushed the v4-dev-xmr-update-deps branch from 670b9ff to eb001da Compare March 14, 2018 13:07
@MikeyBeLike
Copy link
Contributor

MikeyBeLike commented Mar 14, 2018

@XhmikosR I can make a commit this week?

@XhmikosR
Copy link
Member Author

@Lyricalz: sure thing, just CC me!

@Johann-S
Copy link
Member

Finally karma-runner/karma-qunit#98 is merged, so we'll have to wait for their next release 👍

@XhmikosR
Copy link
Member Author

Cool, @Johann-S feel free to push here when done.

@Lyricalz: please target this branch in your workbox update PR so that we have everything in one place.

@Johann-S
Copy link
Member

I updated karma-qunit on my local branch and it doesn't work... So currently I don't understand where it failed in our karma plugins... Or if it's Karma itself

@MikeyBeLike
Copy link
Contributor

Made a PR for workbox here: #25873

@XhmikosR XhmikosR force-pushed the v4-dev-xmr-update-deps branch from a3ff86f to df47127 Compare March 20, 2018 15:47
@XhmikosR
Copy link
Member Author

@Johann-S: it seems we are hitting https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module

I also updated karma-qunit and switched to qunit.

I think after we fix this new error, only the CDN switch is left along with updating qunit in tests.

@Johann-S
Copy link
Member

Johann-S commented Mar 20, 2018

I don't think it's related to Rollup or Babel Plugins helpers but more related to : @babel/proposal-object-rest-spread which allow us to use object spread operator (see: https://travis-ci.org/twbs/bootstrap/jobs/355916540#L629 and https://github.com/twbs/bootstrap/blob/v4-dev/.babelrc.js#L14)

Maybe npm install --save-dev @babel/plugin-proposal-object-rest-spread should help us 🤔

@Johann-S
Copy link
Member

Johann-S commented Mar 20, 2018

I fixed the previous error but they are another one 😢

Edit:
If I set qunitjs to 2.4.1 and karma-qunit to 1.2.1 everything works...

@XhmikosR
Copy link
Member Author

XhmikosR commented Mar 20, 2018 via email

@Johann-S
Copy link
Member

I checked a lot karma-qunit and for me it's more related to a change in QUnit which should be handled in karma-qunit

@XhmikosR
Copy link
Member Author

I'll try downgrading karma-qunit tomorrow, unless you beat me to it.

@XhmikosR
Copy link
Member Author

I downgraded karma-qunit and qunitjs and tests work again.

@XhmikosR XhmikosR force-pushed the v4-dev-xmr-update-deps branch from 1a67a9f to 2a59bab Compare March 21, 2018 09:38
This reduces duplication and the chances to forget to update something.
@XhmikosR XhmikosR force-pushed the v4-dev-xmr-update-deps branch from 9919b4c to 702fcb3 Compare March 21, 2018 10:05
@mdo mdo mentioned this pull request Mar 21, 2018
@XhmikosR XhmikosR merged commit 2cd7003 into v4-dev Mar 21, 2018
@XhmikosR XhmikosR deleted the v4-dev-xmr-update-deps branch March 21, 2018 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants