Skip to content

Conversation

@BPScott
Copy link
Member

@BPScott BPScott commented Oct 26, 2020

WHY are these changes introduced?

Keeping up to date, prepping for the future

WHAT is this pull request doing?

Updates sewing-kit to 0.140.0
Updates typescript to 4.0.3

The typescript bump lets us cache TS type info when running type-checks without emiting any d.ts files - this means repeated runs of yarn run type-check are faster as it can use the cache. Repeated runs now take ~7s instead of ~20s).
The SK update pulls us onto newest major versions of eslint 7.x and stylelint 13.7.x. In particular this means better support for optional chaining and we fix a few false positives in react hooks lints.

How to 🎩

Ensure tests pass

@github-actions
Copy link
Contributor

github-actions bot commented Oct 26, 2020

🔴 This pull request modifies 30 files and might impact 79 other files. Because this is a larger than average splash zone for a change, remember to tophat areas that could be affected.

Details:
All files potentially affected (total: 79)
📄 .eslintrc (total: 0)

Files potentially affected (total: 0)

📄 UNRELEASED.md (total: 0)

Files potentially affected (total: 0)

📄 documentation/Console messages.md (total: 0)

Files potentially affected (total: 0)

📄 package.json (total: 0)

Files potentially affected (total: 0)

🧩 src/components/DropZone/tests/DropZone.test.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/Filters/Filters.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/FormLayout/FormLayout.tsx (total: 3)

Files potentially affected (total: 3)

🧩 src/components/Frame/components/ToastManager/ToastManager.tsx (total: 1)

Files potentially affected (total: 1)

🧩 src/components/MediaQueryProvider/tests/MediaQueryProvider.test.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/Modal/tests/Modal.test.tsx (total: 0)

Files potentially affected (total: 0)

🎨 src/components/Page/Page.scss (total: 1)

Files potentially affected (total: 1)

🧩 src/components/PolarisTestProvider/tests/PolarisTestProvider.test.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/ResourceList/components/FilterControl/types.ts (total: 4)

Files potentially affected (total: 4)

🧩 src/components/Sticky/Sticky.tsx (total: 1)

Files potentially affected (total: 1)

🧩 src/components/Tabs/components/TabMeasurer/TabMeasurer.tsx (total: 1)

Files potentially affected (total: 1)

🧩 src/components/TextField/TextField.tsx (total: 9)

Files potentially affected (total: 9)

🧩 src/components/TextField/components/Spinner/Spinner.tsx (total: 10)

Files potentially affected (total: 10)

🧩 src/components/ThemeProvider/tests/ThemeProvider.test.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/Toast/Toast.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/components/index.ts (total: 0)

Files potentially affected (total: 0)

🧩 src/index.ts (total: 0)

Files potentially affected (total: 0)

🧩 src/utilities/color-transformers.ts (total: 68)

Files potentially affected (total: 68)

🧩 src/utilities/components.tsx (total: 66)

Files potentially affected (total: 66)

🧩 src/utilities/tests/use-is-after-initial-mount.test.tsx (total: 0)

Files potentially affected (total: 0)

🧩 src/utilities/theme/utils.ts (total: 65)

Files potentially affected (total: 65)

🧩 src/utilities/use-deep-compare-ref.tsx (total: 8)

Files potentially affected (total: 8)

🧩 src/utilities/use-deep-effect.tsx (total: 6)

Files potentially affected (total: 6)

📄 tsconfig.build.json (total: 0)

Files potentially affected (total: 0)

📄 tsconfig.json (total: 0)

Files potentially affected (total: 0)

📄 yarn.lock (total: 0)

Files potentially affected (total: 0)

const onChangeInterval = () => {
if (interval > minInterval) interval -= decrementBy;
onChange();
onChange(0);
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixing up the types in Spinner highlighted that this was wrong - onChange should take a number as an argument. This is still not doing what we'd hope the code should do - holding the step buttons doesn't increment the value - but at least it is properly typed now. I briefly tried fixing this but didn't get it working. I think a proper fix would be better as a separate PR.

@BPScott BPScott requested a review from alex-page October 26, 2020 22:52
@alex-page
Copy link
Member

Thanks @BPScott looks like there was some lint/test failures but the changes look good.

@BPScott BPScott force-pushed the eslint-bump-investigation branch from cb390df to a29d374 Compare October 27, 2020 02:25
- Cache buildinfo when running type-check (this was disallowed before)
@BPScott BPScott force-pushed the eslint-bump-investigation branch from a29d374 to e4d82d3 Compare October 27, 2020 17:01
@BPScott BPScott merged commit c00b4ef into master Oct 27, 2020
@BPScott BPScott deleted the eslint-bump-investigation branch October 27, 2020 22:31
sylvhama pushed a commit that referenced this pull request Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants