From cca9cdaec9dc821cb3ae89e38fa4d8fb44a1317d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 10 Dec 2024 21:47:58 +0000 Subject: [PATCH] Version Packages --- .changeset/chatty-fireants-repeat.md | 10 ----- .changeset/cuddly-news-kneel.md | 5 --- .changeset/dirty-poems-kneel.md | 21 --------- .changeset/fair-goats-thank.md | 5 --- .changeset/hungry-taxis-learn.md | 12 ----- .changeset/long-walls-kneel.md | 5 --- .changeset/loud-pans-sit.md | 22 ---------- .changeset/twenty-ears-report.md | 5 --- packages/mdx/CHANGELOG.md | 6 +++ packages/mdx/package.json | 2 +- packages/renoun/CHANGELOG.md | 65 ++++++++++++++++++++++++++++ packages/renoun/package.json | 2 +- 12 files changed, 73 insertions(+), 87 deletions(-) delete mode 100644 .changeset/chatty-fireants-repeat.md delete mode 100644 .changeset/cuddly-news-kneel.md delete mode 100644 .changeset/dirty-poems-kneel.md delete mode 100644 .changeset/fair-goats-thank.md delete mode 100644 .changeset/hungry-taxis-learn.md delete mode 100644 .changeset/long-walls-kneel.md delete mode 100644 .changeset/loud-pans-sit.md delete mode 100644 .changeset/twenty-ears-report.md diff --git a/.changeset/chatty-fireants-repeat.md b/.changeset/chatty-fireants-repeat.md deleted file mode 100644 index 6a6a48f08..000000000 --- a/.changeset/chatty-fireants-repeat.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'renoun': minor ---- - -Renames `Directory` and `File` `getParentDirectory` methods to `getParent` to better align with `getSiblings`. This also aligns more closely with the web File System API's [getParent](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent) method. - -### Breaking Changes - -- `Directory.getParentDirectory` is now `Directory.getParent` -- `File.getParentDirectory` is now `File.getParent` diff --git a/.changeset/cuddly-news-kneel.md b/.changeset/cuddly-news-kneel.md deleted file mode 100644 index 15cac5fd7..000000000 --- a/.changeset/cuddly-news-kneel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@renoun/mdx': patch ---- - -Fixes inline code language inference by considering language aliases. diff --git a/.changeset/dirty-poems-kneel.md b/.changeset/dirty-poems-kneel.md deleted file mode 100644 index 65241d67a..000000000 --- a/.changeset/dirty-poems-kneel.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'renoun': minor ---- - -Adds `pathCasing` option to `Directory` for setting the casing of all path methods. This is useful for ensuring that all paths are in a consistent casing, regardless of the underlying file system. - -```ts -import { Directory } from 'renoun/file-system' - -const directory = new Directory({ - path: 'components', - pathCasing: 'kebab', -}) -const file = await directory.getFileOrThrow('button') - -file.getPath() // '/button' - -const directory = await directory.getDirectoryOrThrow('card') - -directory.getPath() // '/card' -``` diff --git a/.changeset/fair-goats-thank.md b/.changeset/fair-goats-thank.md deleted file mode 100644 index d7e9adc22..000000000 --- a/.changeset/fair-goats-thank.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'renoun': patch ---- - -Fixes nested ordered files not using a unique key causing them to be filtered. diff --git a/.changeset/hungry-taxis-learn.md b/.changeset/hungry-taxis-learn.md deleted file mode 100644 index 972f1b378..000000000 --- a/.changeset/hungry-taxis-learn.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'renoun': patch ---- - -Fixes `Directory#getFile` not considering file name modifiers. - -```ts -const directory = new Directory({ path: 'components' }) -const file = await directory.getFileOrThrow(['APIReference', 'examples']) - -file.getAbsolutePath() // '/APIReference.examples.tsx' -``` diff --git a/.changeset/long-walls-kneel.md b/.changeset/long-walls-kneel.md deleted file mode 100644 index 98926d13d..000000000 --- a/.changeset/long-walls-kneel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'renoun': minor ---- - -Marks the `Directory#duplicate` method as private since this was previously only exposed for `EntryGroup` which no longer requires a new instance to be created. diff --git a/.changeset/loud-pans-sit.md b/.changeset/loud-pans-sit.md deleted file mode 100644 index 698e88d5d..000000000 --- a/.changeset/loud-pans-sit.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'renoun': minor ---- - -Removes `getEditPath` in favor of `getRepositoryUrl` and `getEditorUri` for a more explicit API. Prior, the `getEditPath` method switched between the editor and the git provider source based on the environment. This was confusing and not always the desired behavior. Now you can explicitly choose the behavior you want. - -### Breaking Changes - -The `getEditPath` method has been removed. Use `getRepositoryUrl` and `getEditorUri` instead. - -To get the same behavior as `getEditPath` you can use both `getRepositoryUrl` and `getEditorUri` together: - -```ts -import { Directory } from 'renoun/file-system' - -const directory = new Directory('src/components') -const file = directory.getFileOrThrow('Button', 'tsx') -const editUrl = - process.env.NODE_ENV === 'development' - ? file.getEditorUri() - : file.getRepositoryUrl({ type: 'edit' }) -``` diff --git a/.changeset/twenty-ears-report.md b/.changeset/twenty-ears-report.md deleted file mode 100644 index ac8d55ca1..000000000 --- a/.changeset/twenty-ears-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'renoun': patch ---- - -Fixes `Directory#getFile` not prioritizing base files over files with modifiers e.g. `Button.tsx` over `Button.examples.tsx`. diff --git a/packages/mdx/CHANGELOG.md b/packages/mdx/CHANGELOG.md index 5f34fe2b7..a17f76e43 100644 --- a/packages/mdx/CHANGELOG.md +++ b/packages/mdx/CHANGELOG.md @@ -1,5 +1,11 @@ # @renoun/mdx +## 1.2.2 + +### Patch Changes + +- ece3cc2: Fixes inline code language inference by considering language aliases. + ## 1.2.1 ### Patch Changes diff --git a/packages/mdx/package.json b/packages/mdx/package.json index 04b2d8660..39f802deb 100644 --- a/packages/mdx/package.json +++ b/packages/mdx/package.json @@ -1,6 +1,6 @@ { "name": "@renoun/mdx", - "version": "1.2.1", + "version": "1.2.2", "description": "MDX plugins for renoun", "author": "Travis Arnold", "license": "MIT", diff --git a/packages/renoun/CHANGELOG.md b/packages/renoun/CHANGELOG.md index 2d39ea6ed..280f7ff98 100644 --- a/packages/renoun/CHANGELOG.md +++ b/packages/renoun/CHANGELOG.md @@ -1,5 +1,70 @@ # renoun +## 7.9.0 + +### Minor Changes + +- 3022d63: Renames `Directory` and `File` `getParentDirectory` methods to `getParent` to better align with `getSiblings`. This also aligns more closely with the web File System API's [getParent](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent) method. + + ### Breaking Changes + + - `Directory.getParentDirectory` is now `Directory.getParent` + - `File.getParentDirectory` is now `File.getParent` + +- ba2d5e1: Adds `pathCasing` option to `Directory` for setting the casing of all path methods. This is useful for ensuring that all paths are in a consistent casing, regardless of the underlying file system. + + ```ts + import { Directory } from 'renoun/file-system' + + const directory = new Directory({ + path: 'components', + pathCasing: 'kebab', + }) + const file = await directory.getFileOrThrow('button') + + file.getPath() // '/button' + + const directory = await directory.getDirectoryOrThrow('card') + + directory.getPath() // '/card' + ``` + +- 80ae7f2: Marks the `Directory#duplicate` method as private since this was previously only exposed for `EntryGroup` which no longer requires a new instance to be created. +- 1f6603d: Removes `getEditPath` in favor of `getRepositoryUrl` and `getEditorUri` for a more explicit API. Prior, the `getEditPath` method switched between the editor and the git provider source based on the environment. This was confusing and not always the desired behavior. Now you can explicitly choose the behavior you want. + + ### Breaking Changes + + The `getEditPath` method has been removed. Use `getRepositoryUrl` and `getEditorUri` instead. + + To get the same behavior as `getEditPath` you can use both `getRepositoryUrl` and `getEditorUri` together: + + ```ts + import { Directory } from 'renoun/file-system' + + const directory = new Directory('src/components') + const file = directory.getFileOrThrow('Button', 'tsx') + const editUrl = + process.env.NODE_ENV === 'development' + ? file.getEditorUri() + : file.getRepositoryUrl({ type: 'edit' }) + ``` + +### Patch Changes + +- 5d8bd25: Fixes nested ordered files not using a unique key causing them to be filtered. +- 679da2c: Fixes `Directory#getFile` not considering file name modifiers. + + ```ts + const directory = new Directory({ path: 'components' }) + const file = await directory.getFileOrThrow(['APIReference', 'examples']) + + file.getAbsolutePath() // '/APIReference.examples.tsx' + ``` + +- 5b558c1: Fixes `Directory#getFile` not prioritizing base files over files with modifiers e.g. `Button.tsx` over `Button.examples.tsx`. +- Updated dependencies [ece3cc2] + - @renoun/mdx@1.2.2 + ## 7.8.0 ### Minor Changes diff --git a/packages/renoun/package.json b/packages/renoun/package.json index aa5ba12ac..7be8f6264 100644 --- a/packages/renoun/package.json +++ b/packages/renoun/package.json @@ -1,6 +1,6 @@ { "name": "renoun", - "version": "7.8.0", + "version": "7.9.0", "description": "The Technical Content Toolkit for React", "author": "Travis Arnold", "license": "AGPL-3.0-or-later",