Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace ts-node with tsx * Migrate @sumup/icons to ESM * Switch @sumup/icons to package exports * Migrate @sumup/design-tokens to ESM * Configure @sumup/circuit-ui as a module * Add file extensions using eslint-plugin-node * Add extensions to component index files * Search and insert file extensions * Proxy isPropValid import * Fix Storybook imports * Fix css prop types * Internalize usePrevious and useLatest hooks The packages weren't ESM-ready. * Fix import resolution and dependency cycles * Use .js for all file extensions That's what TypeScript uses for the compiled files. * Switch Storybook to Vite * Upgrade @storybook/* packages to latest * Add extensions in story and spec files * Remove Babel * Integrate Vite with Turbosnap * Re-add exports after rebase * Add code comments for Emotion workaround * Add changesets * Raise the minimum Node.js version to 16+ * Add unit tests for useLatest and usePrevious
- Loading branch information
1 parent
4f78573
commit bc88242
Showing
504 changed files
with
3,103 additions
and
5,874 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@sumup/design-tokens': major | ||
'@sumup/circuit-ui': major | ||
'@sumup/icons': major | ||
--- | ||
|
||
Raised the minimum Node.js version to 16+. This is the first maintained version with support for ES modules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'@sumup/design-tokens': major | ||
'@sumup/circuit-ui': major | ||
'@sumup/icons': major | ||
--- | ||
|
||
**This package is now pure ESM**. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). | ||
|
||
- If you use TypeScript, you need to use TypeScript 4.7 or later ([ref](https://github.com/microsoft/TypeScript/issues/46452)). | ||
- If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM. (Next.js supports ESM packages out of the box since [v12](https://nextjs.org/blog/next-12#es-modules-support-and-url-imports)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@sumup/design-tokens': major | ||
'@sumup/circuit-ui': major | ||
'@sumup/icons': major | ||
--- | ||
|
||
Switched to the `"exports"` field to configure the package entry points. Files that are not explicitly defined in `"exports"` can no longer be imported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.