diff --git a/.github/workflows/bump-version-and-publish.yml b/.github/workflows/bump-version-and-publish.yml index 0dcff23..9a095a7 100644 --- a/.github/workflows/bump-version-and-publish.yml +++ b/.github/workflows/bump-version-and-publish.yml @@ -32,7 +32,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '18.x' + node-version: '22.x' cache: 'npm' - name: Install npm packages run: npm ci diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index fe3f580..a9258a4 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/package-lock.json b/package-lock.json index b41aeff..dd895c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "prettier": "^3.0.3" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -284,9 +284,9 @@ } }, "node_modules/@emotion/is-prop-valid": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz", - "integrity": "sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz", + "integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==", "dependencies": { "@emotion/memoize": "^0.8.1" } @@ -297,9 +297,9 @@ "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" }, "node_modules/@emotion/unitless": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.0.tgz", - "integrity": "sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==" + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", @@ -2026,9 +2026,9 @@ "dev": true }, "node_modules/@types/stylis": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.0.tgz", - "integrity": "sha512-n4sx2bqL0mW1tvDf/loQ+aMX7GQD3lc3fkCMC55VFNDu/vBOabO+LTIeXKM14xK0ppk5TUGcWRjiSpIlUpghKw==" + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.5.tgz", + "integrity": "sha512-1Xve+NMN7FWjY14vLoY5tL3BVEQ/n42YLwaqJIPYhotZ9uBHt87VceMwWQpzmdEt2TNXIorIFG+YeCUUW7RInw==" }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", @@ -3448,9 +3448,9 @@ } }, "node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/dargs": { "version": "7.0.0", @@ -9723,9 +9723,9 @@ } }, "node_modules/postcss": { - "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", "funding": [ { "type": "opencollective", @@ -9741,9 +9741,9 @@ } ], "dependencies": { - "nanoid": "^3.3.6", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "source-map-js": "^1.2.0" }, "engines": { "node": "^10 || ^12 || >=14" @@ -11215,19 +11215,19 @@ } }, "node_modules/styled-components": { - "version": "6.1.8", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.8.tgz", - "integrity": "sha512-PQ6Dn+QxlWyEGCKDS71NGsXoVLKfE1c3vApkvDYS5KAK+V8fNWGhbSUEo9Gg2iaID2tjLXegEW3bZDUGpofRWw==", + "version": "6.1.11", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.11.tgz", + "integrity": "sha512-Ui0jXPzbp1phYij90h12ksljKGqF8ncGx+pjrNPsSPhbUUjWT2tD1FwGo2LF6USCnbrsIhNngDfodhxbegfEOA==", "dependencies": { - "@emotion/is-prop-valid": "1.2.1", - "@emotion/unitless": "0.8.0", - "@types/stylis": "4.2.0", + "@emotion/is-prop-valid": "1.2.2", + "@emotion/unitless": "0.8.1", + "@types/stylis": "4.2.5", "css-to-react-native": "3.2.0", - "csstype": "3.1.2", - "postcss": "8.4.31", + "csstype": "3.1.3", + "postcss": "8.4.38", "shallowequal": "1.1.0", - "stylis": "4.3.1", - "tslib": "2.5.0" + "stylis": "4.3.2", + "tslib": "2.6.2" }, "engines": { "node": ">= 16" @@ -11241,11 +11241,6 @@ "react-dom": ">= 16.8.0" } }, - "node_modules/styled-components/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, "node_modules/stylelint": { "version": "16.6.1", "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.6.1.tgz", @@ -11353,33 +11348,6 @@ "stylelint": "^14.0.0 || ^15.0.0 || ^16.0.1" } }, - "node_modules/stylelint-order/node_modules/postcss": { - "version": "8.4.32", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz", - "integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, "node_modules/stylelint-scss": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-6.0.0.tgz", @@ -11410,14 +11378,14 @@ } }, "node_modules/stylelint-use-nesting": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/stylelint-use-nesting/-/stylelint-use-nesting-4.1.0.tgz", - "integrity": "sha512-DDI+T/8kGIxdcfPClxp/oS2cFSWvd+hoV54clF7lnrlSvYHOQouaxgMOuPmkIQig0suss/PrAw5GwBYoSu8WoQ==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylelint-use-nesting/-/stylelint-use-nesting-5.1.1.tgz", + "integrity": "sha512-CMPN52zWGqogls7i6u0jCjOU7jb6/3r+1/VWkuSoA6KAATgHEvGe6xc9PcLMBKYLtTS1tblEyIUW8fiU36D5GQ==", "engines": { - "node": ">=16.0.0" + "node": ">=20.0.0" }, "peerDependencies": { - "stylelint": ">= 10" + "stylelint": ">= 16" } }, "node_modules/stylelint/node_modules/ansi-regex": { @@ -11562,9 +11530,9 @@ } }, "node_modules/stylis": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.1.tgz", - "integrity": "sha512-EQepAV+wMsIaGVGX1RECzgrcqRRU/0sYOHkeLsZ3fzHaHXZy4DaOOX0vOlGQdlsjkh3mFHAIlVimpwAs4dslyQ==" + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.2.tgz", + "integrity": "sha512-bhtUjWd/z6ltJiQwg0dUfxEJ+W+jdqQd8TbWLWyeIJHlnsqmGLRFFd8e5mA0AZi/zx90smXRlN66YMTcaSFifg==" }, "node_modules/supports-color": { "version": "7.2.0", @@ -11851,8 +11819,7 @@ "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "dev": true + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/tuf-js": { "version": "1.1.7", @@ -12461,7 +12428,7 @@ "@mediamonks/stylelint-config": "^1.6.0", "postcss-styled-syntax": "^0.6.2", "stylelint-config-recommended": "^14.0.0", - "stylelint-use-nesting": "^4.1.0" + "stylelint-use-nesting": "^5.1.1" } }, "packages/stylelint-config-scss": { @@ -12471,7 +12438,7 @@ "dependencies": { "@mediamonks/stylelint-config": "^1.6.0", "stylelint-config-recommended-scss": "^14.0.0", - "stylelint-use-nesting": "^4.1.0" + "stylelint-use-nesting": "^5.1.1" } }, "packages/stylelint-config-scss-muban": { @@ -12495,7 +12462,7 @@ "dependencies": { "@mediamonks/stylelint-config": "*", "@mediamonks/stylelint-config-css-in-js": "*", - "styled-components": "^6.1.0", + "styled-components": "^6.1.11", "stylelint": "^16.6.1" } }, diff --git a/package.json b/package.json index 4b8fd77..e565918 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "prettier": "^3.0.3" }, "engines": { - "node": ">=18" + "node": ">=20" }, "prettier": "@mediamonks/prettier-config", "lint-staged": { diff --git a/packages/stylelint-config-css-in-js/index.js b/packages/stylelint-config-css-in-js/index.mjs similarity index 95% rename from packages/stylelint-config-css-in-js/index.js rename to packages/stylelint-config-css-in-js/index.mjs index c6a723b..c872cd5 100644 --- a/packages/stylelint-config-css-in-js/index.js +++ b/packages/stylelint-config-css-in-js/index.mjs @@ -1,5 +1,5 @@ // eslint-disable-next-line unicorn/prefer-module -module.exports = { +export default { extends: ['stylelint-config-recommended', '@mediamonks/stylelint-config'], customSyntax: 'postcss-styled-syntax', plugins: ['stylelint-use-nesting'], diff --git a/packages/stylelint-config-css-in-js/package.json b/packages/stylelint-config-css-in-js/package.json index 2654881..1bbca08 100644 --- a/packages/stylelint-config-css-in-js/package.json +++ b/packages/stylelint-config-css-in-js/package.json @@ -22,11 +22,13 @@ "publishConfig": { "access": "public" }, - "main": "index.js", + "exports": { + ".": "./index.mjs" + }, "dependencies": { "@mediamonks/stylelint-config": "^1.6.0", "postcss-styled-syntax": "^0.6.2", "stylelint-config-recommended": "^14.0.0", - "stylelint-use-nesting": "^4.1.0" + "stylelint-use-nesting": "^5.1.1" } } diff --git a/packages/stylelint-config-css/index.js b/packages/stylelint-config-css/index.mjs similarity index 91% rename from packages/stylelint-config-css/index.js rename to packages/stylelint-config-css/index.mjs index 9a5f2e3..c73c45d 100644 --- a/packages/stylelint-config-css/index.js +++ b/packages/stylelint-config-css/index.mjs @@ -1,5 +1,5 @@ // eslint-disable-next-line unicorn/prefer-module -module.exports = { +export default { extends: ['stylelint-config-recommended', '@mediamonks/stylelint-config'], rules: { 'declaration-property-value-no-unknown': true, diff --git a/packages/stylelint-config-css/package.json b/packages/stylelint-config-css/package.json index 3dab6ca..dcc5377 100644 --- a/packages/stylelint-config-css/package.json +++ b/packages/stylelint-config-css/package.json @@ -21,7 +21,9 @@ "publishConfig": { "access": "public" }, - "main": "index.js", + "exports": { + ".": "./index.mjs" + }, "dependencies": { "@mediamonks/stylelint-config": "^1.6.0", "stylelint-config-recommended": "^14.0.0" diff --git a/packages/stylelint-config-scss-muban/index.js b/packages/stylelint-config-scss-muban/index.mjs similarity index 96% rename from packages/stylelint-config-scss-muban/index.js rename to packages/stylelint-config-scss-muban/index.mjs index 0ba8169..437ffbc 100644 --- a/packages/stylelint-config-scss-muban/index.js +++ b/packages/stylelint-config-scss-muban/index.mjs @@ -10,7 +10,7 @@ const patternRuleOptions = [ ]; // eslint-disable-next-line unicorn/prefer-module -module.exports = { +export default { extends: ['@mediamonks/stylelint-config-scss'], /** diff --git a/packages/stylelint-config-scss-muban/package.json b/packages/stylelint-config-scss-muban/package.json index 950e10b..7f05342 100644 --- a/packages/stylelint-config-scss-muban/package.json +++ b/packages/stylelint-config-scss-muban/package.json @@ -26,5 +26,7 @@ "publishConfig": { "access": "public" }, - "main": "index.js" + "exports": { + ".": "./index.mjs" + } } diff --git a/packages/stylelint-config-scss/index.js b/packages/stylelint-config-scss/index.mjs similarity index 96% rename from packages/stylelint-config-scss/index.js rename to packages/stylelint-config-scss/index.mjs index 7c0e610..5c0d569 100644 --- a/packages/stylelint-config-scss/index.js +++ b/packages/stylelint-config-scss/index.mjs @@ -8,7 +8,7 @@ const patternRuleOptions = [ ]; // eslint-disable-next-line unicorn/prefer-module -module.exports = { +export default { extends: ['stylelint-config-recommended-scss', '@mediamonks/stylelint-config'], plugins: ['stylelint-use-nesting'], rules: { diff --git a/packages/stylelint-config-scss/package.json b/packages/stylelint-config-scss/package.json index e70d760..7e7f4ce 100644 --- a/packages/stylelint-config-scss/package.json +++ b/packages/stylelint-config-scss/package.json @@ -22,10 +22,12 @@ "publishConfig": { "access": "public" }, - "main": "index.js", + "exports": { + ".": "./index.mjs" + }, "dependencies": { "@mediamonks/stylelint-config": "^1.6.0", "stylelint-config-recommended-scss": "^14.0.0", - "stylelint-use-nesting": "^4.1.0" + "stylelint-use-nesting": "^5.1.1" } } diff --git a/packages/test-stylelint-config-css-in-js/package.json b/packages/test-stylelint-config-css-in-js/package.json index 1dac61b..1043dca 100644 --- a/packages/test-stylelint-config-css-in-js/package.json +++ b/packages/test-stylelint-config-css-in-js/package.json @@ -1,6 +1,7 @@ { "name": "@mediamonks/test-stylelint-config-css-in-js", "private": true, + "type": "module", "scripts": { "stylelint": "stylelint ./**/*.js", "stylelint:fix": "stylelint ./**/*.js --fix" @@ -8,7 +9,7 @@ "dependencies": { "@mediamonks/stylelint-config": "*", "@mediamonks/stylelint-config-css-in-js": "*", - "styled-components": "^6.1.0", + "styled-components": "^6.1.11", "stylelint": "^16.6.1" }, "stylelint": { diff --git a/packages/test-stylelint-config-css/package.json b/packages/test-stylelint-config-css/package.json index d811095..6871cb0 100644 --- a/packages/test-stylelint-config-css/package.json +++ b/packages/test-stylelint-config-css/package.json @@ -1,6 +1,7 @@ { "name": "@mediamonks/test-stylelint-config-css", "private": true, + "type": "module", "scripts": { "stylelint": "stylelint ./**/*.css", "stylelint:fix": "stylelint ./**/*.css --fix" diff --git a/packages/test-stylelint-config-scss-muban/package.json b/packages/test-stylelint-config-scss-muban/package.json index 54e9fdd..d0dd1d4 100644 --- a/packages/test-stylelint-config-scss-muban/package.json +++ b/packages/test-stylelint-config-scss-muban/package.json @@ -1,6 +1,7 @@ { "name": "@mediamonks/test-stylelint-config-scss-muban", "private": true, + "type": "module", "scripts": { "stylelint": "stylelint ./**/*.scss", "stylelint:fix": "stylelint ./**/*.scss --fix" diff --git a/packages/test-stylelint-config-scss/package.json b/packages/test-stylelint-config-scss/package.json index 0cae662..0b8e953 100644 --- a/packages/test-stylelint-config-scss/package.json +++ b/packages/test-stylelint-config-scss/package.json @@ -1,6 +1,7 @@ { "name": "@mediamonks/test-stylelint-config-scss", "private": true, + "type": "module", "scripts": { "stylelint": "stylelint ./**/*.scss", "stylelint:fix": "stylelint ./**/*.scss --fix"