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

Commit 0a493a1

Browse files
ci(changesets): version packages (#193)
Co-authored-by: Tim Kolberger <[email protected]>
1 parent bc0f72a commit 0a493a1

File tree

7 files changed

+66
-25
lines changed

7 files changed

+66
-25
lines changed

.changeset/slow-students-peel.md

-22
This file was deleted.

packages/preact/CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @polymorphic-factory/preact
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
to the factory function `poly("div", options)`. **This is possibly a breaking change for TypeScript
9+
users.**
10+
11+
```tsx
12+
type AdditionalProps = Record<never, never>
13+
type Options = { 'data-custom-option': string }
14+
15+
const poly = polymorphicFactory<AdditionalProps, Options>({
16+
styled: (component, options) => (props) => {
17+
const Component = props.as || component
18+
return <Component data-custom-styled data-options={JSON.stringify(options)} {...props} />
19+
},
20+
})
21+
const CustomDiv = poly('div', { 'data-custom-option': 'hello' })
22+
```
23+
324
## 0.1.1
425

526
### Patch Changes

packages/preact/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polymorphic-factory/preact",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "",
55
"keywords": [
66
"preact",

packages/react/CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @polymorphic-factory/react
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
to the factory function `poly("div", options)`. **This is possibly a breaking change for TypeScript
9+
users.**
10+
11+
```tsx
12+
type AdditionalProps = Record<never, never>
13+
type Options = { 'data-custom-option': string }
14+
15+
const poly = polymorphicFactory<AdditionalProps, Options>({
16+
styled: (component, options) => (props) => {
17+
const Component = props.as || component
18+
return <Component data-custom-styled data-options={JSON.stringify(options)} {...props} />
19+
},
20+
})
21+
const CustomDiv = poly('div', { 'data-custom-option': 'hello' })
22+
```
23+
324
## 0.2.2
425

526
### Patch Changes

packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polymorphic-factory/react",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"description": "",
55
"keywords": [
66
"react",

packages/solid/CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @polymorphic-factory/solid
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
to the factory function `poly("div", options)`. **This is possibly a breaking change for TypeScript
9+
users.**
10+
11+
```tsx
12+
type AdditionalProps = Record<never, never>
13+
type Options = { 'data-custom-option': string }
14+
15+
const poly = polymorphicFactory<AdditionalProps, Options>({
16+
styled: (component, options) => (props) => {
17+
const Component = props.as || component
18+
return <Component data-custom-styled data-options={JSON.stringify(options)} {...props} />
19+
},
20+
})
21+
const CustomDiv = poly('div', { 'data-custom-option': 'hello' })
22+
```
23+
324
## 0.1.3
425

526
### Patch Changes

packages/solid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polymorphic-factory/solid",
3-
"version": "0.1.3",
3+
"version": "0.2.0",
44
"description": "",
55
"keywords": [
66
"solid-js",

0 commit comments

Comments
 (0)