mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "React compiler beta and reenable rule (#5898)" (#6071)

This reverts commit 1fc684aaef6dd851b4d6c9a23673fcf4e7170722.

authored by danabra.mov and committed by

GitHub 7111e38c 3eb531b0

+125 -30
+2 -1
.eslintrc.js
··· 79 79 }, 80 80 ], 81 81 'simple-import-sort/exports': 'error', 82 - 'react-compiler/react-compiler': 'warn', 82 + // TODO: Reenable when we figure out why it gets stuck on CI. 83 + // 'react-compiler/react-compiler': 'error', 83 84 'no-restricted-imports': [ 84 85 'error', 85 86 {
+6 -1
babel.config.js
··· 17 17 ], 18 18 plugins: [ 19 19 'macros', 20 - ['babel-plugin-react-compiler', {target: '18'}], 20 + [ 21 + 'babel-plugin-react-compiler', 22 + { 23 + runtimeModule: 'react-compiler-runtime', 24 + }, 25 + ], 21 26 [ 22 27 'module:react-native-dotenv', 23 28 {
+21
lib/react-compiler-runtime/index.js
··· 1 + const React = require('react') 2 + const $empty = Symbol.for('react.memo_cache_sentinel') 3 + /** 4 + * DANGER: this hook is NEVER meant to be called directly! 5 + * 6 + * Note that this is a temporary userspace implementation of this function 7 + * from React 19. It is not as efficient and may invalidate more frequently 8 + * than the official API. Please upgrade to React 19 as soon as you can. 9 + **/ 10 + export function c(size) { 11 + // eslint-disable-next-line react-hooks/rules-of-hooks 12 + return React.useState(() => { 13 + const $ = new Array(size) 14 + for (let ii = 0; ii < size; ii++) { 15 + $[ii] = $empty 16 + } 17 + // @ts-ignore 18 + $[$empty] = true 19 + return $ 20 + })[0] 21 + }
+9
lib/react-compiler-runtime/package.json
··· 1 + { 2 + "name": "react-compiler-runtime", 3 + "version": "0.0.1", 4 + "license": "MIT", 5 + "main": "index.js", 6 + "peerDependencies": { 7 + "react": "^18.2.0" 8 + } 9 + }
+3 -3
package.json
··· 166 166 "postinstall-postinstall": "^2.1.0", 167 167 "psl": "^1.9.0", 168 168 "react": "18.2.0", 169 - "react-compiler-runtime": "^19.0.0-beta-6fc168f-20241025", 169 + "react-compiler-runtime": "file:./lib/react-compiler-runtime", 170 170 "react-dom": "^18.2.0", 171 171 "react-image-crop": "^11.0.7", 172 172 "react-keyed-flatten-children": "^3.0.0", ··· 243 243 "babel-loader": "^9.1.2", 244 244 "babel-plugin-macros": "^3.1.0", 245 245 "babel-plugin-module-resolver": "^5.0.0", 246 - "babel-plugin-react-compiler": "^19.0.0-beta-6fc168f-20241025", 246 + "babel-plugin-react-compiler": "^0.0.0-experimental-592953e-20240517", 247 247 "babel-plugin-react-native-web": "^0.18.12", 248 248 "babel-preset-expo": "^10.0.0", 249 249 "eslint": "^8.19.0", ··· 251 251 "eslint-plugin-ft-flow": "^2.0.3", 252 252 "eslint-plugin-lingui": "^0.2.0", 253 253 "eslint-plugin-react": "^7.33.2", 254 - "eslint-plugin-react-compiler": "^19.0.0-beta-6fc168f-20241025", 254 + "eslint-plugin-react-compiler": "^0.0.0-experimental-c8b3f72-20240517", 255 255 "eslint-plugin-react-native-a11y": "^3.3.0", 256 256 "eslint-plugin-simple-import-sort": "^12.0.0", 257 257 "html-webpack-plugin": "^5.5.0",
+84 -25
yarn.lock
··· 1253 1253 eslint-visitor-keys "^2.1.0" 1254 1254 semver "^6.3.1" 1255 1255 1256 + "@babel/generator@7.2.0": 1257 + version "7.2.0" 1258 + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.2.0.tgz#eaf3821fa0301d9d4aef88e63d4bcc19b73ba16c" 1259 + integrity sha512-BA75MVfRlFQG2EZgFYIwyT1r6xSkwfP2bdkY/kLZusEYWiJs4xCowab/alaEaT0wSvmVuXGqiefeBlP+7V1yKg== 1260 + dependencies: 1261 + "@babel/types" "^7.2.0" 1262 + jsesc "^2.5.1" 1263 + lodash "^4.17.10" 1264 + source-map "^0.5.0" 1265 + trim-right "^1.0.1" 1266 + 1256 1267 "@babel/generator@^7.20.0", "@babel/generator@^7.22.10", "@babel/generator@^7.7.2": 1257 1268 version "7.22.10" 1258 1269 resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.10.tgz#c92254361f398e160645ac58831069707382b722" ··· 2942 2953 "@babel/helper-validator-identifier" "^7.22.5" 2943 2954 to-fast-properties "^2.0.0" 2944 2955 2945 - "@babel/types@^7.19.0", "@babel/types@^7.24.0", "@babel/types@^7.24.5": 2956 + "@babel/types@^7.19.0", "@babel/types@^7.2.0", "@babel/types@^7.24.0", "@babel/types@^7.24.5": 2946 2957 version "7.24.5" 2947 2958 resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.5.tgz#7661930afc638a5383eb0c4aee59b74f38db84d7" 2948 2959 integrity sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ== ··· 4703 4714 slash "^3.0.0" 4704 4715 write-file-atomic "^4.0.2" 4705 4716 4717 + "@jest/types@^24.9.0": 4718 + version "24.9.0" 4719 + resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" 4720 + integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== 4721 + dependencies: 4722 + "@types/istanbul-lib-coverage" "^2.0.0" 4723 + "@types/istanbul-reports" "^1.1.1" 4724 + "@types/yargs" "^13.0.0" 4725 + 4706 4726 "@jest/types@^26.6.2": 4707 4727 version "26.6.2" 4708 4728 resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" ··· 7170 7190 dependencies: 7171 7191 "@types/istanbul-lib-coverage" "*" 7172 7192 7193 + "@types/istanbul-reports@^1.1.1": 7194 + version "1.1.2" 7195 + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz#e875cc689e47bce549ec81f3df5e6f6f11cfaeb2" 7196 + integrity sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw== 7197 + dependencies: 7198 + "@types/istanbul-lib-coverage" "*" 7199 + "@types/istanbul-lib-report" "*" 7200 + 7173 7201 "@types/istanbul-reports@^3.0.0": 7174 7202 version "3.0.1" 7175 7203 resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" ··· 7468 7496 resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" 7469 7497 integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== 7470 7498 7499 + "@types/yargs@^13.0.0": 7500 + version "13.0.12" 7501 + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.12.tgz#d895a88c703b78af0465a9de88aa92c61430b092" 7502 + integrity sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ== 7503 + dependencies: 7504 + "@types/yargs-parser" "*" 7505 + 7471 7506 "@types/yargs@^15.0.0": 7472 7507 version "15.0.15" 7473 7508 resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.15.tgz#e609a2b1ef9e05d90489c2f5f45bbfb2be092158" ··· 7963 7998 resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" 7964 7999 integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== 7965 8000 7966 - ansi-regex@^4.1.0: 8001 + ansi-regex@^4.0.0, ansi-regex@^4.1.0: 7967 8002 version "4.1.1" 7968 8003 resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" 7969 8004 integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== ··· 8488 8523 dependencies: 8489 8524 "@babel/helper-define-polyfill-provider" "^0.4.2" 8490 8525 8491 - babel-plugin-react-compiler@^19.0.0-beta-6fc168f-20241025: 8492 - version "19.0.0-beta-6fc168f-20241025" 8493 - resolved "https://registry.yarnpkg.com/babel-plugin-react-compiler/-/babel-plugin-react-compiler-19.0.0-beta-6fc168f-20241025.tgz#b9cb5dfa309cce094d35c753e92cca2730fcfc39" 8494 - integrity sha512-wFVeXhF0hkiRe4bEM0jzeTFMlMbcKNTwhXcFvqUIVB6WXf+3vdwOWGWnw7jwvDb2mzvsIZOFt/96itOFt1rwjw== 8526 + babel-plugin-react-compiler@^0.0.0-experimental-592953e-20240517: 8527 + version "0.0.0-experimental-592953e-20240517" 8528 + resolved "https://registry.yarnpkg.com/babel-plugin-react-compiler/-/babel-plugin-react-compiler-0.0.0-experimental-592953e-20240517.tgz#e800fa1550d03573cd5637218dc711f12f642249" 8529 + integrity sha512-OjG1SVaeQZaJrqkMFJatg8W/MTow8Ak5rx2SI0ETQBO1XvOk/XZGMbltNCPdFJLKghBYoBjC+Y3Ap/Xr7B01mA== 8495 8530 dependencies: 8531 + "@babel/generator" "7.2.0" 8496 8532 "@babel/types" "^7.19.0" 8533 + chalk "4" 8534 + invariant "^2.2.4" 8535 + pretty-format "^24" 8536 + zod "^3.22.4" 8537 + zod-validation-error "^2.1.0" 8497 8538 8498 8539 babel-plugin-react-native-web@^0.18.12, babel-plugin-react-native-web@~0.18.10: 8499 8540 version "0.18.12" ··· 9037 9078 resolved "https://registry.yarnpkg.com/cborg/-/cborg-4.2.6.tgz#7491c29986a87c647d6e2c232e64c82214ca660e" 9038 9079 integrity sha512-77vo4KlSwfjCIXcyZUVei4l2gdjesSCeYSx4U/Upwix7pcWZq8uw21sVRpjwn7mjEi//ieJPTj1MRWDHmud1Rg== 9039 9080 9081 + chalk@4, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: 9082 + version "4.1.2" 9083 + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" 9084 + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== 9085 + dependencies: 9086 + ansi-styles "^4.1.0" 9087 + supports-color "^7.1.0" 9088 + 9040 9089 chalk@5.3.0: 9041 9090 version "5.3.0" 9042 9091 resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" ··· 9055 9104 version "3.0.0" 9056 9105 resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" 9057 9106 integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== 9058 - dependencies: 9059 - ansi-styles "^4.1.0" 9060 - supports-color "^7.1.0" 9061 - 9062 - chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: 9063 - version "4.1.2" 9064 - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" 9065 - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== 9066 9107 dependencies: 9067 9108 ansi-styles "^4.1.0" 9068 9109 supports-color "^7.1.0" ··· 10902 10943 dependencies: 10903 10944 prettier-linter-helpers "^1.0.0" 10904 10945 10905 - eslint-plugin-react-compiler@^19.0.0-beta-6fc168f-20241025: 10906 - version "19.0.0-beta-6fc168f-20241025" 10907 - resolved "https://registry.yarnpkg.com/eslint-plugin-react-compiler/-/eslint-plugin-react-compiler-19.0.0-beta-6fc168f-20241025.tgz#dbd1f54b1019a437f09fc9547bea53f82e6026af" 10908 - integrity sha512-mHn5tYt9dT4GiXHF5muiz6p+4Lirgi0Oc87N2KrbB/ciSkT+VZ8iJA+6bbS4//ljYzYbxBbPMHWS/dZWhQrbpQ== 10946 + eslint-plugin-react-compiler@^0.0.0-experimental-c8b3f72-20240517: 10947 + version "0.0.0-experimental-c8b3f72-20240517" 10948 + resolved "https://registry.yarnpkg.com/eslint-plugin-react-compiler/-/eslint-plugin-react-compiler-0.0.0-experimental-c8b3f72-20240517.tgz#56b512aa0d6dbf051be0d297bde1d696e412bc50" 10949 + integrity sha512-cxUTFNMEKiLX6uFaRfrr2GHnB7KUHDMYLjEGzDec82ka6WyBCHg906nGSf3JvVnQKHaBDfUk7Mmv/JMvdgQB8Q== 10909 10950 dependencies: 10910 10951 "@babel/core" "^7.24.4" 10911 10952 "@babel/parser" "^7.24.4" ··· 15143 15184 resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" 15144 15185 integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== 15145 15186 15146 - lodash@^4.17.13, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: 15187 + lodash@^4.17.10, lodash@^4.17.13, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.7.0: 15147 15188 version "4.17.21" 15148 15189 resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" 15149 15190 integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== ··· 17504 17545 lodash "^4.17.20" 17505 17546 renderkid "^3.0.0" 17506 17547 17548 + pretty-format@^24: 17549 + version "24.9.0" 17550 + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" 17551 + integrity sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA== 17552 + dependencies: 17553 + "@jest/types" "^24.9.0" 17554 + ansi-regex "^4.0.0" 17555 + ansi-styles "^3.2.0" 17556 + react-is "^16.8.4" 17557 + 17507 17558 pretty-format@^26.5.2, pretty-format@^26.6.2: 17508 17559 version "26.6.2" 17509 17560 resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" ··· 17945 17996 regenerator-runtime "^0.13.9" 17946 17997 whatwg-fetch "^3.6.2" 17947 17998 17948 - react-compiler-runtime@^19.0.0-beta-6fc168f-20241025: 17949 - version "19.0.0-beta-6fc168f-20241025" 17950 - resolved "https://registry.yarnpkg.com/react-compiler-runtime/-/react-compiler-runtime-19.0.0-beta-6fc168f-20241025.tgz#008434181820f449b355e9bf36e1af2a9c8e5b5e" 17951 - integrity sha512-XY5p6GUVaz8P0c/B/2ebqz/xdp0YOtidtOSuiYyQB05fMws0Qys+zubDH7IKQBEtw4AKoCzrJ6ReeTtFLOKniw== 17999 + "react-compiler-runtime@file:./lib/react-compiler-runtime": 18000 + version "0.0.1" 17952 18001 17953 18002 react-dev-utils@^12.0.1: 17954 18003 version "12.0.1" ··· 18016 18065 resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" 18017 18066 integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== 18018 18067 18019 - react-is@^16.13.0, react-is@^16.13.1, react-is@^16.7.0: 18068 + react-is@^16.13.0, react-is@^16.13.1, react-is@^16.7.0, react-is@^16.8.4: 18020 18069 version "16.13.1" 18021 18070 resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" 18022 18071 integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== ··· 19436 19485 resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 19437 19486 integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== 19438 19487 19439 - source-map@^0.5.6: 19488 + source-map@^0.5.0, source-map@^0.5.6: 19440 19489 version "0.5.7" 19441 19490 resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" 19442 19491 integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== ··· 20380 20429 resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.7.tgz#46961cd2d57dd8706c36664acde06a248f1173fe" 20381 20430 integrity sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg== 20382 20431 20432 + trim-right@^1.0.1: 20433 + version "1.0.1" 20434 + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" 20435 + integrity sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw== 20436 + 20383 20437 tryer@^1.0.1: 20384 20438 version "1.0.1" 20385 20439 resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8" ··· 21784 21838 "@radix-ui/react-context-menu" "^2.0.1" 21785 21839 "@radix-ui/react-dropdown-menu" "^2.0.1" 21786 21840 sf-symbols-typescript "^1.0.0" 21841 + 21842 + zod-validation-error@^2.1.0: 21843 + version "2.1.0" 21844 + resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-2.1.0.tgz#208eac75237dfed47c0018d2fe8fd03501bfc9ac" 21845 + integrity sha512-VJh93e2wb4c3tWtGgTa0OF/dTt/zoPCPzXq4V11ZjxmEAFaPi/Zss1xIZdEB5RD8GD00U0/iVXgqkF77RV7pdQ== 21787 21846 21788 21847 zod-validation-error@^3.0.3: 21789 21848 version "3.3.0"