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

chore: update deps 💣 #1324

Merged
merged 16 commits into from
Feb 11, 2020
Merged

chore: update deps 💣 #1324

merged 16 commits into from
Feb 11, 2020

Conversation

tdeekens
Copy link
Contributor

Summary

Initially I set out to update flopflip and my weekends work. Then I noticed how much is outdated and spend a good amount of minutes to update things one by one.

@vercel
Copy link

vercel bot commented Feb 10, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/commercetools/merchant-center-application-kit/2mp9tbd7i
✅ Preview: https://merchant-center-application-kit-git-td-chore-update-deps-2.commercetools.now.sh

.eslintrc.yaml Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@@ -121,7 +121,7 @@ describe('rendering', () => {
]);
});
it('should not render regex info', async () => {
await waitForElementToBeRemoved(() => rendered.getByText('Loading...'));
await waitForElementToBeRemoved(() => rendered.queryByText('Loading...'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Detected by new eslint rule.

@tdeekens tdeekens self-assigned this Feb 10, 2020
@tdeekens tdeekens added 🙏 Status: Dev Review Waiting for technical reviews 🤖 Type: Dependencies Dependency updates or something similar labels Feb 10, 2020
@vercel vercel bot temporarily deployed to Preview February 10, 2020 19:11 Inactive
package.json Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview February 10, 2020 19:19 Inactive
@vercel vercel bot temporarily deployed to Preview February 10, 2020 19:31 Inactive
@vercel vercel bot temporarily deployed to Preview February 10, 2020 19:44 Inactive
tsconfig.json Outdated
@@ -6,7 +6,7 @@
"esModuleInterop": true,
"importHelpers": true,
// See https://devblogs.microsoft.com/typescript/typescript-and-babel-7/
"isolatedModules": true,
"isolatedModules": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fails if we set this to true. I've read a bit about it but not 100% sure. Did it fail in earlier versions of babel v7 when being true?

Copy link
Member

Choose a reason for hiding this comment

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

Hmm as far as I know, if we use Babel we need to activate this flag. Did you find a reference or docs that say otherwise?

Also, I'm not sure how this change relates to any of the updated dependencies. What was the error that you got? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CleanShot 2020-02-11 at 09 20 21@2x

I've also not found much otherwise. However, also confusing that it works. Typechecking jest however fails without.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we still need the @types/jest.

In any case, we need to keep isolatedModules: true and try to downgrade one of the packages so that we don't get the problem with the chalk dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, read that chalk issue too. It's a bit of a cat and mouse game. I now:

  1. Downgraded ts-jest
  2. Removed @types/jest (comes with jest itself)

This should work. However, it's a general issue: if any library uses language TS features babel can't compile we're doomed. This is the case somehow with the updated dependency of calk in ts-jest.

@vercel vercel bot temporarily deployed to Preview February 11, 2020 09:18 Inactive
@vercel vercel bot temporarily deployed to Preview February 11, 2020 10:07 Inactive
@tdeekens
Copy link
Contributor Author

@emmenko this should be good now as discussed. Had to rebase. The last 1-2 commits are relevant.

@vercel vercel bot temporarily deployed to Preview February 11, 2020 11:18 Inactive
@vercel vercel bot temporarily deployed to Preview February 11, 2020 12:20 Inactive
@vercel vercel bot temporarily deployed to Preview February 11, 2020 12:26 Inactive
@tdeekens
Copy link
Contributor Author

I presume the 👍 up was an approval. I will proceede to isolate some other dep updates where possible.

@tdeekens tdeekens merged commit 2a154c0 into master Feb 11, 2020
@tdeekens tdeekens deleted the td-chore-update-deps-2 branch February 11, 2020 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏 Status: Dev Review Waiting for technical reviews 🤖 Type: Dependencies Dependency updates or something similar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants