From 94ba832165c0f5999797b8156b426076cc6e75a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:07:23 +0000 Subject: [PATCH] chore(release): [ci] release --- .changeset/perfect-dots-switch.md | 51 ------------------------------ packages/astro-toc/CHANGELOG.md | 52 +++++++++++++++++++++++++++++++ packages/astro-toc/package.json | 2 +- 3 files changed, 53 insertions(+), 52 deletions(-) delete mode 100644 .changeset/perfect-dots-switch.md diff --git a/.changeset/perfect-dots-switch.md b/.changeset/perfect-dots-switch.md deleted file mode 100644 index 86aae24..0000000 --- a/.changeset/perfect-dots-switch.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -"astro-toc": minor ---- - -## **astro-toc** - -**Feat:** Apply passed in scoped styles - -```jsx -<style> - .text-large { - font-size: 3rem; - } -</style> -<TOC toc={toc} class="text-large" /> -``` - ---- - -**Feat:** Use `depth` prop to set initial depth - -```jsx -<TOC toc={toc} depth={2} /> -``` - ---- - -**BREAKING CHANGE:** `use` prop for custom component - -Previously `use` prop would default to `<menu>`. Default is now `<ul>`. Use `as` prop to define list type. - -```diff - <TOC - toc={toc} - use={MyComponent} -- /> -+ as="menu" -+ /> -``` - ---- - -**BREAKING CHANGE:** Changed `maxDepth` prop type to number - -```diff - <TOC - toc={toc} -- maxDepth="2" -+ maxDepth={2} - /> -``` diff --git a/packages/astro-toc/CHANGELOG.md b/packages/astro-toc/CHANGELOG.md index d81ae53..3e04158 100644 --- a/packages/astro-toc/CHANGELOG.md +++ b/packages/astro-toc/CHANGELOG.md @@ -1,5 +1,57 @@ # astro-toc +## 0.2.0 + +### Minor Changes + +- fea06de: ## **astro-toc** + + **Feat:** Apply passed in scoped styles + + ```jsx + <style> + .text-large { + font-size: 3rem; + } + </style> + <TOC toc={toc} class="text-large" /> + ``` + + *** + + **Feat:** Use `depth` prop to set initial depth + + ```jsx + <TOC toc={toc} depth={2} /> + ``` + + *** + + **BREAKING CHANGE:** `use` prop for custom component + + Previously `use` prop would default to `<menu>`. Default is now `<ul>`. Use `as` prop to define list type. + + ```diff + <TOC + toc={toc} + use={MyComponent} + - /> + + as="menu" + + /> + ``` + + *** + + **BREAKING CHANGE:** Changed `maxDepth` prop type to number + + ```diff + <TOC + toc={toc} + - maxDepth="2" + + maxDepth={2} + /> + ``` + ## 0.1.3 ### Patch Changes diff --git a/packages/astro-toc/package.json b/packages/astro-toc/package.json index 1e27716..731b46e 100644 --- a/packages/astro-toc/package.json +++ b/packages/astro-toc/package.json @@ -1,7 +1,7 @@ { "name": "astro-toc", "description": "Table of Contents (ToC) generator for Astro. Use custom components for interactivity.", - "version": "0.1.3", + "version": "0.2.0", "type": "module", "exports": { ".": "./lib/index.js"