diff --git a/.changeset/styled-forwarded-as.md b/.changeset/styled-forwarded-as.md deleted file mode 100644 index a553544a3..000000000 --- a/.changeset/styled-forwarded-as.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@linaria/react': minor ---- - -Add the `forwardedAs` prop to styled components. It is passed to the wrapped component as its `as` prop, which makes it possible to change the element rendered by a wrapped component without replacing the component itself. diff --git a/.changeset/tidy-spins-remain.md b/.changeset/tidy-spins-remain.md deleted file mode 100644 index 828069802..000000000 --- a/.changeset/tidy-spins-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@linaria/server': patch ---- - -Preserve critical keyframes when animation names follow other shorthand components or appear in comma-separated animation lists. diff --git a/.changeset/update-wyw-2-7-2.md b/.changeset/update-wyw-2-7-2.md deleted file mode 100644 index eeb91e143..000000000 --- a/.changeset/update-wyw-2-7-2.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@linaria/atomic': patch -'@linaria/core': patch -'@linaria/react': patch -'@linaria/stylelint': patch ---- - -Update WyW dependencies to 2.7.2 - -The `@wyw-in-js/*` dependencies move from 2.7.1 to 2.7.2. Linaria styles are compiled by the WyW integration of your bundler, and each integration depends on an exact version of `@wyw-in-js/transform`, so update `@wyw-in-js/vite`, `@wyw-in-js/webpack-loader` or the integration you use to 2.7.2 as well: the build runs the transform that the integration installs. - -Changes from this release that reach Linaria builds: - -- `@wyw-in-js/shared` and `@wyw-in-js/transform` depend on `minimatch` 11 instead of 9, so a fresh install no longer resolves a `minimatch` release affected by GHSA-g3hv-75wg-m249 (denial of service through globparts amplification), which has no fix in the 9.x line. -- Build-time evaluation with DOM emulation (`features.happyDOM`, on by default) runs in a single JavaScript realm, so checks such as `[] instanceof Array` or `error instanceof TypeError` in evaluated code give the same results as with `happyDOM: false`. -- A call to a function or class whose body assigns an outer binding with `=`, such as `let n = 0; function init() { n = 5; } init();`, is kept when a module is prepared for evaluation, so styles read the assigned value instead of the initial one. -- Statements that read `new.target` are kept when a module is prepared for evaluation; before, they were removed as if they read `import.meta`. -- An SSR check such as `typeof(window)`, `typeof (window as any)` or `typeof window!` is treated as `"undefined"` during build-time evaluation, as the bare `typeof window` already was. -- The Rollup and esbuild integrations print processor diagnostics as warnings instead of dropping them. -- Processor lookups and the waits between transform steps are cheaper in projects with many modules or many transforms in flight. - -Two changes can alter the CSS of existing code. With the default `hybrid` evaluation strategy, a module-level value that a function, constructor, method or callback changes while the module loads is now evaluated instead of resolved from its declaration: `let size = 0; function init() { size += 5; } init();` used to produce `0` and now produces `5`, and with the `static` strategy such a value now fails with the usual message about values it could not resolve. A module `var` that an interpolation reads above its declaration now gives the value that evaluation sees, as in the `execute` strategy. diff --git a/packages/atomic/CHANGELOG.md b/packages/atomic/CHANGELOG.md index 94c3d7945..4e704c528 100644 --- a/packages/atomic/CHANGELOG.md +++ b/packages/atomic/CHANGELOG.md @@ -1,5 +1,30 @@ # Change Log +## 8.4.0 + +### Patch Changes + +- 75e11a78: Update WyW dependencies to 2.7.2 + + The `@wyw-in-js/*` dependencies move from 2.7.1 to 2.7.2. Linaria styles are compiled by the WyW integration of your bundler, and each integration depends on an exact version of `@wyw-in-js/transform`, so update `@wyw-in-js/vite`, `@wyw-in-js/webpack-loader` or the integration you use to 2.7.2 as well: the build runs the transform that the integration installs. + + Changes from this release that reach Linaria builds: + + - `@wyw-in-js/shared` and `@wyw-in-js/transform` depend on `minimatch` 11 instead of 9, so a fresh install no longer resolves a `minimatch` release affected by GHSA-g3hv-75wg-m249 (denial of service through globparts amplification), which has no fix in the 9.x line. + - Build-time evaluation with DOM emulation (`features.happyDOM`, on by default) runs in a single JavaScript realm, so checks such as `[] instanceof Array` or `error instanceof TypeError` in evaluated code give the same results as with `happyDOM: false`. + - A call to a function or class whose body assigns an outer binding with `=`, such as `let n = 0; function init() { n = 5; } init();`, is kept when a module is prepared for evaluation, so styles read the assigned value instead of the initial one. + - Statements that read `new.target` are kept when a module is prepared for evaluation; before, they were removed as if they read `import.meta`. + - An SSR check such as `typeof(window)`, `typeof (window as any)` or `typeof window!` is treated as `"undefined"` during build-time evaluation, as the bare `typeof window` already was. + - The Rollup and esbuild integrations print processor diagnostics as warnings instead of dropping them. + - Processor lookups and the waits between transform steps are cheaper in projects with many modules or many transforms in flight. + + Two changes can alter the CSS of existing code. With the default `hybrid` evaluation strategy, a module-level value that a function, constructor, method or callback changes while the module loads is now evaluated instead of resolved from its declaration: `let size = 0; function init() { size += 5; } init();` used to produce `0` and now produces `5`, and with the `static` strategy such a value now fails with the usual message about values it could not resolve. A module `var` that an interpolation reads above its declaration now gives the value that evaluation sees, as in the `execute` strategy. + +- Updated dependencies [0129dda0] +- Updated dependencies [75e11a78] + - @linaria/react@8.4.0 + - @linaria/core@8.4.0 + ## 8.3.0 ### Minor Changes diff --git a/packages/atomic/package.json b/packages/atomic/package.json index 59e032d2b..7dc771e10 100644 --- a/packages/atomic/package.json +++ b/packages/atomic/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/atomic", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index d2f6978e1..64a36b3a3 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 8.4.0 + +### Patch Changes + +- 75e11a78: Update WyW dependencies to 2.7.2 + + The `@wyw-in-js/*` dependencies move from 2.7.1 to 2.7.2. Linaria styles are compiled by the WyW integration of your bundler, and each integration depends on an exact version of `@wyw-in-js/transform`, so update `@wyw-in-js/vite`, `@wyw-in-js/webpack-loader` or the integration you use to 2.7.2 as well: the build runs the transform that the integration installs. + + Changes from this release that reach Linaria builds: + + - `@wyw-in-js/shared` and `@wyw-in-js/transform` depend on `minimatch` 11 instead of 9, so a fresh install no longer resolves a `minimatch` release affected by GHSA-g3hv-75wg-m249 (denial of service through globparts amplification), which has no fix in the 9.x line. + - Build-time evaluation with DOM emulation (`features.happyDOM`, on by default) runs in a single JavaScript realm, so checks such as `[] instanceof Array` or `error instanceof TypeError` in evaluated code give the same results as with `happyDOM: false`. + - A call to a function or class whose body assigns an outer binding with `=`, such as `let n = 0; function init() { n = 5; } init();`, is kept when a module is prepared for evaluation, so styles read the assigned value instead of the initial one. + - Statements that read `new.target` are kept when a module is prepared for evaluation; before, they were removed as if they read `import.meta`. + - An SSR check such as `typeof(window)`, `typeof (window as any)` or `typeof window!` is treated as `"undefined"` during build-time evaluation, as the bare `typeof window` already was. + - The Rollup and esbuild integrations print processor diagnostics as warnings instead of dropping them. + - Processor lookups and the waits between transform steps are cheaper in projects with many modules or many transforms in flight. + + Two changes can alter the CSS of existing code. With the default `hybrid` evaluation strategy, a module-level value that a function, constructor, method or callback changes while the module loads is now evaluated instead of resolved from its declaration: `let size = 0; function init() { size += 5; } init();` used to produce `0` and now produces `5`, and with the `static` strategy such a value now fails with the usual message about values it could not resolve. A module `var` that an interpolation reads above its declaration now gives the value that evaluation sees, as in the `execute` strategy. + ## 8.3.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 3ad6d362d..c86a8f30e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/core", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/interop/CHANGELOG.md b/packages/interop/CHANGELOG.md index 9cc7bf61f..e8b7a30f0 100644 --- a/packages/interop/CHANGELOG.md +++ b/packages/interop/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 8.4.0 + ## 8.3.0 ## 8.2.0 diff --git a/packages/interop/package.json b/packages/interop/package.json index 224255fc6..80d9d5ffd 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/babel-plugin-interop", - "version": "8.3.0", + "version": "8.4.0", "homepage": "https://github.com/callstack/linaria/tree/master/packages/interop#readme", "repository": "git@github.com:callstack/linaria.git", "license": "MIT", diff --git a/packages/linaria/CHANGELOG.md b/packages/linaria/CHANGELOG.md index c72d6e1df..05fbced87 100644 --- a/packages/linaria/CHANGELOG.md +++ b/packages/linaria/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 8.4.0 + +### Patch Changes + +- Updated dependencies [0129dda0] +- Updated dependencies [c51dfe9b] +- Updated dependencies [75e11a78] + - @linaria/react@8.4.0 + - @linaria/server@8.4.0 + - @linaria/core@8.4.0 + ## 8.3.0 ### Patch Changes diff --git a/packages/linaria/package.json b/packages/linaria/package.json index 375066258..22a22cec4 100644 --- a/packages/linaria/package.json +++ b/packages/linaria/package.json @@ -1,6 +1,6 @@ { "name": "linaria", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "babel", diff --git a/packages/postcss-linaria/CHANGELOG.md b/packages/postcss-linaria/CHANGELOG.md index b01f7cb01..b977cbf94 100644 --- a/packages/postcss-linaria/CHANGELOG.md +++ b/packages/postcss-linaria/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 8.4.0 + ## 8.3.0 ### Patch Changes diff --git a/packages/postcss-linaria/package.json b/packages/postcss-linaria/package.json index a68a9ffee..c630bb5f2 100644 --- a/packages/postcss-linaria/package.json +++ b/packages/postcss-linaria/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/postcss-linaria", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 1a222f9c1..6d0079de5 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,32 @@ # Change Log +## 8.4.0 + +### Minor Changes + +- 0129dda0: Add the `forwardedAs` prop to styled components. It is passed to the wrapped component as its `as` prop, which makes it possible to change the element rendered by a wrapped component without replacing the component itself. + +### Patch Changes + +- 75e11a78: Update WyW dependencies to 2.7.2 + + The `@wyw-in-js/*` dependencies move from 2.7.1 to 2.7.2. Linaria styles are compiled by the WyW integration of your bundler, and each integration depends on an exact version of `@wyw-in-js/transform`, so update `@wyw-in-js/vite`, `@wyw-in-js/webpack-loader` or the integration you use to 2.7.2 as well: the build runs the transform that the integration installs. + + Changes from this release that reach Linaria builds: + + - `@wyw-in-js/shared` and `@wyw-in-js/transform` depend on `minimatch` 11 instead of 9, so a fresh install no longer resolves a `minimatch` release affected by GHSA-g3hv-75wg-m249 (denial of service through globparts amplification), which has no fix in the 9.x line. + - Build-time evaluation with DOM emulation (`features.happyDOM`, on by default) runs in a single JavaScript realm, so checks such as `[] instanceof Array` or `error instanceof TypeError` in evaluated code give the same results as with `happyDOM: false`. + - A call to a function or class whose body assigns an outer binding with `=`, such as `let n = 0; function init() { n = 5; } init();`, is kept when a module is prepared for evaluation, so styles read the assigned value instead of the initial one. + - Statements that read `new.target` are kept when a module is prepared for evaluation; before, they were removed as if they read `import.meta`. + - An SSR check such as `typeof(window)`, `typeof (window as any)` or `typeof window!` is treated as `"undefined"` during build-time evaluation, as the bare `typeof window` already was. + - The Rollup and esbuild integrations print processor diagnostics as warnings instead of dropping them. + - Processor lookups and the waits between transform steps are cheaper in projects with many modules or many transforms in flight. + + Two changes can alter the CSS of existing code. With the default `hybrid` evaluation strategy, a module-level value that a function, constructor, method or callback changes while the module loads is now evaluated instead of resolved from its declaration: `let size = 0; function init() { size += 5; } init();` used to produce `0` and now produces `5`, and with the `static` strategy such a value now fails with the usual message about values it could not resolve. A module `var` that an interpolation reads above its declaration now gives the value that evaluation sees, as in the `execute` strategy. + +- Updated dependencies [75e11a78] + - @linaria/core@8.4.0 + ## 8.3.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 9efbb41d0..13b46caa2 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/react", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 4d0da5b59..40acfb16a 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 8.4.0 + +### Patch Changes + +- c51dfe9b: Preserve critical keyframes when animation names follow other shorthand components or appear in comma-separated animation lists. + ## 8.3.0 ### Patch Changes diff --git a/packages/server/package.json b/packages/server/package.json index 60da70741..7f6a646a1 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/server", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/stylelint-config-standard-linaria/CHANGELOG.md b/packages/stylelint-config-standard-linaria/CHANGELOG.md index ba836c96c..e9f8b55d6 100644 --- a/packages/stylelint-config-standard-linaria/CHANGELOG.md +++ b/packages/stylelint-config-standard-linaria/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 8.4.0 + +### Patch Changes + +- @linaria/postcss-linaria@8.4.0 + ## 8.3.0 ### Patch Changes diff --git a/packages/stylelint-config-standard-linaria/package.json b/packages/stylelint-config-standard-linaria/package.json index 4805a1909..3ecfd4e72 100644 --- a/packages/stylelint-config-standard-linaria/package.json +++ b/packages/stylelint-config-standard-linaria/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/stylelint-config-standard-linaria", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/stylelint/CHANGELOG.md b/packages/stylelint/CHANGELOG.md index 00448f632..bf0bc49a6 100644 --- a/packages/stylelint/CHANGELOG.md +++ b/packages/stylelint/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 8.4.0 + +### Patch Changes + +- 75e11a78: Update WyW dependencies to 2.7.2 + + The `@wyw-in-js/*` dependencies move from 2.7.1 to 2.7.2. Linaria styles are compiled by the WyW integration of your bundler, and each integration depends on an exact version of `@wyw-in-js/transform`, so update `@wyw-in-js/vite`, `@wyw-in-js/webpack-loader` or the integration you use to 2.7.2 as well: the build runs the transform that the integration installs. + + Changes from this release that reach Linaria builds: + + - `@wyw-in-js/shared` and `@wyw-in-js/transform` depend on `minimatch` 11 instead of 9, so a fresh install no longer resolves a `minimatch` release affected by GHSA-g3hv-75wg-m249 (denial of service through globparts amplification), which has no fix in the 9.x line. + - Build-time evaluation with DOM emulation (`features.happyDOM`, on by default) runs in a single JavaScript realm, so checks such as `[] instanceof Array` or `error instanceof TypeError` in evaluated code give the same results as with `happyDOM: false`. + - A call to a function or class whose body assigns an outer binding with `=`, such as `let n = 0; function init() { n = 5; } init();`, is kept when a module is prepared for evaluation, so styles read the assigned value instead of the initial one. + - Statements that read `new.target` are kept when a module is prepared for evaluation; before, they were removed as if they read `import.meta`. + - An SSR check such as `typeof(window)`, `typeof (window as any)` or `typeof window!` is treated as `"undefined"` during build-time evaluation, as the bare `typeof window` already was. + - The Rollup and esbuild integrations print processor diagnostics as warnings instead of dropping them. + - Processor lookups and the waits between transform steps are cheaper in projects with many modules or many transforms in flight. + + Two changes can alter the CSS of existing code. With the default `hybrid` evaluation strategy, a module-level value that a function, constructor, method or callback changes while the module loads is now evaluated instead of resolved from its declaration: `let size = 0; function init() { size += 5; } init();` used to produce `0` and now produces `5`, and with the `static` strategy such a value now fails with the usual message about values it could not resolve. A module `var` that an interpolation reads above its declaration now gives the value that evaluation sees, as in the `execute` strategy. + ## 8.3.0 ### Minor Changes diff --git a/packages/stylelint/package.json b/packages/stylelint/package.json index 57e732639..6e822de90 100644 --- a/packages/stylelint/package.json +++ b/packages/stylelint/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/stylelint", - "version": "8.3.0", + "version": "8.4.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css",