Bluesky app fork with some witchin' additions 💫

Update Node.js to 20.x in Dockerfile (#6099)

* Update Node.js to 20.x in Dockerfile

* Update Node.js types and engines entry to 20.x

* Update Node.js version in .nvmrc

* Use node version from .nvmrc in linting job

* Use Type Assertion for clearTimeout

authored by Trivikram Kamat and committed by GitHub 7008f61e 9e1a1668

Changed files
+23 -37
.github
workflows
src
view
com
+4
.github/workflows/lint.yml
··· 16 16 steps: 17 17 - name: Check out Git repository 18 18 uses: actions/checkout@v3 19 + - name: Install node 20 + uses: actions/setup-node@v4 21 + with: 22 + node-version-file: .nvmrc 19 23 - name: Yarn install 20 24 uses: Wandalen/wretry.action@master 21 25 with:
+1 -1
.nvmrc
··· 1 - 18 1 + 20
+1 -1
Dockerfile
··· 5 5 ENV DEBIAN_FRONTEND=noninteractive 6 6 7 7 # Node 8 - ENV NODE_VERSION=18 8 + ENV NODE_VERSION=20 9 9 ENV NVM_DIR=/usr/share/nvm 10 10 11 11 # Go
+2 -2
package.json
··· 3 3 "version": "1.94.0", 4 4 "private": true, 5 5 "engines": { 6 - "node": ">=18" 6 + "node": ">=20" 7 7 }, 8 8 "packageManager": "yarn@1.22.19", 9 9 "scripts": { ··· 103 103 "@tiptap/suggestion": "^2.6.6", 104 104 "@types/invariant": "^2.2.37", 105 105 "@types/lodash.throttle": "^4.1.9", 106 - "@types/node": "^18.16.2", 106 + "@types/node": "^20.14.3", 107 107 "@zxing/text-encoding": "^0.9.0", 108 108 "array.prototype.findlast": "^1.2.3", 109 109 "await-lock": "^2.2.2",
+1 -1
src/view/com/util/List.web.tsx
··· 468 468 } 469 469 } else { 470 470 if (intersectionTimeout.current) { 471 - clearTimeout(intersectionTimeout.current) 471 + clearTimeout(intersectionTimeout.current as NodeJS.Timeout) 472 472 intersectionTimeout.current = undefined 473 473 } 474 474 }
+14 -32
yarn.lock
··· 7523 7523 dependencies: 7524 7524 undici-types "~5.26.4" 7525 7525 7526 - "@types/node@^18.16.2": 7527 - version "18.17.6" 7528 - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.6.tgz#0296e9a30b22d2a8fcaa48d3c45afe51474ca55b" 7529 - integrity sha512-fGmT/P7z7ecA6bv/ia5DlaWCH4YeZvAQMNpUhrJjtAhOhZfoxS1VLUgU2pdk63efSjQaOJWdXMuAJsws+8I6dg== 7526 + "@types/node@^20.14.3": 7527 + version "20.17.6" 7528 + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.6.tgz#6e4073230c180d3579e8c60141f99efdf5df0081" 7529 + integrity sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ== 7530 + dependencies: 7531 + undici-types "~6.19.2" 7530 7532 7531 7533 "@types/parse-json@^4.0.0": 7532 7534 version "4.0.0" ··· 19968 19970 resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" 19969 19971 integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== 19970 19972 19971 - "string-width-cjs@npm:string-width@^4.2.0": 19972 - version "4.2.3" 19973 - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 19974 - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== 19975 - dependencies: 19976 - emoji-regex "^8.0.0" 19977 - is-fullwidth-code-point "^3.0.0" 19978 - strip-ansi "^6.0.1" 19979 - 19980 - string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: 19973 + "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: 19981 19974 version "4.2.3" 19982 19975 resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 19983 19976 integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== ··· 20086 20079 is-obj "^1.0.1" 20087 20080 is-regexp "^1.0.0" 20088 20081 20089 - "strip-ansi-cjs@npm:strip-ansi@^6.0.1": 20082 + "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: 20090 20083 version "6.0.1" 20091 20084 resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 20092 20085 integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== ··· 20100 20093 dependencies: 20101 20094 ansi-regex "^4.1.0" 20102 20095 20103 - strip-ansi@^6.0.0, strip-ansi@^6.0.1: 20104 - version "6.0.1" 20105 - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 20106 - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== 20107 - dependencies: 20108 - ansi-regex "^5.0.1" 20109 - 20110 20096 strip-ansi@^7.0.1: 20111 20097 version "7.1.0" 20112 20098 resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" ··· 20922 20908 version "5.26.5" 20923 20909 resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" 20924 20910 integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== 20911 + 20912 + undici-types@~6.19.2: 20913 + version "6.19.8" 20914 + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" 20915 + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== 20925 20916 20926 20917 undici@^5.28.2: 20927 20918 version "5.28.2" ··· 21835 21826 "@types/trusted-types" "^2.0.2" 21836 21827 workbox-core "6.6.1" 21837 21828 21838 - "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": 21829 + "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: 21839 21830 version "7.0.0" 21840 21831 resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 21841 21832 integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== ··· 21848 21839 version "6.2.0" 21849 21840 resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" 21850 21841 integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== 21851 - dependencies: 21852 - ansi-styles "^4.0.0" 21853 - string-width "^4.1.0" 21854 - strip-ansi "^6.0.0" 21855 - 21856 - wrap-ansi@^7.0.0: 21857 - version "7.0.0" 21858 - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 21859 - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== 21860 21842 dependencies: 21861 21843 ansi-styles "^4.0.0" 21862 21844 string-width "^4.1.0"