Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CHANGELOG #40

Merged
merged 6 commits into from May 3, 2017
Merged

Add CHANGELOG #40

merged 6 commits into from May 3, 2017

Conversation

flarnie
Copy link
Contributor

@flarnie flarnie commented Apr 27, 2017

I'm really looking for any correction or insight here since I didn't make the changes listed, and the commit history is a bit convoluted.

what is the change?:
Adding a CHANGELOG.md

why make this change?:
Since this package is out of sync from React, and is more of a
stand-alone module now, we should put records of the changes in it's
own change log.

test plan:
visual inspection

issue:
facebook/react#9443

**what is the change?:**
Adding a `CHANGELOG.md`

**why make this change?:**
Since this package is out of sync from React, and is more of a
stand-alone module now, we should put records of the changes in it's
own change log.

**test plan:**
visual inspection

**issue:**
facebook/react#9443
flarnie added a commit to flarnie/react that referenced this pull request Apr 27, 2017
This could really use extra code review attention since the history of
these changes was a bit convoluted to follow.

After talking to @bvaughn and @acdlite, we thought it might make sense
to put the 'add-ons' changes in a separate change log. The other option,
of including them in the main React change log, seemed the more
confusing of the two.

Also this commit is related to and somewhat blocked by
facebook/prop-types#40

**what is the change?:**
Adding the change log for recent patch versions of React.

**why make this change?:**
We missed this step in the flurry of releasing patches, and it's useful
for folks who want info about what version to use.

**test plan:**
Visual inspection of the change log.

**issue:**
facebook#9443
Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unfortunate how clown-town these fixes look 🤡 but live and learn

