Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): [ci] release #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .changeset/perfect-dots-switch.md

This file was deleted.

52 changes: 52 additions & 0 deletions packages/astro-toc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-toc/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down