GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add test selectors to experimental build by bvaughn · Pull Request #22760 · react/react Conversation
|
|
Comparing: 4ff5f57...a4d4e2f Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
32622ae to
50f6211
Compare
| "build": "node ./scripts/rollup/build.js", | ||
| "build-combined": "node ./scripts/rollup/build-all-release-channels.js", | ||
| "build-for-devtools": "cross-env RELEASE_CHANNEL=experimental yarn build react/index,react/jsx,react-dom,react-is,react-debug-tools,scheduler,react-test-renderer,react-refresh --type=NODE && cp -r ./build/node_modules build/oss-experimental/", | ||
| "build-for-devtools": "cross-env RELEASE_CHANNEL=experimental yarn build react/index,react/jsx,react-dom/index,react-dom/test,react-is,react-debug-tools,scheduler,react-test-renderer,react-refresh --type=NODE && cp -r ./build/node_modules build/oss-experimental/", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This change makes yarn build-for-devtools build a tiny bit faster, since we don't need e.g. server rendering stuff.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 'react-debug-tools': resolve(builtModulesDir, 'react-debug-tools'), | ||
| 'react-devtools-feature-flags': resolveFeatureFlags('shell'), | ||
| 'react-dom': resolve(builtModulesDir, 'react-dom'), | ||
| 'react-dom': resolve(builtModulesDir, 'react-dom/testing'), |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This makes sure we're building the test shell with the version of react-dom that has the extra test selector APIs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| findBoundingRects, | ||
| focusWithin, | ||
| observeVisibleRects, | ||
| } from 'react-reconciler/src/ReactFiberReconciler'; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This change adds the new APIs to the experimental NPM release.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| export const enableSelectiveHydration = false; | ||
| export const enableLazyElements = false; | ||
| export const enableCache = false; | ||
| export const enableCache = true; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Probably should have turned this on earlier but didn't matter before.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should this be set to __EXPERIMENTAL__?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| { | ||
| moduleType: RENDERER, | ||
| bundleTypes: [FB_WWW_DEV, FB_WWW_PROD], | ||
| bundleTypes: [FB_WWW_DEV, FB_WWW_PROD, NODE_DEV, NODE_PROD], |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This adds the react-dom/testing entry point to the NPM build. I wish we could only do this for the __EXPERIMENTAL__ release channel but I don't think that's possible with our current Rollup configuration?
As it stands, this would add a /testing.jsentrypoint to the react-dom stable release but its exports would exactly match react-dom/index.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Let's rename to unstable_testing in this case? We shouldn't ship it in a way that seems usable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion.
Little weird that source paths/tests will refer to react-dom/testing but built stuff will need to refer to react-dom/unstable_testing but it's still an improvement.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
50f6211 to
2b840f2
Compare
2b840f2 to
cd2f004
Compare
cd2f004 to
a4d4e2f
Compare
| export const enableSelectiveHydration = false; | ||
| export const enableLazyElements = false; | ||
| export const enableCache = false; | ||
| export const enableCache = __EXPERIMENTAL__; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This probably should have been flipped on before.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Summary: This sync includes the following changes: - **[c1220eb](react/react@c1220ebdd )**: treat empty string as null ([#22807](react/react#22807)) //<salazarm>// - **[09d9b17](react/react@09d9b1775 )**: Update deprecated features in ESLint configuration files. ([#22767](react/react#22767)) //<Esteban>// - **[bddbfb8](react/react@bddbfb86d )**: Revert "Fix Node package.json ./ exports deprecation warning ([#22783](react/react#22783))" ([#22792](react/react#22792)) //<Sebastian Silbermann>// - **[b831aec](react/react@b831aec48 )**: chore(fast-refresh): double check wasMounted ([#22740](react/react#22740)) //<anc95>// - **[8edeb78](react/react@8edeb787b )**: Fix Node package.json ./ exports deprecation warning ([#22783](react/react#22783)) //<Rin Arakaki>// - **[fdc1d61](react/react@fdc1d617a )**: Flag for client render fallback behavior on hydration mismatch ([#22787](react/react#22787)) //<salazarm>// - **[aa19d56](react/react@aa19d569b )**: Add test selectors to experimental build ([#22760](react/react#22760)) //<Brian Vaughn>// - **[520ffc7](react/react@520ffc77a )**: Use globalThis if possible for native fetch in browser build ([#22777](react/react#22777)) //<Jiachi Liu>// - **[afbc2d0](react/react@afbc2d08f )**: Remove unused react-internal/invariant-args ESLint rule. ([#22778](react/react#22778)) //<Esteban>// - **[ca94e26](react/react@ca94e2680 )**: Remove 'packages/shared/invariant.js' ([#22779](react/react#22779)) //<Esteban>// - **[8356471](react/react@83564712b )**: Move SuspenseList to experimental channel ([#22765](react/react#22765)) //<Andrew Clark>// - **[d4144e6](react/react@d4144e6e5 )**: fix : grammatical typo for test description ([#22764](react/react#22764)) //<Brijesh Prasad>// - **[0b32951](react/react@0b329511b )**: chore: fix comment typo ([#22657](react/react#22657)) //<Han Han>// - **[e6f60d2](react/react@e6f60d2ad )**: fix typos ([#22715](react/react#22715)) //<180909>// Changelog: [General][Changed] - React Native sync for revisions c0c71a8...c1220eb jest_e2e[run_all_tests] Reviewed By: yungsters Differential Revision: D32646433 fbshipit-source-id: c534ee7a17141634700c90fc2c7b34bfbe17887a
This change adds a new "react-dom/unstable_testing" entry point but I believe its contents will exactly match "react-dom/index" for the stable build. (The experimental build will have the added new selector APIs.)
This change adds a new "react-dom/unstable_testing" entry point but I believe its contents will exactly match "react-dom/index" for the stable build. (The experimental build will have the added new selector APIs.)
This change adds a new "react-dom/unstable_testing" entry point but I believe its contents will exactly match "react-dom/index" for the stable build. (The experimental build will have the added new selector APIs.)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.