Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
gfbengel authored Dec 12, 2024
2 parents ff2bb0e + 7049912 commit 46707aa
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 22 deletions.
5 changes: 0 additions & 5 deletions .changeset/empty-pants-care.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-rivers-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-turtles-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twenty-trains-check.md

This file was deleted.

11 changes: 11 additions & 0 deletions apps/www/actions/edit-in-v0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ export async function editInV0({
// Remove v0 prefix from the name
registryItem.name = registryItem.name.replace(/^v0-/, "")

// Replace `@/registry/new-york/` in files.
registryItem.files = registryItem.files.map((file) => {
if (file.content?.includes("@/registry/new-york/ui")) {
file.content = file.content?.replaceAll(
"@/registry/new-york/ui",
"@/components/ui"
)
}
return file
})

const payload = {
version: 2,
payload: registryItem,
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shadcn/ui

## 0.9.4

### Patch Changes

- [#4397](https://github.com/shadcn-ui/ui/pull/4397) [`a1bed46`](https://github.com/shadcn-ui/ui/commit/a1bed464f329e9025a7fa1ae7dee094d4c9c6f44) Thanks [@JensAstrup](https://github.com/JensAstrup)! - replace lodash.template

## 0.9.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadcn-ui",
"version": "0.9.3",
"version": "0.9.4",
"description": "Add components to your apps.",
"publishConfig": {
"access": "public"
Expand Down
10 changes: 10 additions & 0 deletions packages/shadcn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @shadcn/ui

## 2.1.7

### Patch Changes

- [#5711](https://github.com/shadcn-ui/ui/pull/5711) [`500dbe2`](https://github.com/shadcn-ui/ui/commit/500dbe2664c04936cc3edb739fc97f6cecff57c5) Thanks [@bcorbold](https://github.com/bcorbold)! - Update spread/unspread helpers to handle ArrayLiteralExpression and nested values within arrays

- [#5678](https://github.com/shadcn-ui/ui/pull/5678) [`fb36ca4`](https://github.com/shadcn-ui/ui/commit/fb36ca41591ae952f3a015e2a4470f26458cf1b5) Thanks [@Tobbe](https://github.com/Tobbe)! - support aliases longer than one char

- [#5813](https://github.com/shadcn-ui/ui/pull/5813) [`d5bf001`](https://github.com/shadcn-ui/ui/commit/d5bf0018fda42faeb314dc3edc87b8cd7c0354c6) Thanks [@shadcn](https://github.com/shadcn)! - fix handling of aliases

## 2.1.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/shadcn/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadcn",
"version": "2.1.6",
"version": "2.1.7",
"description": "Add components to your apps.",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 46707aa

Please sign in to comment.