Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Version Packages #328

Merged
merged 1 commit into from
Apr 1, 2023
Merged
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
7 changes: 0 additions & 7 deletions .changeset/dry-badgers-turn.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/eleven-cameras-bake.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/gold-seahorses-move.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/good-rabbits-relax.md

This file was deleted.

13 changes: 13 additions & 0 deletions packages/preact/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @polymorphic-factory/preact

## 0.3.0

### Minor Changes

- [#327](https://github.com/chakra-ui/polymorphic/pull/327) [`b572666`](https://github.com/chakra-ui/polymorphic/commit/b5726663f25075bc1c50c87a9015b3611000fb54) Thanks [@TimKolberger](https://github.com/TimKolberger)! - When using the `as` prop, the `ref` will now be typed accordingly.

**This is possibly a breaking change for TypeScript users.**

```tsx
const ref = useRef<HTMLAnchorElement>(null)
return <poly.button as="a" ref={ref} />
```

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polymorphic-factory/preact",
"version": "0.2.0",
"version": "0.3.0",
"description": "",
"keywords": [
"preact",
Expand Down
17 changes: 17 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @polymorphic-factory/react

## 0.4.0

### Minor Changes

- [#327](https://github.com/chakra-ui/polymorphic/pull/327) [`b572666`](https://github.com/chakra-ui/polymorphic/commit/b5726663f25075bc1c50c87a9015b3611000fb54) Thanks [@TimKolberger](https://github.com/TimKolberger)! - Removed the member `defaultProps` from the type `ComponentWithAs` to support React 18.3.0.

**This is possibly a breaking change for TypeScript users.**

- [#327](https://github.com/chakra-ui/polymorphic/pull/327) [`b572666`](https://github.com/chakra-ui/polymorphic/commit/b5726663f25075bc1c50c87a9015b3611000fb54) Thanks [@TimKolberger](https://github.com/TimKolberger)! - When using the `as` prop, the `ref` will now be typed accordingly.

**This is possibly a breaking change for TypeScript users.**

```tsx
const ref = useRef<HTMLAnchorElement>(null)
return <poly.button as="a" ref={ref} />
```

## 0.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polymorphic-factory/react",
"version": "0.3.0",
"version": "0.4.0",
"description": "",
"keywords": [
"react",
Expand Down
13 changes: 13 additions & 0 deletions packages/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @polymorphic-factory/solid

## 0.3.0

### Minor Changes

- [#327](https://github.com/chakra-ui/polymorphic/pull/327) [`b572666`](https://github.com/chakra-ui/polymorphic/commit/b5726663f25075bc1c50c87a9015b3611000fb54) Thanks [@TimKolberger](https://github.com/TimKolberger)! - When using the `as` prop, the `ref` will now be typed accordingly.

**This is possibly a breaking change for TypeScript users.**

```tsx
let ref: HTMLAnchorElement = undefined
return <poly.button as="a" ref={ref} />
```

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polymorphic-factory/solid",
"version": "0.2.0",
"version": "0.3.0",
"description": "",
"keywords": [
"solid-js",
Expand Down