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

Version Packages #193

Merged
merged 1 commit into from
Jan 28, 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
22 changes: 0 additions & 22 deletions .changeset/slow-students-peel.md

This file was deleted.

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

## 0.2.0

### Minor Changes

- [#192](https://github.com/chakra-ui/polymorphic/pull/192) [`bc0f72a`](https://github.com/chakra-ui/polymorphic/commit/bc0f72a00cf328b8e342576abdaa993bc5fc547c) Thanks [@TimKolberger](https://github.com/TimKolberger)! - Fixed an issue where the factory options type `polymorphicFactory<P, Options>()` did not propagate
to the factory function `poly("div", options)`. **This is possibly a breaking change for TypeScript
users.**

```tsx
type AdditionalProps = Record<never, never>
type Options = { 'data-custom-option': string }

const poly = polymorphicFactory<AdditionalProps, Options>({
styled: (component, options) => (props) => {
const Component = props.as || component
return <Component data-custom-styled data-options={JSON.stringify(options)} {...props} />
},
})
const CustomDiv = poly('div', { 'data-custom-option': 'hello' })
```

## 0.1.1

### Patch 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.1.1",
"version": "0.2.0",
"description": "",
"keywords": [
"preact",
Expand Down
21 changes: 21 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @polymorphic-factory/react

## 0.3.0

### Minor Changes

- [#192](https://github.com/chakra-ui/polymorphic/pull/192) [`bc0f72a`](https://github.com/chakra-ui/polymorphic/commit/bc0f72a00cf328b8e342576abdaa993bc5fc547c) Thanks [@TimKolberger](https://github.com/TimKolberger)! - Fixed an issue where the factory options type `polymorphicFactory<P, Options>()` did not propagate
to the factory function `poly("div", options)`. **This is possibly a breaking change for TypeScript
users.**

```tsx
type AdditionalProps = Record<never, never>
type Options = { 'data-custom-option': string }

const poly = polymorphicFactory<AdditionalProps, Options>({
styled: (component, options) => (props) => {
const Component = props.as || component
return <Component data-custom-styled data-options={JSON.stringify(options)} {...props} />
},
})
const CustomDiv = poly('div', { 'data-custom-option': 'hello' })
```

## 0.2.2

### Patch 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.2.2",
"version": "0.3.0",
"description": "",
"keywords": [
"react",
Expand Down
21 changes: 21 additions & 0 deletions packages/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @polymorphic-factory/solid

## 0.2.0

### Minor Changes

- [#192](https://github.com/chakra-ui/polymorphic/pull/192) [`bc0f72a`](https://github.com/chakra-ui/polymorphic/commit/bc0f72a00cf328b8e342576abdaa993bc5fc547c) Thanks [@TimKolberger](https://github.com/TimKolberger)! - Fixed an issue where the factory options type `polymorphicFactory<P, Options>()` did not propagate
to the factory function `poly("div", options)`. **This is possibly a breaking change for TypeScript
users.**

```tsx
type AdditionalProps = Record<never, never>
type Options = { 'data-custom-option': string }

const poly = polymorphicFactory<AdditionalProps, Options>({
styled: (component, options) => (props) => {
const Component = props.as || component
return <Component data-custom-styled data-options={JSON.stringify(options)} {...props} />
},
})
const CustomDiv = poly('div', { 'data-custom-option': 'hello' })
```

## 0.1.3

### Patch 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.1.3",
"version": "0.2.0",
"description": "",
"keywords": [
"solid-js",
Expand Down