Skip to content

Commit

Permalink
Version Packages (#213)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 16, 2024
1 parent 5f9022a commit a8cf202
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 54 deletions.
5 changes: 0 additions & 5 deletions .changeset/angry-pears-wave.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/calm-lobsters-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharp-mirrors-invent.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/shy-crabs-kick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stale-moles-press.md

This file was deleted.

40 changes: 40 additions & 0 deletions packages/renoun/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# renoun

## 7.2.0

### Minor Changes

- 9d67bdf: Add `getFiles` and `getDirectories` to `Directory`.
- 1bd1de3: Adds `hasExtension` method to `File` to help constrain the type:

```ts
import { Directory } from 'renoun/file-system'

const posts = new Directory<{
mdx: { frontmatter: { title: string } }
}>({
path: 'posts',
})

const mdxFiles = await posts
.getFiles()
.filter((post) => post.hasExtension('mdx'))
```

- 4d263fe: Add `includeIndexAndReadme` option to `getEntries` for controlling default filtering of `index` and `readme` files.
- e09a837: Adds `isFileWithExtension` utility:

```ts
const fileSystem = new VirtualFileSystem({
'Button.tsx': '',
})
const directory = new Directory<{ tsx: { metadata: {} } }>({
fileSystem,
})
const file = await directory.getFileOrThrow('Button')
if (isFileWithExtension(file, 'tsx')) {
// file is typed as File<{ tsx: { metadata: {} } }>
}
```

- a36058f: Add `getEditPath` method to `JavaScriptFileExport`.

## 7.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renoun/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "renoun",
"version": "7.1.0",
"version": "7.2.0",
"description": "The Technical Content Toolkit for React",
"author": "Travis Arnold",
"license": "AGPL-3.0-or-later",
Expand Down

0 comments on commit a8cf202

Please sign in to comment.