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

Commit

Permalink
ci(changesets): version packages (#193)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Kolberger <[email protected]>
  • Loading branch information
github-actions[bot] and TimKolberger authored Jan 28, 2023
1 parent bc0f72a commit 0a493a1
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 25 deletions.
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

0 comments on commit 0a493a1

Please sign in to comment.