Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: csstools/postcss-plugins
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2f0ad9c194b14b5737bdf3e4a42625ee48568942
Choose a base ref
...
head repository: csstools/postcss-plugins
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2b9fd57c1f7ba9f9b87b4662173f7deb4f32a4e3
Choose a head ref

Commits on May 23, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    12712af View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    6838120 View commit details
  3. update the site

    romainmenke committed May 23, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    4fb278e View commit details

Commits on May 25, 2024

  1. update the site

    romainmenke committed May 25, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    5500cf5 View commit details

Commits on Jun 1, 2024

  1. Bump the all-dependencies group across 2 directories with 2 updates (#…

    …1401)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Romain Menke <romainmenke@gmail.com>
    dependabot[bot] and romainmenke authored Jun 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a3d1032 View commit details
  2. Bump the development-dependencies group with 7 updates (#1402)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Romain Menke <romainmenke@gmail.com>
    dependabot[bot] and romainmenke authored Jun 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    88bdf6b View commit details

Commits on Jun 21, 2024

  1. Bump ws from 7.5.9 to 7.5.10 in /sites (#1411)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    2d0d7ac View commit details

Commits on Jun 22, 2024

  1. Bump the development-dependencies group across 1 directory with 13 up…

    …dates (#1410)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Romain Menke <romainmenke@gmail.com>
    dependabot[bot] and romainmenke authored Jun 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    14a81cc View commit details
  2. Bump the all-dependencies group across 1 directory with 7 updates (#1409

    )
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Romain Menke <romainmenke@gmail.com>
    dependabot[bot] and romainmenke authored Jun 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1039eb5 View commit details
  3. Bump webpack from 5.91.0 to 5.92.0 in /e2e (#1408)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0cfe186 View commit details
  4. Bump browserslist from 4.23.0 to 4.23.1 in the production-dependencie…

    …s group (#1405)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7b525e5 View commit details
  5. update dependencies

    romainmenke committed Jun 22, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    20ccaeb View commit details

Commits on Jun 29, 2024

  1. update dependencies (#1416)

    romainmenke authored Jun 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3a903bf View commit details
  2. update eslint (#1412)

    romainmenke authored Jun 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c58145d View commit details
  3. cleanup

    romainmenke committed Jun 29, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    21c44d8 View commit details
  4. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    2de97fd View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    151af6d View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    a3a4e66 View commit details
  7. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    c3fd14e View commit details
  8. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    8224fd7 View commit details
  9. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    a61f032 View commit details
  10. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    b3037f9 View commit details
  11. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    ff7ca00 View commit details
  12. @csstools/css-calc v1.2.3

    romainmenke committed Jun 29, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    e535bbf View commit details
  13. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    c142cc6 View commit details
  14. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    f430b40 View commit details
  15. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    0653634 View commit details
  16. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    e0f3f43 View commit details
  17. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    9262959 View commit details
  18. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    e51532c View commit details
  19. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    f8eea1f View commit details
  20. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    c831544 View commit details
  21. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    80d4763 View commit details
  22. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    bda50e0 View commit details
  23. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    e0403ec View commit details
  24. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    50e5ade View commit details
  25. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    335a400 View commit details
  26. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    9874c55 View commit details
  27. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    add4871 View commit details
  28. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    2a607f3 View commit details
  29. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    f2adc18 View commit details
  30. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    978592c View commit details
  31. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    8988a53 View commit details
  32. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    621e803 View commit details
  33. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    2afa79d View commit details
  34. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    88ffb00 View commit details
  35. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    c70a327 View commit details
  36. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    211bb06 View commit details
  37. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    4a02be8 View commit details
  38. Verified

    This commit was signed with the committer’s verified signature.
    romainmenke Romain Menke
    Copy the full SHA
    abeba6b View commit details
Showing 424 changed files with 6,010 additions and 7,054 deletions.
45 changes: 0 additions & 45 deletions .eslintrc.json

This file was deleted.

12 changes: 6 additions & 6 deletions .github/bin/format-package-json.mjs
Original file line number Diff line number Diff line change
@@ -57,13 +57,13 @@ const formatted = {};

formatted.funding = [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
'type': 'github',
'url': 'https://github.com/sponsors/csstools',
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
'type': 'opencollective',
'url': 'https://opencollective.com/csstools',
},
];

delete packageJSONInfo.funding;
@@ -75,7 +75,7 @@ const formatted = {};
delete packageJSONInfo.private;

formatted.engines = {
node: '^14 || ^16 || >=18'
node: '^14 || ^16 || >=18',
};
delete packageJSONInfo.engines;

6 changes: 3 additions & 3 deletions .github/bin/generate-docs/api-documenter.mjs
Original file line number Diff line number Diff line change
@@ -33,8 +33,8 @@ await new Promise((resolve, reject) => {
],
{
stdio: 'inherit',
shell: platform === 'win32'
}
shell: platform === 'win32',
},
);

publishCmd.on('close', (code) => {
@@ -49,6 +49,6 @@ await new Promise((resolve, reject) => {

for (const file of await getFiles('docs', true)) {
const fileContents = fs.readFileSync(file, 'utf8').toString();
const cleanFileContents = fileContents.replace(/\r\n/g, "\n");
const cleanFileContents = fileContents.replace(/\r\n/g, '\n');
fs.writeFileSync(file, cleanFileContents);
}
6 changes: 3 additions & 3 deletions .github/bin/generate-docs/install.mjs
Original file line number Diff line number Diff line change
@@ -14,12 +14,12 @@ installDoc = installDoc.replaceAll('<packagePath>', path.join(path.basename(path

if (packageJSONInfo?.csstools?.assumesToProcessBundledCSS) {
installDoc = installDoc.replaceAll('<parallelBuildsNotice>', parallelBuildsNotice(packageJSONInfo.csstools.humanReadableName));
installDoc = installDoc.replaceAll('<otherPluginsInWebpack>', `["@csstools/postcss-bundler"]`);
installDoc = installDoc.replaceAll('<otherPluginsInWebpack>', '["@csstools/postcss-bundler"]');
// <parallelBuildsNotice>
} else {
// Just a filler so that formatting doesn't become too complex.
installDoc = installDoc.replaceAll('<parallelBuildsNotice>', ``);
installDoc = installDoc.replaceAll('<otherPluginsInWebpack>', `// Other plugins`);
installDoc = installDoc.replaceAll('<parallelBuildsNotice>', '');
installDoc = installDoc.replaceAll('<otherPluginsInWebpack>', '// Other plugins');
}

fs.writeFileSync('./INSTALL.md', installDoc);
8 changes: 4 additions & 4 deletions .github/bin/generate-docs/readme.mjs
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ let exampleFilePaths = [];
try {
exampleFilePaths = (
await fs.promises.readdir(path.join('test', 'examples'), { recursive: true, withFileTypes: true })
).filter(x => x.isFile()).map(x => path.join(x.path, x.name));
} catch(error) {
).filter(x => x.isFile()).map(x => path.join(x.parentPath, x.name));
} catch {
// No examples
}

@@ -60,7 +60,7 @@ readmeDoc = readmeDoc.replace('<header>', `# <humanReadableName> [<img src="http
`\n
\`\`\`bash
npm install <packageName> --save-dev
\`\`\``
\`\`\``,
);

// Insert "Usage" section
@@ -119,7 +119,7 @@ readmeDoc = readmeDoc.replaceAll('<specUrl>', packageJSONInfo.csstools.specUrl);
if (packageJSONInfo?.csstools?.assumesToProcessBundledCSS) {
readmeDoc = readmeDoc.replaceAll('<parallelBuildsNotice>', parallelBuildsNotice(packageJSONInfo.csstools.humanReadableName));
} else {
readmeDoc = readmeDoc.replaceAll('<parallelBuildsNotice>', ``);
readmeDoc = readmeDoc.replaceAll('<parallelBuildsNotice>', '');
}

for (const exampleFilePath of exampleFilePaths) {
2 changes: 1 addition & 1 deletion .github/bin/license/allowed.mjs
Original file line number Diff line number Diff line change
@@ -139,7 +139,7 @@ const osiApproved = [
'BSL-1.0',
'Artistic-1.0-Perl',
'NPOSL-3.0',
'BlueOak-1.0.0' // https://github.com/spdx/license-list-XML/commit/d2709ad9c8c3f92989d2e7cadba3af8d1e0bc166
'BlueOak-1.0.0', // https://github.com/spdx/license-list-XML/commit/d2709ad9c8c3f92989d2e7cadba3af8d1e0bc166
];

export const osiApprovedWithCCO = [
4 changes: 2 additions & 2 deletions .github/bin/list-workspaces/list-workspaces.mjs
Original file line number Diff line number Diff line change
@@ -14,12 +14,12 @@ export async function listWorkspaces() {
const packageDirs = await getFiles(workspace.slice(0, -2), false);
for (const packageDir of packageDirs) {
packages.add(
path.resolve(path.join(packageDir, 'package.json'))
path.resolve(path.join(packageDir, 'package.json')),
);
}
} else {
packages.add(
path.resolve(path.join(workspace, 'package.json'))
path.resolve(path.join(workspace, 'package.json')),
);
}
}
12 changes: 6 additions & 6 deletions .github/bin/modified-workspaces/list-modified-files.mjs
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ export async function listModifiedFilesInPullRequest(repository, pullRequestNumb
while (true) {
const newFiles = await getPullRequestFiles(repository, pullRequestNumber, page);
allFiles.push(...newFiles);
page++
page++;

if (newFiles.length < 100) {
break;
@@ -21,8 +21,8 @@ export async function listModifiedFilesInPullRequest(repository, pullRequestNumb
async function getPullRequestFiles(repository, pullRequestNumber, page) {
return await (new Promise((resolve, reject) => {
const headers = {
'User-Agent': 'GitHub Workflow'
}
'User-Agent': 'GitHub Workflow',
};

if (process.env.GITHUB_TOKEN) {
headers['authorization'] = `Bearer ${process.env.GITHUB_TOKEN}`;
@@ -33,10 +33,10 @@ async function getPullRequestFiles(repository, pullRequestNumber, page) {
port: 443,
path: `/repos/${repository}/pulls/${pullRequestNumber}/files?per_page=100&page=${page}`,
method: 'GET',
headers: headers
headers: headers,
}, (res) => {
if (!res.statusCode || (Math.floor(res.statusCode / 100) !== 2)) {
throw new Error(`Unexpected response code "${res.statusCode}" with message "${res.statusMessage}"`)
throw new Error(`Unexpected response code "${res.statusCode}" with message "${res.statusMessage}"`);
}

let data = [];
@@ -46,7 +46,7 @@ async function getPullRequestFiles(repository, pullRequestNumber, page) {

res.on('end', () => {
resolve(
JSON.parse(Buffer.concat(data).toString()).map((x) => x.filename)
JSON.parse(Buffer.concat(data).toString()).map((x) => x.filename),
);
});

10 changes: 5 additions & 5 deletions .github/bin/release-plan/commit.mjs
Original file line number Diff line number Diff line change
@@ -13,11 +13,11 @@ export async function commitSingleDirectory(commitMessage, dir) {
[
'commit',
'-am',
commitMessage
commitMessage,
],
{
cwd: dir
}
cwd: dir,
},
);

let stdoutBuffer = '';
@@ -60,8 +60,8 @@ export async function commitAfterDependencyUpdates() {
[
'commit',
'-am',
`set dependencies to newly released versions`
]
'set dependencies to newly released versions',
],
);

let stdoutBuffer = '';
12 changes: 6 additions & 6 deletions .github/bin/release-plan/discord-announce.mjs
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ const defaultPayload = {
url: '',
description: '',
color: 3963146,
}
]
},
],
};
const BASE_URL = 'https://github.com/csstools/postcss-plugins/tree/main';
const getChangelog = (changelog) => {
@@ -19,8 +19,8 @@ const getChangelog = (changelog) => {
const text = changelog.slice(firstLineBreakIndex + 1, secondRelease === -1 ? undefined : secondRelease).trim();

// Replace relative links with absolute links
return text.replace( /]\(\//g, `](${ BASE_URL }/` );
}
return text.replace(/]\(\//g, `](${ BASE_URL }/`);
};

export async function discordAnnounce(workspace) {
if (process.env.DEBUG) {
@@ -65,14 +65,14 @@ export async function discordAnnounceDryRun() {

const discordArgument = process.argv.slice(2).find(arg => arg.includes('--discord='));
if (!discordArgument) {
console.log(`Discord announce webhook URL: not set`);
console.log('Discord announce webhook URL: not set');
return;
}

const [, webHookUrl] = discordArgument.split('=');

if (!webHookUrl) {
console.log(`Discord announce webhook URL: not set`);
console.log('Discord announce webhook URL: not set');
return;
}

6 changes: 3 additions & 3 deletions .github/bin/release-plan/docs.mjs
Original file line number Diff line number Diff line change
@@ -8,12 +8,12 @@ export async function updateDocumentation(packageDirectory) {
[
'run',
'docs',
'--if-present'
'--if-present',
],
{
cwd: packageDirectory,
shell: platform === 'win32'
}
shell: platform === 'win32',
},
);

let stdoutBuffer = '';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs/promises'
import path from 'path'
import fs from 'fs/promises';
import path from 'path';

export async function minifyChangelogAndPackageJSON(workspace) {
const originalPackageInfo = JSON.parse(await fs.readFile(path.join(workspace.path, 'package.json')));
@@ -49,5 +49,5 @@ export async function minifyChangelogAndPackageJSON(workspace) {
return async () => {
await fs.writeFile(path.join(workspace.path, 'package.json'), JSON.stringify(originalPackageInfo, null, '\t') + '\n');
await fs.writeFile(path.join(workspace.path, 'CHANGELOG.md'), originalChangelog);
}
};
}
8 changes: 4 additions & 4 deletions .github/bin/release-plan/npm-can-publish.mjs
Original file line number Diff line number Diff line change
@@ -10,12 +10,12 @@ export async function canPublish(packageName, myName) {
'list',
'collaborators',
packageName,
myName
myName,
],
{
shell: platform === 'win32',
stdio: 'pipe'
}
stdio: 'pipe',
},
);

let result = '';
@@ -43,7 +43,7 @@ export async function canPublish(packageName, myName) {

resolve(
result.trim().includes(myName) &&
result.trim().includes('read-write')
result.trim().includes('read-write'),
);
});
});
6 changes: 3 additions & 3 deletions .github/bin/release-plan/npm-install.mjs
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@ export async function npmInstall() {
const installCmd = spawn(
'npm',
[
'install'
'install',
],
{
shell: platform === 'win32'
}
shell: platform === 'win32',
},
);

installCmd.on('close', (code) => {
6 changes: 3 additions & 3 deletions .github/bin/release-plan/npm-prepublish-scripts.mjs
Original file line number Diff line number Diff line change
@@ -14,13 +14,13 @@ export async function npmPrepublishScripts(packageDirectory, packageName) {
[
'run',
'prepublishOnly',
'--if-present'
'--if-present',
],
{
stdio: 'inherit',
cwd: packageDirectory,
shell: platform === 'win32'
}
shell: platform === 'win32',
},
);

publishCmd.on('close', (code) => {
6 changes: 3 additions & 3 deletions .github/bin/release-plan/npm-publish.mjs
Original file line number Diff line number Diff line change
@@ -14,13 +14,13 @@ export async function npmPublish(packageDirectory, packageName) {
[
'publish',
'--access',
'public'
'public',
],
{
stdio: 'inherit',
cwd: packageDirectory,
shell: platform === 'win32'
}
shell: platform === 'win32',
},
);

publishCmd.on('close', (code) => {
6 changes: 3 additions & 3 deletions .github/bin/release-plan/npm-version.mjs
Original file line number Diff line number Diff line change
@@ -32,12 +32,12 @@ export async function npmVersion(increment, packageDirectory) {
'npm',
[
'version',
increment
increment,
],
{
cwd: packageDirectory,
shell: platform === 'win32'
}
shell: platform === 'win32',
},
);

let stdoutBuffer = '';
Loading