-
Notifications
You must be signed in to change notification settings - Fork 222
Conversation
1437d76
to
1585296
Compare
e58e87b
to
6463ec4
Compare
1585296
to
ce9a989
Compare
packages/useful-types/CHANGELOG.md
Outdated
@@ -12,6 +12,7 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | |||
### Added | |||
|
|||
- Added `PartialSome` and `RequireSome` types to set specified fields of a property to optional or required | |||
- Deprecate `ThenType`, `Omit`, `Arguments`, `ArgumentAtIndex`, `FirstArgument`, `MaybeFunctionReturnType`, `ConstructorArguments`, `ConstructorArgumentAtIndex` and `FirstConstructorArgument` in favour of their Typescript counterparts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've already released 3.1.0, this information needs to go under the unreleased heading, with the subheading ### Breaking Change
as this is breaking behaviour.
This isn't a deprecation - deprecations are "this behaviour still exists but you shouldn't use it", this is full on removal of features.
Please write some migration notes that tells consumers what they should use instead these now removed functions ("Replace usage of Arguments
with the built-in Parameters
" kinda thing. Linking to specific sections of the TS docs would be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Where should I write those docs? Directly in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! So there's a section up above that says <!-- Unreleased -->
, directly under that add the new breaking change heading, and then add a bullet point for each thing that has a breaking change, and an explanation of what to do instead
CI failures due to shifting node versions fixed in #2171. Rebase and CI should be happy again |
c622eb9
to
d2a9637
Compare
5dda883
to
2c91049
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Dropped some thoughts inline regarding changlog content.
packages/useful-types/CHANGELOG.md
Outdated
## 3.1.0 - 2022-02-09 | ||
|
||
### Added | ||
|
||
- Added `PartialSome` and `RequireSome` types to set specified fields of a property to optional or required | ||
- Deprecate `ThenType`, `Omit`, `Arguments`, `ArgumentAtIndex`, `FirstArgument`, `MaybeFunctionReturnType`, `ConstructorArguments`, `ConstructorArgumentAtIndex` and `FirstConstructorArgument` in favour of their Typescript counterparts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this line in the changelog of 3.1.0 - we never marked these types with @deprecated
or any other mechanism. I reckon we should remove it.
d9574db
to
4d56956
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
4d56956
to
71140e7
Compare
changelog remove homemade types also this one reword changelog add breaking changes to changelog Update packages/useful-types/CHANGELOG.md Co-authored-by: Ben Scott <227292+BPScott@users.noreply.github.com> pr comments fix ci
71140e7
to
994a056
Compare
Description
This PR removes
ThenType
,Omit
,Arguments
,ArgumentAtIndex
,FirstArgument
,MaybeFunctionReturnType
,ConstructorArguments
,ConstructorArgumentAtIndex
andFirstConstructorArgument
as can all be trivially replaced by built-in typescript types (Awaited, Omit, Parameters, ConstructorParameters, ReturnType)Type of change
Checklist