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 "unstable_" prefix to react-cache and jest-react #13929

Merged
merged 3 commits into from
Oct 23, 2018

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Oct 23, 2018

Add "unstable_" prefix to react-cache createResource and jest-react matchers.

"291": "Log of yielded values is not empty. Call expect(ReactTestRenderer).toHaveYielded(...) first.",
"292": "The matcher `toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).toHaveYielded(expectedYields)"
"291": "Log of yielded values is not empty. Call expect(ReactTestRenderer).unstable_toHaveYielded(...) first.",
"292": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revert? We don't change this file manually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh schwoops.

@@ -18,12 +18,12 @@ describe('ReactCache', () => {
});

it('throws a promise if the requested value is not in the cache', async () => {
const {createCache, createResource} = ReactCache;
const {createCache, unstable_createResource} = ReactCache;
Copy link
Collaborator

Choose a reason for hiding this comment

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

createCache isn't unstable but createResource is? Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Andrew has concerns that createResource is less stable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok just wanted to make sure it's intentional

Copy link
Collaborator

Choose a reason for hiding this comment

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

createCache doesn't exist anymore after I merge this: #13865

Let's land this PR as-is then I'll land mine.

@sizebot
Copy link

sizebot commented Oct 23, 2018

Details of bundled changes.

Comparing: 508b5fb...3001e23

scheduler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
scheduler.development.js n/a n/a 0 B 19.17 KB 0 B 5.74 KB UMD_DEV
scheduler.production.min.js n/a n/a 0 B 3.16 KB 0 B 1.53 KB UMD_PROD

Generated by 🚫 dangerJS

@bvaughn bvaughn merged commit 915e4ea into facebook:master Oct 23, 2018
@bvaughn bvaughn deleted the react-cache-unstable-prefix branch October 23, 2018 20:55
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
* Add "unstable_" prefix to react-cache createResource and jest-react matchers
* Reverted accidental change to error-codes JSON
* Remove unstable_ prefix from internal React tests for jest-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants