-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migration to wyw-in-js (#1386)
* feat: migration to wyw-in-js * chore: remove packages that were moved to wyw-in-js * chore: remove redundant tests * chore: rollback dtslint * chore: missed lockfile * chore: changeset * doc: migration guide -> v6 * fix: latest version of wyw, one more test, fixed docs
- Loading branch information
Showing
347 changed files
with
1,778 additions
and
29,651 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
'@linaria/atomic': patch | ||
'@linaria/babel-preset': patch | ||
'@linaria/testkit': patch | ||
'@linaria/atomic': major | ||
'@linaria/babel-preset': major | ||
'@linaria/testkit': major | ||
--- | ||
|
||
Stylis has been upgraded from v3 to v4. |
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,48 @@ | ||
--- | ||
'@linaria/atomic': major | ||
'@linaria/core': major | ||
'@linaria/babel-plugin-interop': major | ||
'linaria': major | ||
'@linaria/postcss-linaria': major | ||
'@linaria/react': major | ||
'@linaria/stylelint': major | ||
'@linaria/stylelint-config-standard-linaria': major | ||
'@linaria/testkit': major | ||
'linaria-website': major | ||
'@linaria/server': major | ||
--- | ||
|
||
BREAKING CHANGE: Linaria has been migrated to wyw-in-js. | ||
|
||
# Migration Guide | ||
|
||
## For Users | ||
|
||
The main breaking change is that all tooling has been moved from the `@linaria` scope to the `@wyw-in-js` scope. This means that you will need to update your dependencies as follows: | ||
|
||
- `@linaria/vite` -> `@wyw-in-js/vite` | ||
- `@linaria/cli` -> `@wyw-in-js/cli` | ||
- `@linaria/babel-preset` -> `@wyw-in-js/babel-preset` | ||
|
||
However, the `atomic`, `core`, and `styled` imports remain in the `@linaria` scope. | ||
|
||
Additionally, support for Webpack v4 has been dropped. The webpack plugins have been renamed: | ||
|
||
- `@linaria/webpack4-loader` has been discontinued | ||
- `@linaria/webpack5-loader` has been renamed to `@wyw-in-js/webpack-loader` | ||
|
||
There is no longer a need to install `@linaria/shaker` as it is now part of `@wyw-in-js/transform`, which will be installed automatically with the bundler plugins. | ||
|
||
The configuration file has been renamed from `linariarc` to `wyw-in-jsrc`. | ||
|
||
## For Custom Processor Developers | ||
|
||
Base classes for processors and most helpers have been moved to `@wyw-in-js/processor-utils`. | ||
|
||
All APIs that had `linaria` in their names have been renamed: | ||
|
||
- The field that stores meta information in runtime has been renamed from `__linaria` to `__wyw_meta` | ||
- The export with all interpolated values has been renamed from `__linariaPreval` to `__wywPreval` | ||
- The caller name in Babel has been renamed from `linaria` to `wyw-in-js` | ||
|
||
For additional information, please visit the [wyw-in-js.dev](https://wyw-in-js.dev). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ module.exports = { | |
'workspaces', | ||
'binary', | ||
|
||
'linaria', | ||
'wyw-in-js', | ||
|
||
'scripts', | ||
'betterScripts', | ||
|
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 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 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 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
Oops, something went wrong.