From e528871fd5e9caf4903bd727f0070cba0e285e22 Mon Sep 17 00:00:00 2001 From: Kelly Mears Date: Wed, 26 Jun 2024 04:08:13 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=95=20docs(none):=20fix=20releases=20n?= =?UTF-8?q?av=20(#2611)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix releases nav ## Type of change **PATCH: backwards compatible change** --- .../@repo/docs/config/docusaurus.theme.cjs | 53 ++++++----- sources/@repo/docs/content/releases/6.22.0.md | 54 +++++++++++ sources/@repo/docs/content/releases/6.23.0.md | 34 +++++++ sources/@repo/docs/content/releases/data.json | 92 +++++++++++++++++++ 4 files changed, 211 insertions(+), 22 deletions(-) create mode 100644 sources/@repo/docs/content/releases/6.22.0.md create mode 100644 sources/@repo/docs/content/releases/6.23.0.md diff --git a/sources/@repo/docs/config/docusaurus.theme.cjs b/sources/@repo/docs/config/docusaurus.theme.cjs index f75619375a..ee2f24cbe5 100644 --- a/sources/@repo/docs/config/docusaurus.theme.cjs +++ b/sources/@repo/docs/config/docusaurus.theme.cjs @@ -79,33 +79,42 @@ const navbar = { type: `doc`, }, { - items: releaseData.reduce((items, release) => { - if (!items.length) { - return [ - ...items, - {label: `Latest`, to: `/releases/${release.semver}`}, - ] - } + items: releaseData + .sort((a, b) => { + if (a.major > b.major) return -1 + if (a.major < b.major) return 1 + if (a.minor > b.minor) return -1 + if (a.minor < b.minor) return 1 + if (a.patch > b.patch) return -1 + if (a.patch < b.patch) return 1 + return 0 + }) + .reduce((items = [], release) => { + if (!items?.length) { + items.push({ + label: `Latest`, + to: `/releases/${release.semver}`, + }) + } - if (release.patch !== 0) return items + if (release.patch !== 0) { + return items + } - const useTag = releaseData.some( - ({major, minor, patch}) => - major == release.major && - minor == release.minor && - patch !== 0, - ) - - return [ - ...items, - { + items.push({ label: release.semver, - to: useTag + to: releaseData.some( + ({major, minor, patch}) => + major == release.major && + minor == release.minor && + patch !== 0, + ) ? `/releases/tags/${release.major}-${release.minor}` : `/releases/${release.major}.${release.minor}.${release.patch}`, - }, - ] - }, []), + }) + + return items + }, []), label: `Releases`, position: `left`, to: `/releases`, diff --git a/sources/@repo/docs/content/releases/6.22.0.md b/sources/@repo/docs/content/releases/6.22.0.md new file mode 100644 index 0000000000..32b60fc1b6 --- /dev/null +++ b/sources/@repo/docs/content/releases/6.22.0.md @@ -0,0 +1,54 @@ +--- +slug: '6.22.0' +title: '6.22.0' +description: Release notes for bud.js 6.22.0 +date: 2024-06-20T07:35:58Z +author: kellymears +author_title: Developer +author_url: https://github.com/kellymears +author_image_url: https://avatars.githubusercontent.com/u/397606?v=4 +tags: + - release + - 6 + - 6.22 +--- + + + +Some nice performance enhancements. code coverage gains and dependency upgrades in this release. + + + +There is a known issue with this release affecting projects using the `@roots/sage/stylelint` config. If you rely on this config you may wish to hold off and upgrade to 6.23.0. + +## What's Changed + +- ๐Ÿ“ฆ deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2580 +- ๐Ÿ“ฆ deps(minor): upgrade dev middleware by @kellymears in https://github.com/roots/bud/pull/2586 +- ๐Ÿ“ฆ deps(minor): upgrade stylelint by @kellymears in https://github.com/roots/bud/pull/2585 +- ๐Ÿ“• docs(none): fix releases menu by @kellymears in https://github.com/roots/bud/pull/2582 +- ๐Ÿ“ฆ deps(minor): upgrade style deps by @kellymears in https://github.com/roots/bud/pull/2588 +- ๐Ÿงน chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2570 +- ๐Ÿ“ฆ deps(minor): upgrade stylelint-sass by @kellymears in https://github.com/roots/bud/pull/2590 +- ๐Ÿ“• docs(none): Fix typo in documentation for bud.postcss.setPostCssOptions by @folbert in https://github.com/roots/bud/pull/2559 +- ๐Ÿ“ฆ deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2591 +- ๐Ÿ“• docs(none): : issue with code snippet for spacing in theme.json by @dr5hn in https://github.com/roots/bud/pull/2564 +- ๐Ÿ“ฆ deps(patch): bump ip from 1.1.5 to 1.1.9 by @dependabot in https://github.com/roots/bud/pull/2560 +- ๐Ÿฉน fix(stylelint): `Unexpected invalid media query "screen(x)"` for Tailwind by @codepuncher in https://github.com/roots/bud/pull/2558 +- ๐Ÿงช test(none): improve examples and tests by @kellymears in https://github.com/roots/bud/pull/2556 +- ๐Ÿฉน fix(patch): dashboard react error (useState) by @kellymears in https://github.com/roots/bud/pull/2595 +- โœจ improve(patch): build performance by @kellymears in https://github.com/roots/bud/pull/2596 +- ๐Ÿงช test(none): improve coverage by @kellymears in https://github.com/roots/bud/pull/2599 +- ๐Ÿ”จ improve(none): reuse ink instance by @kellymears in https://github.com/roots/bud/pull/2600 +- ๐Ÿฉน fix(patch): bud.after sync callback error by @kellymears in https://github.com/roots/bud/pull/2601 +- ๐Ÿงน chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2598 +- ๐Ÿ”จ improve(patch): bud.pipe: allow mixed async and sync cbs by @kellymears in https://github.com/roots/bud/pull/2603 +- ๐Ÿฉน fix(patch): set default log preset to none by @kellymears in https://github.com/roots/bud/pull/2602 + +## New Contributors + +- @folbert made their first contribution in https://github.com/roots/bud/pull/2559 +- @dr5hn made their first contribution in https://github.com/roots/bud/pull/2564 +- @codepuncher made their first contribution in https://github.com/roots/bud/pull/2558 + +**Full Changelog**: https://github.com/roots/bud/compare/v6.21.0...v6.22.0 diff --git a/sources/@repo/docs/content/releases/6.23.0.md b/sources/@repo/docs/content/releases/6.23.0.md new file mode 100644 index 0000000000..55660e9349 --- /dev/null +++ b/sources/@repo/docs/content/releases/6.23.0.md @@ -0,0 +1,34 @@ +--- +slug: "6.23.0" +title: "6.23.0" +description: Release notes for bud.js 6.23.0 +date: 2024-06-26T07:07:30Z +author: kellymears +author_title: Developer +author_url: https://github.com/kellymears +author_image_url: https://avatars.githubusercontent.com/u/397606?v=4 +tags: + - release + - 6 + - 6.23 +--- + + + +`@roots/bud-sass` should no longer error without `@roots/bud-postcss`. We strongly recommend you use PostCSS. + + + +Update `@roots/sage/stylelint` config so as to not cause deprecation notices and errors. Adds `examples/sage-with-stylelint` to demonstrate a working config. + +Improves error handling. Adds integration tests to cover the fixed bugs. + +## What's Changed +* ๐Ÿฉน fix(patch): update @roots/sage/stylelint by @kellymears in https://github.com/roots/bud/pull/2607 +* โœจ feat(minor): add bud.before method by @kellymears in https://github.com/roots/bud/pull/2606 +* ๐Ÿงช test(none): improve @roots/bud-entrypoints coverage by @kellymears in https://github.com/roots/bud/pull/2608 +* ๐Ÿฉน fix(patch): no error when using sass without postcss by @kellymears in https://github.com/roots/bud/pull/2604 +* ๐Ÿงช test(none): add sage-with-stylelint test by @kellymears in https://github.com/roots/bud/pull/2609 +* ๐Ÿงน chore(none): rm --rf examples/sage with stylelint/public by @kellymears in https://github.com/roots/bud/pull/2610 + +**Full Changelog**: https://github.com/roots/bud/compare/v6.22.0...v6.23.0 diff --git a/sources/@repo/docs/content/releases/data.json b/sources/@repo/docs/content/releases/data.json index 0d7cf3bfcf..9be823a356 100644 --- a/sources/@repo/docs/content/releases/data.json +++ b/sources/@repo/docs/content/releases/data.json @@ -1509,5 +1509,97 @@ "patch": 8, "semver": "6.6.8", "tags": "[release, 6, 6.6]" + }, + { + "url": "https://api.github.com/repos/roots/bud/releases/161416889", + "assets_url": "https://api.github.com/repos/roots/bud/releases/161416889/assets", + "upload_url": "https://uploads.github.com/repos/roots/bud/releases/161416889/assets{?name,label}", + "html_url": "https://github.com/roots/bud/releases/tag/v6.22.0", + "id": 161416889, + "author": { + "login": "kellymears", + "id": 397606, + "node_id": "MDQ6VXNlcjM5NzYwNg==", + "avatar_url": "https://avatars.githubusercontent.com/u/397606?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kellymears", + "html_url": "https://github.com/kellymears", + "followers_url": "https://api.github.com/users/kellymears/followers", + "following_url": "https://api.github.com/users/kellymears/following{/other_user}", + "gists_url": "https://api.github.com/users/kellymears/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kellymears/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kellymears/subscriptions", + "organizations_url": "https://api.github.com/users/kellymears/orgs", + "repos_url": "https://api.github.com/users/kellymears/repos", + "events_url": "https://api.github.com/users/kellymears/events{/privacy}", + "received_events_url": "https://api.github.com/users/kellymears/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDOEDXd_84Jnwa5", + "tag_name": "v6.22.0", + "target_commitish": "main", + "name": "6.22.0", + "draft": false, + "prerelease": false, + "created_at": "2024-06-19T14:12:16Z", + "published_at": "2024-06-20T07:35:58Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/roots/bud/tarball/v6.22.0", + "zipball_url": "https://api.github.com/repos/roots/bud/zipball/v6.22.0", + "body": "There is a known issue with this release affecting projects using the `@roots/sage/stylelint` config. If you rely on this config you may wish to hold off and upgrade to 6.23.0. \r\n\r\n## What's Changed\r\n\r\n* ๐Ÿ“ฆ deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2580\r\n* ๐Ÿ“ฆ deps(minor): upgrade dev middleware by @kellymears in https://github.com/roots/bud/pull/2586\r\n* ๐Ÿ“ฆ deps(minor): upgrade stylelint by @kellymears in https://github.com/roots/bud/pull/2585\r\n* ๐Ÿ“• docs(none): fix releases menu by @kellymears in https://github.com/roots/bud/pull/2582\r\n* ๐Ÿ“ฆ deps(minor): upgrade style deps by @kellymears in https://github.com/roots/bud/pull/2588\r\n* ๐Ÿงน chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2570\r\n* ๐Ÿ“ฆ deps(minor): upgrade stylelint-sass by @kellymears in https://github.com/roots/bud/pull/2590\r\n* ๐Ÿ“• docs(none): Fix typo in documentation for bud.postcss.setPostCssOptions by @folbert in https://github.com/roots/bud/pull/2559\r\n* ๐Ÿ“ฆ deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2591\r\n* ๐Ÿ“• docs(none): : issue with code snippet for spacing in theme.json by @dr5hn in https://github.com/roots/bud/pull/2564\r\n* ๐Ÿ“ฆ deps(patch): bump ip from 1.1.5 to 1.1.9 by @dependabot in https://github.com/roots/bud/pull/2560\r\n* ๐Ÿฉน fix(stylelint): `Unexpected invalid media query \"screen(x)\"` for Tailwind by @codepuncher in https://github.com/roots/bud/pull/2558\r\n* ๐Ÿงช test(none): improve examples and tests by @kellymears in https://github.com/roots/bud/pull/2556\r\n* ๐Ÿฉน fix(patch): dashboard react error (useState) by @kellymears in https://github.com/roots/bud/pull/2595\r\n* โœจ improve(patch): build performance by @kellymears in https://github.com/roots/bud/pull/2596\r\n* ๐Ÿงช test(none): improve coverage by @kellymears in https://github.com/roots/bud/pull/2599\r\n* ๐Ÿ”จ improve(none): reuse ink instance by @kellymears in https://github.com/roots/bud/pull/2600\r\n* ๐Ÿฉน fix(patch): bud.after sync callback error by @kellymears in https://github.com/roots/bud/pull/2601\r\n* ๐Ÿงน chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2598\r\n* ๐Ÿ”จ improve(patch): bud.pipe: allow mixed async and sync cbs by @kellymears in https://github.com/roots/bud/pull/2603\r\n* ๐Ÿฉน fix(patch): set default log preset to none by @kellymears in https://github.com/roots/bud/pull/2602\r\n\r\n## New Contributors\r\n\r\n* @folbert made their first contribution in https://github.com/roots/bud/pull/2559\r\n* @dr5hn made their first contribution in https://github.com/roots/bud/pull/2564\r\n* @codepuncher made their first contribution in https://github.com/roots/bud/pull/2558\r\n\r\n**Full Changelog**: https://github.com/roots/bud/compare/v6.21.0...v6.22.0", + "mentions_count": 6, + "intro": "Some nice performance enhancements. code coverage gains and dependency upgrades in this release.", + "major": 6, + "minor": 22, + "patch": 0, + "semver": "6.22.0", + "tags": "[release, 6, 6.22]" + }, + { + "url": "https://api.github.com/repos/roots/bud/releases/162448415", + "assets_url": "https://api.github.com/repos/roots/bud/releases/162448415/assets", + "upload_url": "https://uploads.github.com/repos/roots/bud/releases/162448415/assets{?name,label}", + "html_url": "https://github.com/roots/bud/releases/tag/v6.23.0", + "id": 162448415, + "author": { + "login": "kellymears", + "id": 397606, + "node_id": "MDQ6VXNlcjM5NzYwNg==", + "avatar_url": "https://avatars.githubusercontent.com/u/397606?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kellymears", + "html_url": "https://github.com/kellymears", + "followers_url": "https://api.github.com/users/kellymears/followers", + "following_url": "https://api.github.com/users/kellymears/following{/other_user}", + "gists_url": "https://api.github.com/users/kellymears/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kellymears/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kellymears/subscriptions", + "organizations_url": "https://api.github.com/users/kellymears/orgs", + "repos_url": "https://api.github.com/users/kellymears/repos", + "events_url": "https://api.github.com/users/kellymears/events{/privacy}", + "received_events_url": "https://api.github.com/users/kellymears/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDOEDXd_84JrsQf", + "tag_name": "v6.23.0", + "target_commitish": "main", + "name": "6.23.0", + "draft": false, + "prerelease": false, + "created_at": "2024-06-26T06:58:55Z", + "published_at": "2024-06-26T07:07:30Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/roots/bud/tarball/v6.23.0", + "zipball_url": "https://api.github.com/repos/roots/bud/zipball/v6.23.0", + "body": "Update `@roots/sage/stylelint` config so as to not cause deprecation notices and errors. Adds `examples/sage-with-stylelint` to demonstrate a working config.\r\n\r\nImproves error handling. Adds integration tests to cover the fixed bugs.\r\n\r\n## What's Changed\r\n* ๐Ÿฉน fix(patch): update @roots/sage/stylelint by @kellymears in https://github.com/roots/bud/pull/2607\r\n* โœจ feat(minor): add bud.before method by @kellymears in https://github.com/roots/bud/pull/2606\r\n* ๐Ÿงช test(none): improve @roots/bud-entrypoints coverage by @kellymears in https://github.com/roots/bud/pull/2608\r\n* ๐Ÿฉน fix(patch): no error when using sass without postcss by @kellymears in https://github.com/roots/bud/pull/2604\r\n* ๐Ÿงช test(none): add sage-with-stylelint test by @kellymears in https://github.com/roots/bud/pull/2609\r\n* ๐Ÿงน chore(none): rm --rf examples/sage with stylelint/public by @kellymears in https://github.com/roots/bud/pull/2610\r\n\r\n**Full Changelog**: https://github.com/roots/bud/compare/v6.22.0...v6.23.0", + "mentions_count": 1, + "intro": "`@roots/bud-sass` should no longer error without `@roots/bud-postcss`. We strongly recommend you use PostCSS.", + "major": 6, + "minor": 23, + "patch": 0, + "semver": "6.23.0", + "tags": "[release, 6, 6.23]" } ] \ No newline at end of file