Skip to content

Commit fc03e95

Browse files
Version Packages
1 parent 4a5b3bb commit fc03e95

File tree

3 files changed

+41
-40
lines changed

3 files changed

+41
-40
lines changed

.changeset/clever-dancers-nail.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# @primer/components
22

3+
## 27.0.0
4+
5+
### Major Changes
6+
7+
- [`db478205`](https://github.com/primer/components/commit/db478205bf467a118394e0519034bb87116dc85a) [#1147](https://github.com/primer/components/pull/1147) Thanks [@colebemis](https://github.com/colebemis)! - Type definitions are now being generated by TypeScript instead of manually maintained. These new type definitions may differ from the previous type definitions and cause breaking changes. If you experience any new TypeScript errors, feel free to create an [issue](https://github.com/primer/components/issues) or reach out in Slack (#design-systems).
8+
9+
### Breaking changes
10+
11+
- The following types are no longer exported:
12+
13+
```
14+
BaseProps
15+
UseDetailsProps
16+
AnchoredPositionHookSettings
17+
AnchorAlignment
18+
AnchorSide
19+
PositionSettings
20+
PaginationHrefBuilder
21+
PaginationPageChangeCallback
22+
PositionComponentProps
23+
```
24+
25+
- Props are now defined with types instead of interfaces which means in some cases you may not be able to create interfaces that `extend` them. To work around this issue, you may need to convert your interfaces to types:
26+
27+
```diff
28+
import {BoxProps} from '@primer/components'
29+
30+
- interface MyFancyBox extends BoxProps {...}
31+
+ type MyFancyBox = BoxProps & {...}
32+
```
33+
34+
- Some components now expect more specific ref types. For example:
35+
36+
```diff
37+
- const ref = React.useRef<HTMLElement>(null)
38+
+ const ref = React.useRef<HTMLButtonElement>(null)
39+
40+
return <Button ref={ref}>...</Button>
41+
```
42+
343
## 26.0.0
444
545
### Major Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primer/components",
3-
"version": "26.0.0",
3+
"version": "27.0.0",
44
"description": "Primer react components",
55
"main": "lib/index.js",
66
"module": "lib-esm/index.js",

0 commit comments

Comments
 (0)