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

Docs: add explicit deprecation notes to Entity methods #1787

Closed
wants to merge 1 commit into from

Conversation

vadimcoder
Copy link
Contributor

Summary

The note in the docs Please note that the API for entity storage and management has changed recently; for details on updating your application see our v0.10 API Migration Guide doesn't give a quick clear idea of what I should use instead of the old methods (I need to go to that migration guide, but let's suppose I'm a new user and I don't have any code to migrate). The problem becomes obvious after getting warnings in the browser console. So my suggestion is to place deprecation notice right in the name header. I believe this would save some time for those who open docs just to see the method signatures.

Now (https://draftjs.org/docs/api-reference-entity.html):
image

What I suggest:
image

Copy link
Contributor

@niveditc niveditc left a comment

Choose a reason for hiding this comment

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

Looking good!

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

niveditc is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
…ve#1787)

Summary:
**Summary**

The note in the docs `Please note that the API for entity storage and management has changed recently; for details on updating your application see our v0.10 API Migration Guide` doesn't give a quick clear idea of what I should use instead of the old methods (I need to go to that migration guide, but let's suppose I'm a new user and I don't have any code to migrate). The problem becomes obvious after getting warnings in the browser console.  So my suggestion is to place deprecation notice right in the name header. I believe this would save some time for those who open docs just to see the method signatures.

Now (https://draftjs.org/docs/api-reference-entity.html):
![image](https://user-images.githubusercontent.com/439939/41491613-39a1cfb2-710b-11e8-849b-4f8a13bf9088.png)

What I suggest:
![image](https://user-images.githubusercontent.com/439939/41491621-43f89af4-710b-11e8-8d71-2c3c20054e42.png)
Pull Request resolved: facebookarchive#1787

Differential Revision: D10234733

fbshipit-source-id: 8f7c32ad4f0da203ffe0a80584781413681ba158
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
**Summary**

The note in the docs `Please note that the API for entity storage and management has changed recently; for details on updating your application see our v0.10 API Migration Guide` doesn't give a quick clear idea of what I should use instead of the old methods (I need to go to that migration guide, but let's suppose I'm a new user and I don't have any code to migrate). The problem becomes obvious after getting warnings in the browser console.  So my suggestion is to place deprecation notice right in the name header. I believe this would save some time for those who open docs just to see the method signatures.

Now (https://draftjs.org/docs/api-reference-entity.html):
![image](https://user-images.githubusercontent.com/439939/41491613-39a1cfb2-710b-11e8-849b-4f8a13bf9088.png)

What I suggest:
![image](https://user-images.githubusercontent.com/439939/41491621-43f89af4-710b-11e8-8d71-2c3c20054e42.png)
Pull Request resolved: facebookarchive/draft-js#1787

Differential Revision: D10234733

fbshipit-source-id: 8f7c32ad4f0da203ffe0a80584781413681ba158
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
Summary:
**Summary**

The note in the docs `Please note that the API for entity storage and management has changed recently; for details on updating your application see our v0.10 API Migration Guide` doesn't give a quick clear idea of what I should use instead of the old methods (I need to go to that migration guide, but let's suppose I'm a new user and I don't have any code to migrate). The problem becomes obvious after getting warnings in the browser console.  So my suggestion is to place deprecation notice right in the name header. I believe this would save some time for those who open docs just to see the method signatures.

Now (https://draftjs.org/docs/api-reference-entity.html):
![image](https://user-images.githubusercontent.com/439939/41491613-39a1cfb2-710b-11e8-849b-4f8a13bf9088.png)

What I suggest:
![image](https://user-images.githubusercontent.com/439939/41491621-43f89af4-710b-11e8-8d71-2c3c20054e42.png)
Pull Request resolved: facebookarchive/draft-js#1787

Differential Revision: D10234733

fbshipit-source-id: 8f7c32ad4f0da203ffe0a80584781413681ba158
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants