Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 3, 2025
1 parent 7b90440 commit ab52f4b
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 90 deletions.
43 changes: 0 additions & 43 deletions .changeset/calm-sloths-wave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-news-speak.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-guests-drive.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/neat-shoes-yell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silly-mice-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tiny-ears-whisper.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/witty-hounds-explode.md

This file was deleted.

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

## 8.0.0

### Major Changes

- 02facb1: Removes `renoun/collections` package export and all related types and utilities that were deprecated in [v7.8.0](https://github.com/souporserious/renoun/releases/tag/renoun%407.8.0).

### Breaking Changes

The `renoun/collections` package was removed. To upgrade, move to the `renoun/file-system` package and use the `Directory` class instead. In most cases, you can replace `Collection` with `Directory` and `CompositeCollection` with `EntryGroup`.

#### Before

```tsx
import { Collection, CompositeCollection } from 'renoun/collections'

const docs = new Collection({
filePattern: '*.mdx',
baseDirectory: 'docs',
})
const components = new Collection({
filePattern: '*.{ts,tsx}',
baseDirectory: 'src/components',
})
const compositeCollection = new CompositeCollection(docs, components)
```

#### After

```tsx
import { Directory, EntryGroup } from 'renoun/file-system'

const docs = new Directory({
path: 'docs',
include: '*.mdx',
})
const components = new Directory({
path: 'src/components',
include: '*.{ts,tsx}',
})
const entryGroup = new EntryGroup({
entries: [docs, components],
})
```

### Minor Changes

- fcd11af: Now `Directory#getParent` throws when called for the root directory. This makes the method easier to work with and aligns better with `File#getParent` always returning a `Directory` instance.
- 21a952a: Adds `File#getText` method for retrieving the text contents of the file.
- e107c2f: Allows instantiating `File` and `JavaScriptFile` more easily using only a `path`:

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

const indexFile = new JavaScriptFile({ path: 'src/index.ts' })
const indexFileExports = await indexFile.getExports()
```

- 446effc: Exports `FileSystem`, `MemoryFileSystem`, and `NodeFileSystem` classes for creating custom file systems as well as `Repository` for normalizing git providers.

```js
import { Directory, MemoryFileSystem } from 'renoun/file-system'

const fileSystem = new MemoryFileSystem({
'index.mdx': '# Hello, World!',
})
const directory = new Directory({ fileSystem })
```

### Patch Changes

- 7b90440: Fixes `getType` erroring when inferring a re-exported type.
- 54eeb9e: Fixes duplicate exports when there are overloads.

## 7.9.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.9.0",
"version": "8.0.0",
"description": "The Technical Content Toolkit for React",
"author": "Travis Arnold",
"license": "AGPL-3.0-or-later",
Expand Down

0 comments on commit ab52f4b

Please sign in to comment.