CHANGELOG.md Outdated
and [this commit](https://github.com/reactjs/prop-types/commit/df318bba8a89bc5aadbb0292822cf4ed71d27ace).

## 15.5.2
* Fix bug where `prop-types` module was built with const instead of var `lib/ReactPropTypesSecret.js`. [See #9370](https://github.com/facebook/react/issues/9370) and [this commit](https://github.com/facebook/react/commit/e1919638b39dd65eedd250a8bb649773ca61b6f1).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Why the weird whitespace? [See•••••••••••••#9370]

CHANGELOG.md Outdated
@@ -0,0 +1,14 @@
## 15.5.4
* Fix UMD Build. [See this commit](https://github.com/reactjs/prop-types/commit/31e9344ca3233159928da66295da17dad82db1a8).
* Remove dependencies on React in `package.json`. [See this commit](https://github.com/reactjs/prop-types/commit/158198fd6c468a3f6f742e0e355e622b3914048a).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't removing a dependency. Just fixing a bad package URL. (Wouldn't affect installs.)

CHANGELOG.md Outdated
and [this commit](https://github.com/reactjs/prop-types/commit/df318bba8a89bc5aadbb0292822cf4ed71d27ace).

## 15.5.2
* Fix bug where `prop-types` module was built with const instead of var `lib/ReactPropTypesSecret.js`. [See #9370](https://github.com/facebook/react/issues/9370) and [this commit](https://github.com/facebook/react/commit/e1919638b39dd65eedd250a8bb649773ca61b6f1).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest that we do not get too technical in error messages. We never did before, and I think our format worked fairly well. So instead we could phrase this as:

  • Remove accidental uncompiled ES6 syntax in the published package.

CHANGELOG.md Outdated
* Remove dependencies on React in `package.json`. [See this commit](https://github.com/reactjs/prop-types/commit/158198fd6c468a3f6f742e0e355e622b3914048a).

## 15.5.3
* Inlined 'React.isValidElement' to eliminate dependency on React. [See #9371](https://github.com/facebook/react/issues/9371#issuecomment-292685424)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we should use backticks instead of single quotes here for formatting.
But I would probably just say "Remove the dependency on the react package"

Copy link
Contributor

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make this a little less technical, fix formatting, and also use the same changelog format we are using in React repo (e.g. [@author] in [#PR/commit] rather than "see this commit" links).

@flarnie
Copy link
Contributor Author

flarnie commented Apr 27, 2017

Thank you for reviewing! Will fix in a jiffy.

**what is the change?:**
- reformat using '[@author] in [#PR/commit]'
- Make annotations less technical and more correct

**why make this change?:**
To improve readability and consistency.

**test plan:**
Visual inspection

**issue:**
facebook/react#9443
CHANGELOG.md Outdated
## 15.5.3
* Remove the dependency on the `react` package. ([@acdlite](https://github.com/acdlite) in [df318bb](https://github.com/reactjs/prop-types/commit/df318bba8a89bc5aadbb0292822cf4ed71d27ace))

## 15.5.2
Copy link
Contributor

@gaearon gaearon Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 15.5.2 added the UMD build (worth mentioning). But it was unnecessarily large by mistake.

https://unpkg.com/prop-types@15.5.2/prop-types.js
https://unpkg.com/prop-types@15.5.2/prop-types.min.js

Then 15.5.4 fixed its size (18 -> 4 kB pre gzip).

CHANGELOG.md Outdated
@@ -0,0 +1,13 @@
## 15.5.4
* Fix UMD Build. ([@acdlite](https://github.com/acdlite) in [31e9344](https://github.com/reactjs/prop-types/commit/31e9344ca3233159928da66295da17dad82db1a8))
Copy link
Contributor

@gaearon gaearon Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe let's say "Reduce the size of the UMD build".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also an important change in 15.4.4:

  • Remove the accidentally included typechecking code from the production build.

CHANGELOG.md Outdated
* Remove bad package url. ([@ljharb](https://github.com/ljharb) in [158198f](https://github.com/reactjs/prop-types/commit/158198fd6c468a3f6f742e0e355e622b3914048a))

## 15.5.3
* Remove the dependency on the `react` package. ([@acdlite](https://github.com/acdlite) in [df318bb](https://github.com/reactjs/prop-types/commit/df318bba8a89bc5aadbb0292822cf4ed71d27ace))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably "Remove the accidentally included React package code from the UMD bundle."

CHANGELOG.md Outdated

## 15.5.2
* Remove accidental uncompiled ES6 syntax in the published package. ([@acdlite](https://github.com/acdlite) in [e191963](https://github.com/facebook/react/commit/e1919638b39dd65eedd250a8bb649773ca61b6f1))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 15.5.2 is the one that actually removed the (implicit) dependency on react:

https://unpkg.com/prop-types@15.5.2/index.js

Compare to 15.5.1:

https://unpkg.com/prop-types@15.5.1/index.js

CHANGELOG.md Outdated
* Remove the dependency on the `react` package. ([@acdlite](https://github.com/acdlite) in [df318bb](https://github.com/reactjs/prop-types/commit/df318bba8a89bc5aadbb0292822cf4ed71d27ace))

## 15.5.2
* Remove accidental uncompiled ES6 syntax in the published package. ([@acdlite](https://github.com/acdlite) in [e191963](https://github.com/facebook/react/commit/e1919638b39dd65eedd250a8bb649773ca61b6f1))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaearon
Copy link
Contributor

gaearon commented Apr 28, 2017

Please see comments above.
I wrote up changelog for further changes:

15.5.8

  • Limit the manual PropTypes call warning count because it has false positives with React versions earlier than 15.2.0 in the 15.x branch and 0.14.9 in the 0.14.x branch. (@gaearon in #26)

15.5.7

  • Critical Bugfix: Fix an accidental breaking change that caused errors in production when used through React.PropTypes. (@gaearon in #20)
  • Improve the size of production UMD build. (@aweary in 38ba18 and 7882a7)

15.5.6

Note: this release has a critical issue and was deprecated. Please update to 15.5.7 or higher.

15.5.5

Note: this release has a critical issue and was deprecated. Please update to 15.5.7 or higher.


Please also add similar disclaimers about the deprecation to all earlier versions.

@flarnie
Copy link
Contributor Author

flarnie commented Apr 28, 2017

Awesome - thanks @gaearon ! Updating this now.

**what is the change?:**
- Add deprecation warning to all versions pre 15.5.7.
- Move 'React package inclusion fix' annotation from 15.5.3 to 15.5.2
- Improved wording of 'Reduce size of UMD build' in 15.5.4
- Add note about 'Remove the accidentally included typechecking code...'
  in 15.5.4 (what commit did this?)
- Move 'Remove accidental uncompiled ES6' annotation to 15.5.1
- That leaves no changes under 15.5.3; maybe we released this in an
  effort to keep this in sync with the main React package?

Follow up commit adds annotations for 15.5.4-15.5.8.

**why make this change?:**
To be more accurate.

**test plan:**
Visual inspection.

**issue:**
facebook/react#9443
**what is the change?:**
See title.

**why make this change?:**
To provide information about the version history, and to get people
updated to the latest version of this package.

**test plan:**
Visual inspection.

**issue:**
facebook/react#9443
CHANGELOG.md Outdated

**Note: this release has a critical issue and was deprecated. Please update to 15.5.7 or higher.**

* Remove the accidentally included React package code from the UMD bundle. ([@acdlite](https://github.com/acdlite) in [df318bb](https://github.com/reactjs/prop-types/commit/df318bba8a89bc5aadbb0292822cf4ed71d27ace))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change (regarding UMD bundle) was done in 15.5.3, not in 15.5.2.

AFAIK 15.5.2 only fixed the CommonJS entry point not to depend on React.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it - fixing now.

**what is the change?:**
Another correction to the change log, based on helpful comments from
@gaeaeron.

**why make this change?:**
Accuracy

**test plan:**
Visual inspection

**issue:**
facebook/react#9443
flarnie added a commit to facebook/react that referenced this pull request May 1, 2017
* Update Changelog for v15.5.1-15.5.4

This could really use extra code review attention since the history of
these changes was a bit convoluted to follow.

After talking to @bvaughn and @acdlite, we thought it might make sense
to put the 'add-ons' changes in a separate change log. The other option,
of including them in the main React change log, seemed the more
confusing of the two.

Also this commit is related to and somewhat blocked by
facebook/prop-types#40

**what is the change?:**
Adding the change log for recent patch versions of React.

**why make this change?:**
We missed this step in the flurry of releasing patches, and it's useful
for folks who want info about what version to use.

**test plan:**
Visual inspection of the change log.

**issue:**
#9443

* Further improve CHANGELOG entries for v15.5.1-15.5.4

**what is the change?:**
- Use the '[@author] in [#PR/commit]' format for annotations
- Make annotations less technical, more clear
- Move 'React Addons' updates into main changelog
- Remove separate 'React Addons' changelog

**why make this change?:**
These changes each make things more clear and accurate.

**test plan:**
Visual inspection

**issue:**

* Fix final nits in CHANGELOG

**what is the change?:**
- Put backticks around package names
- Reformat link to to commit in '([@user](...) in [#NNNN](...))' format
- Remove newlines after subheaders; in the past we sometimes have
  included a newline after the subheader, but most recently it looks
  like we do not.
- Add some missing punctuation.

**why make this change?:**
Consistency and aesthetics

**test plan:**
Visual inspection

**issue:**
#9443

* Add deprecation notice to v15.5.0-15.5.3

**what is the change?:**
Adding deprecation notice to some recent React versions.

**why make this change?:**
These versions of React use a version of `prop-types` that had a
critical bug. We updated the dependency in React 15.5.4, and hopefully
people will see this notice and update.

**test plan:**
Visual inspection

**issue:**
#9537
CHANGELOG.md Outdated

**Note: this release has a critical issue and was deprecated. Please update to 15.5.7 or higher.**

* Fix a markdown issue in README. ([@bvaughn](https://github.com/bvaughn) in [174f77](https://github.com/reactjs/prop-types/commit/174f77a50484fa628593e84b871fb40eed78b69a)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing paren

CHANGELOG.md Outdated

**Note: this release has a critical issue and was deprecated. Please update to 15.5.7 or higher.**

* Add missing documentation and license files. ([@bvaughn](https://github.com/bvaughn) in [0a53d3](https://github.com/reactjs/prop-types/commit/0a53d3a34283ae1e2d3aa396632b6dc2a2061e6a)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing paren

CHANGELOG.md Outdated

* Remove accidental uncompiled ES6 syntax in the published package. ([@acdlite](https://github.com/acdlite) in [e191963](https://github.com/facebook/react/commit/e1919638b39dd65eedd250a8bb649773ca61b6f1))

## Before 15.5.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe worth adding 15.5.0 that just says "Initial release"

Copy link
Contributor

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great (left a few last nits)

@flarnie
Copy link
Contributor Author

flarnie commented May 2, 2017

Thanks! Fixing those now.

**what is the change?:**
Adding two missing parens and a note about the initial release version.

**why make this change?:**
Clarity/consistency

**test plan:**
Visual inspection

**issue:**
facebook/react#9443
@flarnie flarnie merged commit bbaf238 into facebook:master May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants