Skip to content

Commit

Permalink
Merge pull request #1046 from ckeditor/ck/17449
Browse files Browse the repository at this point in the history
Fix (utils): Upgrade the `postcss-nesting` package to the latest version to avoid issues with non-supported `@nest` selectors. Closes ckeditor/ckeditor5#17449.

Internal (build-tools): Upgrade `postcss-nesting` to the latest version.
  • Loading branch information
pomek authored Nov 13, 2024
2 parents 2c49f99 + bd8031a commit 43db12f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ commands:
CKE5_GITHUB_ORGANIZATION="ckeditor"
CKE5_GITHUB_REPOSITORY="ckeditor5-dev"
CKE5_CIRCLE_APPROVAL_JOB_NAME="release_approval"
CKE5_GITHUB_RELEASE_BRANCH="master"
CKE5_GITHUB_RELEASE_BRANCH="master-v43"
echo export CKE5_CIRCLE_APPROVAL_JOB_NAME=$CKE5_CIRCLE_APPROVAL_JOB_NAME >> $BASH_ENV
echo export CKE5_GITHUB_RELEASE_BRANCH=$CKE5_GITHUB_RELEASE_BRANCH >> $BASH_ENV
Expand Down Expand Up @@ -171,11 +171,11 @@ jobs:
command: |
#!/bin/bash
CKE5_LATEST_COMMIT_HASH=$( git log -n 1 --pretty=format:%H origin/master )
CKE5_LATEST_COMMIT_HASH=$( git log -n 1 --pretty=format:%H origin/master-v43 )
CKE5_TRIGGER_COMMIT_HASH=<< pipeline.parameters.triggerCommitHash >>
if [[ "${CKE5_LATEST_COMMIT_HASH}" != "${CKE5_TRIGGER_COMMIT_HASH}" ]]; then
echo "There is a newer commit in the repository on the \`#master\` branch. Use its build to start the release."
echo "There is a newer commit in the repository on the \`#master-v43\` branch. Use its build to start the release."
circleci-agent step halt
fi
- npm_login_command
Expand Down Expand Up @@ -235,12 +235,12 @@ workflows:
filters:
branches:
only:
- master
- master-v43
- notify_ci_failure:
filters:
branches:
only:
- master
- master-v43

release:
when:
Expand All @@ -266,4 +266,4 @@ workflows:
filters:
branches:
only:
- master
- master-v43
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"pofile": "^1.1.4",
"postcss": "^8.0.0",
"postcss-mixins": "^9.0.4",
"postcss-nesting": "^12.0.2",
"postcss-nesting": "^13.0.0",
"purgecss": "^6.0.0",
"rollup": "^4.9.5",
"rollup-plugin-styles": "^4.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/ckeditor5-dev-build-tools/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export async function getRollupConfig( options: BuildOptions ) {
plugins: [
postcssMixins,
postcssNesting( {
noIsPseudoSelector: true
noIsPseudoSelector: true,
edition: '2021'
} )
],
minimize: minify,
Expand Down
3 changes: 2 additions & 1 deletion packages/ckeditor5-dev-utils/lib/styles/getpostcssconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports = function getPostCssConfig( options = {} ) {
require( 'postcss-mixins' )(),
require( 'postcss-nesting' )( {
// https://github.com/ckeditor/ckeditor5/issues/11730
noIsPseudoSelector: true
noIsPseudoSelector: true,
edition: '2021'
} ),
require( './themelogger' )()
]
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"postcss-import": "^14.1.0",
"postcss-loader": "^4.3.0",
"postcss-mixins": "^9.0.2",
"postcss-nesting": "^10.1.4",
"postcss-nesting": "^13.0.0",
"raw-loader": "^4.0.1",
"shelljs": "^0.8.1",
"style-loader": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ describe( 'styles', () => {
getPostCssConfig();

sinon.assert.calledWithExactly( stubs[ 'postcss-nesting' ], {
noIsPseudoSelector: true
noIsPseudoSelector: true,
edition: '2021'
} );
} );

Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/parsearguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function parseArguments( cliArguments ) {
ci: false,
verbose: false,
'compile-only': false,
branch: 'master',
branch: 'master-v43',
'npm-tag': null
}
};
Expand Down Expand Up @@ -73,7 +73,7 @@ module.exports = function parseArguments( cliArguments ) {
*
* @property {String} [from]
*
* @property {String} [branch='master']
* @property {String} [branch='master-v43']
*
* @property {Boolean} [compileOnly=false]
*
Expand Down

0 comments on commit 43db12f

Please sign in to comment.