Revert D71805075: Update hermes-parser and related packages in fbsource to 0.27.0

Differential Revision:
D71805075

Original commit changeset: 685194c12ac0

Original Phabricator Diff: D71805075

fbshipit-source-id: b28f0f83ad8b4f4f6b5e62fdc9ff323af79c1d43
This commit is contained in:
Evghenii Nicolaev
2025-04-01 03:45:23 -07:00
committed by Facebook GitHub Bot
parent be8393c41b
commit d3daabfe2b
9 changed files with 124 additions and 149 deletions
+5 -5
View File
@@ -58,7 +58,7 @@
"@typescript-eslint/parser": "^7.1.1",
"ansi-styles": "^4.2.1",
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
"babel-plugin-syntax-hermes-parser": "0.27.0",
"babel-plugin-syntax-hermes-parser": "0.25.1",
"babel-plugin-transform-define": "^2.1.4",
"babel-plugin-transform-flow-enums": "^0.0.2",
"chalk": "^4.0.0",
@@ -79,11 +79,11 @@
"eslint-plugin-react-native": "^4.0.0",
"eslint-plugin-redundant-undefined": "^0.4.0",
"eslint-plugin-relay": "^1.8.3",
"flow-api-translator": "0.27.0",
"flow-api-translator": "0.25.1",
"flow-bin": "^0.266.1",
"glob": "^7.1.1",
"hermes-eslint": "0.27.0",
"hermes-transform": "0.27.0",
"hermes-eslint": "0.25.1",
"hermes-transform": "0.25.1",
"inquirer": "^7.1.0",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
@@ -97,7 +97,7 @@
"node-fetch": "^2.2.0",
"nullthrows": "^1.1.1",
"prettier": "2.8.8",
"prettier-plugin-hermes-parser": "0.27.0",
"prettier-plugin-hermes-parser": "0.25.1",
"react": "19.0.0",
"react-test-renderer": "19.0.0",
"rimraf": "^3.0.2",
@@ -18,8 +18,8 @@
"bugs": "https://github.com/facebook/react-native/issues",
"main": "index.js",
"devDependencies": {
"babel-plugin-syntax-hermes-parser": "0.27.0",
"hermes-eslint": "0.27.0"
"babel-plugin-syntax-hermes-parser": "0.25.1",
"hermes-eslint": "0.25.1"
},
"engines": {
"node": ">=18"
+2 -2
View File
@@ -32,8 +32,8 @@
"source-map-support": "0.5.0"
},
"devDependencies": {
"babel-plugin-syntax-hermes-parser": "0.27.0",
"hermes-eslint": "0.27.0"
"babel-plugin-syntax-hermes-parser": "0.25.1",
"hermes-eslint": "0.25.1"
},
"engines": {
"node": ">=18"
@@ -56,7 +56,7 @@
"@babel/plugin-transform-unicode-regex": "^7.24.7",
"@babel/template": "^7.25.0",
"@react-native/babel-plugin-codegen": "0.80.0-main",
"babel-plugin-syntax-hermes-parser": "0.27.0",
"babel-plugin-syntax-hermes-parser": "0.25.1",
"babel-plugin-transform-flow-enums": "^0.0.2",
"react-refresh": "^0.14.0"
},
@@ -17,7 +17,7 @@
"dependencies": {
"@babel/core": "^7.25.2",
"@react-native/babel-preset": "0.80.0-main",
"hermes-parser": "0.27.0",
"hermes-parser": "0.25.1",
"nullthrows": "^1.1.1"
},
"peerDependencies": {
+2 -2
View File
@@ -30,7 +30,7 @@
],
"dependencies": {
"glob": "^7.1.1",
"hermes-parser": "0.27.0",
"hermes-parser": "0.25.1",
"invariant": "^2.2.4",
"nullthrows": "^1.1.1",
"yargs": "^17.6.2"
@@ -44,7 +44,7 @@
"@babel/plugin-transform-optional-chaining": "^7.24.8",
"@babel/preset-env": "^7.25.3",
"chalk": "^4.0.0",
"hermes-estree": "0.27.0",
"hermes-estree": "0.25.1",
"micromatch": "^4.0.4",
"prettier": "2.8.8",
"rimraf": "^3.0.2"
@@ -157,7 +157,7 @@ declare export default {
get SectionList(): AnimatedSectionList,
get Text(): AnimatedText,
get View(): AnimatedView,
...typeof Animated,
...Animated,
};
"
`;
@@ -185,25 +185,25 @@ export type { default as AnimatedDivision } from \\"./nodes/AnimatedDivision\\";
export type { default as AnimatedModulo } from \\"./nodes/AnimatedModulo\\";
export type { default as AnimatedMultiplication } from \\"./nodes/AnimatedMultiplication\\";
export type { default as AnimatedSubtraction } from \\"./nodes/AnimatedSubtraction\\";
declare export const add: typeof AnimatedImplementation.add;
declare export const attachNativeEvent: typeof AnimatedImplementation.attachNativeEvent;
declare export const createAnimatedComponent: typeof AnimatedImplementation.createAnimatedComponent;
declare export const decay: typeof AnimatedImplementation.decay;
declare export const delay: typeof AnimatedImplementation.delay;
declare export const diffClamp: typeof AnimatedImplementation.diffClamp;
declare export const divide: typeof AnimatedImplementation.divide;
declare export const event: typeof AnimatedImplementation.event;
declare export const forkEvent: typeof AnimatedImplementation.forkEvent;
declare export const loop: typeof AnimatedImplementation.loop;
declare export const modulo: typeof AnimatedImplementation.modulo;
declare export const multiply: typeof AnimatedImplementation.multiply;
declare export const parallel: typeof AnimatedImplementation.parallel;
declare export const sequence: typeof AnimatedImplementation.sequence;
declare export const spring: typeof AnimatedImplementation.spring;
declare export const stagger: typeof AnimatedImplementation.stagger;
declare export const subtract: typeof AnimatedImplementation.subtract;
declare export const timing: typeof AnimatedImplementation.timing;
declare export const unforkEvent: typeof AnimatedImplementation.unforkEvent;
declare export const add: $FlowFixMe;
declare export const attachNativeEvent: $FlowFixMe;
declare export const createAnimatedComponent: $FlowFixMe;
declare export const decay: $FlowFixMe;
declare export const delay: $FlowFixMe;
declare export const diffClamp: $FlowFixMe;
declare export const divide: $FlowFixMe;
declare export const event: $FlowFixMe;
declare export const forkEvent: $FlowFixMe;
declare export const loop: $FlowFixMe;
declare export const modulo: $FlowFixMe;
declare export const multiply: $FlowFixMe;
declare export const parallel: $FlowFixMe;
declare export const sequence: $FlowFixMe;
declare export const spring: $FlowFixMe;
declare export const stagger: $FlowFixMe;
declare export const subtract: $FlowFixMe;
declare export const timing: $FlowFixMe;
declare export const unforkEvent: $FlowFixMe;
"
`;
@@ -296,31 +296,31 @@ type AnimatedNumeric =
| AnimatedValue;
export type { AnimatedNumeric as Numeric };
declare export default {
Value: typeof AnimatedValue,
ValueXY: typeof AnimatedValueXY,
Color: typeof AnimatedColor,
Interpolation: typeof AnimatedInterpolation,
Node: typeof AnimatedNode,
decay: typeof decay,
timing: typeof timing,
spring: typeof spring,
add: typeof add,
subtract: typeof subtract,
divide: typeof divide,
multiply: typeof multiply,
modulo: typeof modulo,
diffClamp: typeof diffClamp,
delay: typeof delay,
sequence: typeof sequence,
parallel: typeof parallel,
stagger: typeof stagger,
loop: typeof loop,
event: typeof event,
createAnimatedComponent: typeof createAnimatedComponent,
attachNativeEvent: typeof attachNativeEvent,
forkEvent: typeof forkEvent,
unforkEvent: typeof unforkEvent,
Event: typeof AnimatedEvent,
Value: AnimatedValue,
ValueXY: AnimatedValueXY,
Color: AnimatedColor,
Interpolation: AnimatedInterpolation,
Node: AnimatedNode,
decay: decay,
timing: timing,
spring: spring,
add: add,
subtract: subtract,
divide: divide,
multiply: multiply,
modulo: modulo,
diffClamp: diffClamp,
delay: delay,
sequence: sequence,
parallel: parallel,
stagger: stagger,
loop: loop,
event: event,
createAnimatedComponent: createAnimatedComponent,
attachNativeEvent: attachNativeEvent,
forkEvent: forkEvent,
unforkEvent: unforkEvent,
Event: AnimatedEvent,
};
"
`;
@@ -3389,17 +3389,17 @@ declare function registerInput(textField: HostInstance): void;
declare function unregisterInput(textField: HostInstance): void;
declare function isTextInput(textField: HostInstance): boolean;
declare const TextInputState: {
currentlyFocusedInput: typeof currentlyFocusedInput,
focusInput: typeof focusInput,
blurInput: typeof blurInput,
currentlyFocusedField: typeof currentlyFocusedField,
focusField: typeof focusField,
blurField: typeof blurField,
focusTextInput: typeof focusTextInput,
blurTextInput: typeof blurTextInput,
registerInput: typeof registerInput,
unregisterInput: typeof unregisterInput,
isTextInput: typeof isTextInput,
currentlyFocusedInput: currentlyFocusedInput,
focusInput: focusInput,
blurInput: blurInput,
currentlyFocusedField: currentlyFocusedField,
focusField: focusField,
blurField: blurField,
focusTextInput: focusTextInput,
blurTextInput: blurTextInput,
registerInput: registerInput,
unregisterInput: unregisterInput,
isTextInput: isTextInput,
};
declare export default typeof TextInputState;
"
@@ -3449,7 +3449,7 @@ declare const addPoolingTo: <T>(
...
};
declare const PooledClass: {
addPoolingTo: typeof addPoolingTo,
addPoolingTo: addPoolingTo,
oneArgumentPooler: Pooler,
twoArgumentPooler: Pooler,
threeArgumentPooler: Pooler,
@@ -3523,7 +3523,7 @@ declare const TouchableMixinImpl: {
withoutDefaultFocusAndBlur: { ... },
};
declare const TouchableImpl: {
Mixin: typeof TouchableMixinImpl,
Mixin: TouchableMixinImpl,
renderDebugView: ({
color: ColorValue,
hitSlop?: EdgeInsetsProp,
@@ -3777,17 +3777,11 @@ exports[`public API should not change unintentionally Libraries/Components/View/
collapsable: true,
collapsableChildren: true,
needsOffscreenAlphaCompositing: true,
style: typeof ReactNativeStyleAttributes,
style: ReactNativeStyleAttributes,
role: true,
};
declare const RCTView: {
...typeof UIView,
removeClippedSubviews: true,
};
declare const ReactNativeViewAttributes: {
UIView: typeof UIView,
RCTView: typeof RCTView,
};
declare const RCTView: { ...UIView, removeClippedSubviews: true };
declare const ReactNativeViewAttributes: { UIView: UIView, RCTView: RCTView };
declare export default typeof ReactNativeViewAttributes;
"
`;
@@ -4244,11 +4238,11 @@ declare function unstable_setExceptionDecorator(
declare function handleException(e: mixed, isFatal: boolean): void;
declare function installConsoleErrorReporter(): void;
declare const ExceptionsManager: {
decoratedExtraDataKey: typeof decoratedExtraDataKey,
handleException: typeof handleException,
installConsoleErrorReporter: typeof installConsoleErrorReporter,
SyntheticError: typeof SyntheticError,
unstable_setExceptionDecorator: typeof unstable_setExceptionDecorator,
decoratedExtraDataKey: decoratedExtraDataKey,
handleException: handleException,
installConsoleErrorReporter: installConsoleErrorReporter,
SyntheticError: SyntheticError,
unstable_setExceptionDecorator: unstable_setExceptionDecorator,
};
declare export default typeof ExceptionsManager;
"
@@ -4562,7 +4556,7 @@ exports[`public API should not change unintentionally Libraries/Image/AssetRegis
registerAsset: (asset: PackagerAsset) => number,
getAssetByID: (assetId: number) => PackagerAsset,
};
declare module.exports: typeof AssetRegistry;
declare module.exports: AssetRegistry;
"
`;
@@ -4930,7 +4924,7 @@ declare export default typeof NativeImageStoreIOS;
exports[`public API should not change unintentionally Libraries/Image/RelativeImageStub.js 1`] = `
"declare const RelativeImageStub: number;
declare module.exports: typeof RelativeImageStub;
declare module.exports: RelativeImageStub;
"
`;
@@ -5211,16 +5205,16 @@ declare const Presets: {
spring: LayoutAnimationConfig,
};
declare const LayoutAnimation: {
configureNext: typeof configureNext,
create: typeof create,
configureNext: configureNext,
create: create,
Types: LayoutAnimationTypes,
Properties: LayoutAnimationProperties,
checkConfig(...args: Array<mixed>): void,
Presets: typeof Presets,
Presets: Presets,
easeInEaseOut: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void,
linear: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void,
spring: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void,
setEnabled: typeof setEnabled,
setEnabled: setEnabled,
};
declare export default typeof LayoutAnimation;
"
@@ -5275,7 +5269,7 @@ declare export default typeof FillRateHelper;
`;
exports[`public API should not change unintentionally Libraries/Lists/FlatList.js 1`] = `
"declare const VirtualizedList: typeof VirtualizedLists.VirtualizedList;
"declare const VirtualizedList: $FlowFixMe;
type RequiredProps<ItemT> = {
data: ?$ReadOnly<$ArrayLike<ItemT>>,
};
@@ -5356,7 +5350,7 @@ declare export default typeof FlatList;
`;
exports[`public API should not change unintentionally Libraries/Lists/SectionList.js 1`] = `
"declare const VirtualizedSectionList: typeof VirtualizedLists.VirtualizedSectionList;
"declare const VirtualizedSectionList: $FlowFixMe;
type DefaultSectionT = {
[key: string]: any,
};
@@ -6458,10 +6452,10 @@ declare export default typeof convertRequestBody;
`;
exports[`public API should not change unintentionally Libraries/Network/fetch.js 1`] = `
"declare export const fetch: typeof global.fetch;
declare export const Headers: typeof global.Headers;
declare export const Request: typeof global.Request;
declare export const Response: typeof global.Response;
"declare export const fetch: $FlowFixMe;
declare export const Headers: $FlowFixMe;
declare export const Request: $FlowFixMe;
declare export const Response: $FlowFixMe;
"
`;
@@ -7472,11 +7466,11 @@ declare const absoluteFill: {
+top: 0,
};
declare export default {
hairlineWidth: typeof hairlineWidth,
hairlineWidth: hairlineWidth,
absoluteFill: any,
absoluteFillObject: typeof absoluteFill,
compose: typeof composeStyles,
flatten: typeof flatten,
absoluteFillObject: absoluteFill,
compose: composeStyles,
flatten: flatten,
setStyleAttributePreprocessor(
property: string,
process: (nextProp: mixed) => mixed
+1 -1
View File
@@ -118,7 +118,7 @@
"anser": "^1.4.9",
"ansi-regex": "^5.0.0",
"babel-jest": "^29.7.0",
"babel-plugin-syntax-hermes-parser": "0.27.0",
"babel-plugin-syntax-hermes-parser": "0.25.1",
"base64-js": "^1.5.1",
"chalk": "^4.0.0",
"commander": "^12.0.0",
+28 -47
View File
@@ -2688,13 +2688,6 @@ babel-plugin-syntax-hermes-parser@0.25.1:
dependencies:
hermes-parser "0.25.1"
babel-plugin-syntax-hermes-parser@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.27.0.tgz#242c0b8fae6bf3588af4b7bd4895da38c3444a80"
integrity sha512-wI9SYVdVXNiJ1JZF1yWubtN9qFY3gDkuR5DibkxNOMLvDlUJkdBCycaCpdu6kIMRjeKEBZmDnOzgVPxS9eiS4g==
dependencies:
hermes-parser "0.27.0"
babel-plugin-transform-define@^2.1.4:
version "2.1.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-2.1.4.tgz#8f7088211176a55a72788d584ceea9f691a021c1"
@@ -4349,19 +4342,19 @@ flatted@^3.2.9:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
flow-api-translator@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/flow-api-translator/-/flow-api-translator-0.27.0.tgz#c10111bc6e19a2269e17a73b2109743d71348c4c"
integrity sha512-8/Ht4viNOA6Osbr80lYy3EjHJMGSx2bnqrQGwovCFBo61oh7nN//uTaNk4RCG5N9uQjsXtfYu/ZcHiaAbHlTZA==
flow-api-translator@0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/flow-api-translator/-/flow-api-translator-0.25.1.tgz#5aaf89aecd37384ab8ebdc948fe3afe5f81a7373"
integrity sha512-PI2IXcDUdnEZ5yErIhai4Ipufw0GpnIm/mrNNlbz07l8Lkzr72l4ycbo9mZx98+SV+wl84QLn8Gpt4uKxrM/kQ==
dependencies:
"@babel/code-frame" "^7.16.0"
"@typescript-eslint/parser" "7.2.0"
"@typescript-eslint/visitor-keys" "7.2.0"
flow-enums-runtime "^0.0.6"
hermes-eslint "0.27.0"
hermes-estree "0.27.0"
hermes-parser "0.27.0"
hermes-transform "0.27.0"
hermes-eslint "0.25.1"
hermes-estree "0.25.1"
hermes-parser "0.25.1"
hermes-transform "0.25.1"
typescript "5.3.2"
flow-bin@^0.266.1:
@@ -4753,25 +4746,20 @@ hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2:
dependencies:
function-bind "^1.1.2"
hermes-eslint@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/hermes-eslint/-/hermes-eslint-0.27.0.tgz#164d35fd5e68d061e290795bc2f720683e2f6657"
integrity sha512-skJvG1TcLgipCmp6QjojQL7kfnfeWQw0IMh7azETYIAYpX/0CO8sAhJMYU3XUKKeZX53cwnheJ41SkKtL52z/g==
hermes-eslint@0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/hermes-eslint/-/hermes-eslint-0.25.1.tgz#e7d2d845256705d5e2d5cf69dc79032ac3921bb3"
integrity sha512-nPz9+oyejT1zsIwoJ2pWdUvLcN1i+tbaWCOD8PpNBYQtnHXaPXImZp/6zZHnm3bo/DoFcAgh8+SNcxLFxh7m/A==
dependencies:
esrecurse "^4.3.0"
hermes-estree "0.27.0"
hermes-parser "0.27.0"
hermes-estree "0.25.1"
hermes-parser "0.25.1"
hermes-estree@0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.25.1.tgz#6aeec17d1983b4eabf69721f3aa3eb705b17f480"
integrity sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==
hermes-estree@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.27.0.tgz#656a307bc3b5d86f2967226171fb9cb56e79e72c"
integrity sha512-HC9/EVRYBNbcfavCk9K1pLuD37NxaU2eH7bWtVc3AhdwzUF9sG+IIAu/+hPEzT5hRBk5rGf34eYt7nLpECj1bw==
hermes-parser@0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.25.1.tgz#5be0e487b2090886c62bd8a11724cd766d5f54d1"
@@ -4779,24 +4767,17 @@ hermes-parser@0.25.1:
dependencies:
hermes-estree "0.25.1"
hermes-parser@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.27.0.tgz#a647a0da9d988052899262f035f4be848fb0fd9c"
integrity sha512-QK/6ZFbmrwUEGPKlVPvZq9LokksSwx+wtt/LGG+xTxSvbk+D0sMocI6kpSNEnuu77eWjyMH8J6dLBGuajVquTg==
dependencies:
hermes-estree "0.27.0"
hermes-transform@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/hermes-transform/-/hermes-transform-0.27.0.tgz#803fbe27cc7f33e3d0d271e2b9c64ce8f368514b"
integrity sha512-p/mlVyQomOVN7hx63ArnrDMba3nREp8W8BjGI31c2eL9ZvAAcypBgwb3KQDMzd4ULnoClhqjI3bQHyemce+uuA==
hermes-transform@0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/hermes-transform/-/hermes-transform-0.25.1.tgz#78a4e82605269447d68426dc3d003e24dca89b7f"
integrity sha512-KSFRTAygJPclP7DMdQrmNrJaUn/h/tA7WSvP8USNK77L5ZSiyFv0019XcrVtlnYUoiEAp4591yD9L8s1d8/qqQ==
dependencies:
"@babel/code-frame" "^7.16.0"
esquery "^1.4.0"
flow-enums-runtime "^0.0.6"
hermes-eslint "0.27.0"
hermes-estree "0.27.0"
hermes-parser "0.27.0"
hermes-eslint "0.25.1"
hermes-estree "0.25.1"
hermes-parser "0.25.1"
string-width "4.2.3"
homedir-polyfill@^1.0.0, homedir-polyfill@^1.0.1:
@@ -7083,14 +7064,14 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
prettier-plugin-hermes-parser@0.27.0:
version "0.27.0"
resolved "https://registry.yarnpkg.com/prettier-plugin-hermes-parser/-/prettier-plugin-hermes-parser-0.27.0.tgz#c5f233a0dabe6fe46d8ae7842b2b4bd4311f1e8b"
integrity sha512-blg2qKwC1PWV5mS1jBiuPV/nFsfArViRMmwQhVfctrfVLTL+R3lR7OGETf/YKCEqgqHwfAdV2ElumYrg2UWdZA==
prettier-plugin-hermes-parser@0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/prettier-plugin-hermes-parser/-/prettier-plugin-hermes-parser-0.25.1.tgz#f7e82357f7fdcf5fcdf9e06dcc3bbafe03ed61eb"
integrity sha512-qVsgSt1ZLz7sxQyMmLM3b8JYIcUt4pkE+OCMEoUTe5G87ghNe9lluYMy7ptu1h0f3fAZ+zkifUV3JojMmQcKkg==
dependencies:
hermes-estree "0.27.0"
hermes-parser "0.27.0"
prettier-plugin-hermes-parser "0.27.0"
hermes-estree "0.25.1"
hermes-parser "0.25.1"
prettier-plugin-hermes-parser "0.25.1"
prettier@2.8.8:
version "2.8.8"