diff --git a/Dockerfile b/Dockerfile index f64effa..d96d91e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ COPY . . RUN bun test RUN bun run build -FROM oven/bun:canary-distroless +FROM gcr.io/distroless/nodejs20-debian12:nonroot WORKDIR /usr/src/app COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.3 /lambda-adapter /opt/extensions/lambda-adapter diff --git a/bun.lockb b/bun.lockb index 55490f5..bc09758 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 089f191..4f758be 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "dependencies": { "next": "canary", "react": "canary", - "react-dom": "canary", - "sharp": "^0.33.3" + "react-dom": "canary" }, "devDependencies": { "@biomejs/biome": "^1.7.1", @@ -21,12 +20,15 @@ "@heroicons/react": "^2.1.3", "@testing-library/react": "^15.0.4", "@types/bun": "^1.1.0", - "@types/react": "^18.2.79", - "@types/react-dom": "^18.2.25", + "@types/react": "^18.3.0", + "@types/react-dom": "^18.3.0", "daisyui": "^4.10.2", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", - "typescript": "^5.4.5" + "typescript": "beta" }, - "trustedDependencies": ["@biomejs/biome", "sharp"] + "trustedDependencies": ["@biomejs/biome", "sharp"], + "optionalDependencies": { + "sharp": "^0.33.3" + } } diff --git a/yarn.lock b/yarn.lock index 9090703..a25110f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1,6 +1,6 @@ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 -# bun ./bun.lockb --hash: 39D0536D68B52AB3-20e553d72ac09b0c-A0CA45DF8B243959-623398ced37c107c +# bun ./bun.lockb --hash: 527CF8242EBFE487-e6da3494a913dba9-AB1EFA66670D22F4-01d0217d4b7acbe5 "@alloc/quick-lru@^5.2.0": @@ -268,55 +268,55 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@next/env@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/env/-/env-14.3.0-canary.23.tgz" - integrity sha512-FK6OjxO0wcC0uI1BTkVJbH3oI4ibXMr4NWBoIFrAsZoFXqIqeGlL8DGGNSN3Zxb9tnV9kSOWMsXWWg4YhesPfA== - -"@next/swc-darwin-arm64@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.3.0-canary.23.tgz" - integrity sha512-as/ogx7E6UefVcjBmPDpONoDnPgKKg4jBFrxFuw2r3anmEfe3Y/5fTor0mI7Bnsup5Yf4I2gSQ3imqdhzWb97w== - -"@next/swc-darwin-x64@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.3.0-canary.23.tgz" - integrity sha512-o94Hfxa8NlEJxFl2Se+EErL0o9SKtifSGOqnYpCvLWcWgSWWqnufAUm+o3/9c3LCVpnA84fg5Hsu1VO3a75kyw== - -"@next/swc-linux-arm64-gnu@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.3.0-canary.23.tgz" - integrity sha512-JZa6Fy384LvpG7+0WJOTl1+oKLflyEPa7HeUHpYHo88LKEm24noKH4y86OLFLE0bwlHUUIzG+FEK/oB5uixoRw== - -"@next/swc-linux-arm64-musl@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.3.0-canary.23.tgz" - integrity sha512-OYuEPfBgywhzMQqNKh3i0uiDZG3xH1mmtzQ0rwcU+Ye316FmgYt6slFRGfrxU+vTTGNd/PK0CC6IMjOvn+3sUw== - -"@next/swc-linux-x64-gnu@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.3.0-canary.23.tgz" - integrity sha512-ACoG294yhERYI0c5niVwLcrhilzca+bDt+oqfKwBuIguUiNz/SGBWFP9aRBhZ4GUKmtJmC/+SLOso2Ho7CZugA== - -"@next/swc-linux-x64-musl@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.3.0-canary.23.tgz" - integrity sha512-tJvxwHXjp9TD32D5f2JK+kEQnZsfzKKUqTCDCPOMASqK/bdLX4IZSLn0dAdu9sWdXhhSQeovWlV5IAtAaTBccg== - -"@next/swc-win32-arm64-msvc@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.3.0-canary.23.tgz" - integrity sha512-ReQTq3n25edMkRqW/gXURrpMHHw6vlrGcbQ+01eLJImInpgzgDULqE9HCrCi6KO/fGfsf68dBxWJEfEw7a5l9A== - -"@next/swc-win32-ia32-msvc@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.3.0-canary.23.tgz" - integrity sha512-IFWk0drS3s7UMprNvdyTRSj2QDD1h9XIlLb2iehPXX+J5rub8wfYTzBCj/0OJeEjTkPtj6FU+xc100GhN8p2HA== - -"@next/swc-win32-x64-msvc@14.3.0-canary.23": - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.3.0-canary.23.tgz" - integrity sha512-ENDVEudaX8HV8FbVZd3kk2bTbRSyu4QDz/HpKiJV5xxLRElVpQ/AtaWTNyIE4bZCQbeucuIPaSs2cM8/W+ka1w== +"@next/env@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/env/-/env-14.3.0-canary.24.tgz" + integrity sha512-gpcR9mTMYTE2JePKIKQrGOodrTDiDgCfEnb5+jvt9UcWA6c73npM2BRa2i6Mbbgsr8osRJ1p9cP9pcwISHmrRw== + +"@next/swc-darwin-arm64@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.3.0-canary.24.tgz" + integrity sha512-mwDXQxPyQTd5EixQQEIW6WO7mD0rIfy3aVYaYZs8b2REOhRuiruxLhgrI0VC41rtT4annt1XKX1fXdeprB62UQ== + +"@next/swc-darwin-x64@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.3.0-canary.24.tgz" + integrity sha512-0XRjflqojQvH6vnF+o8cbERaQqqiJTdh3Oc0GSAcuivO7WnvOUE91q0jyt0YCZ0DDowOFAAJp3jkH64MVfX0tA== + +"@next/swc-linux-arm64-gnu@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.3.0-canary.24.tgz" + integrity sha512-rRk/2WmMxCemG5CiO/nCeu624d/TcVARWHb45NxcR+PueB8ZYW5/50oY8azGJSWhjIBKbQRVRcWQGiDiX2WYhg== + +"@next/swc-linux-arm64-musl@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.3.0-canary.24.tgz" + integrity sha512-JxWAXeO1W2LiQ8U+b6rPHCrrTYdI2dhhipccNcHJgiW1E7eZF0H/L0CCE64UAIZeRqJ9IqUKQWroY1deTczsxA== + +"@next/swc-linux-x64-gnu@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.3.0-canary.24.tgz" + integrity sha512-6ThlulGyhrNQKlMeSItdXC7hDBL9LD3+Xwz5fWOWPo+LzL7FbWr2H2k8hC2JE9gS06aP9pR1XobAe6y2UmeXOw== + +"@next/swc-linux-x64-musl@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.3.0-canary.24.tgz" + integrity sha512-qOLsOyehDyiVm8e4OzuGDV9dBZYU7+z4BG/ihHeTWz0Fy1Z/LpYnX6L5sGQMp6t7uHEzBEaXyYSgSj7dVCyHoA== + +"@next/swc-win32-arm64-msvc@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.3.0-canary.24.tgz" + integrity sha512-lCYeXABOTbDB9agIRIvfLwAkJy9szV3N2mE3+6dlqfnrWBMPT3DaDK20sr2WxP/BItadZX9mDvgHuPfDpXMkAw== + +"@next/swc-win32-ia32-msvc@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.3.0-canary.24.tgz" + integrity sha512-Wc0I7r4BvvEba0fTx+HduXs0UnMmavm1BCGlF97NtUzGfaRGelnNQ7n5Q860yqc2demOvxyFyzHgXuY1Fsnwdg== + +"@next/swc-win32-x64-msvc@14.3.0-canary.24": + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.3.0-canary.24.tgz" + integrity sha512-bfKTKQ1oVML+LYrSrAD6U4NDrChEQ9GohLcAf0gV7wLeuzJQ8NPc9DIXfSLX1enymn7dXf6SWTlqF8egK9PhZg== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -405,18 +405,18 @@ resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz" integrity sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q== -"@types/react@*", "@types/react@^18.2.79": - version "18.2.79" - resolved "https://registry.npmjs.org/@types/react/-/react-18.2.79.tgz" - integrity sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w== +"@types/react@*", "@types/react@^18.3.0": + version "18.3.0" + resolved "https://registry.npmjs.org/@types/react/-/react-18.3.0.tgz" + integrity sha512-DiUcKjzE6soLyln8NNZmyhcQjVv+WsUIFSqetMN0p8927OztKT4VTfFTqsbAi5oAGIcgOmOajlfBqyptDDjZRw== dependencies: "@types/prop-types" "*" csstype "^3.0.2" -"@types/react-dom@^18.0.0", "@types/react-dom@^18.2.25": - version "18.2.25" - resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.25.tgz" - integrity sha512-o/V48vf4MQh7juIKZU2QGDfli6p1+OOi5oXx36Hffpc9adsHeXjVp8rHuPkjd8VT8sOJ2Zp05HR7CdpGTIUFUA== +"@types/react-dom@^18.0.0", "@types/react-dom@^18.3.0": + version "18.3.0" + resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz" + integrity sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg== dependencies: "@types/react" "*" @@ -950,11 +950,11 @@ nanoid@^3.3.6, nanoid@^3.3.7: integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== next@canary: - version "14.3.0-canary.23" - resolved "https://registry.npmjs.org/next/-/next-14.3.0-canary.23.tgz" - integrity sha512-X8OuGb1U3W6+8RYarDvi1tl3ahlNRcstX4HUlDOWbf2vmgO6liP+2PUHU9rXVRryDigpn51Ve29aKkr12j1PmQ== + version "14.3.0-canary.24" + resolved "https://registry.npmjs.org/next/-/next-14.3.0-canary.24.tgz" + integrity sha512-nhdit96fEhwhzJXOsBOec/I0viTgwizF/erAvdIEipIzQund+F8bH1xjk3IWHPOrwDPZzj7LdNLCTs2nKzLd4Q== dependencies: - "@next/env" "14.3.0-canary.23" + "@next/env" "14.3.0-canary.24" "@swc/helpers" "0.5.10" busboy "1.6.0" caniuse-lite "^1.0.30001579" @@ -962,15 +962,16 @@ next@canary: postcss "8.4.31" styled-jsx "5.1.1" optionalDependencies: - "@next/swc-darwin-arm64" "14.3.0-canary.23" - "@next/swc-darwin-x64" "14.3.0-canary.23" - "@next/swc-linux-arm64-gnu" "14.3.0-canary.23" - "@next/swc-linux-arm64-musl" "14.3.0-canary.23" - "@next/swc-linux-x64-gnu" "14.3.0-canary.23" - "@next/swc-linux-x64-musl" "14.3.0-canary.23" - "@next/swc-win32-arm64-msvc" "14.3.0-canary.23" - "@next/swc-win32-ia32-msvc" "14.3.0-canary.23" - "@next/swc-win32-x64-msvc" "14.3.0-canary.23" + sharp "^0.33.3" + "@next/swc-darwin-arm64" "14.3.0-canary.24" + "@next/swc-darwin-x64" "14.3.0-canary.24" + "@next/swc-linux-arm64-gnu" "14.3.0-canary.24" + "@next/swc-linux-arm64-musl" "14.3.0-canary.24" + "@next/swc-linux-x64-gnu" "14.3.0-canary.24" + "@next/swc-linux-x64-musl" "14.3.0-canary.24" + "@next/swc-win32-arm64-msvc" "14.3.0-canary.24" + "@next/swc-win32-ia32-msvc" "14.3.0-canary.24" + "@next/swc-win32-x64-msvc" "14.3.0-canary.24" normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" @@ -1363,10 +1364,10 @@ tslib@^2.4.0: resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== -typescript@^5.4.5: - version "5.4.5" - resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz" - integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== +typescript@beta: + version "5.5.0-beta" + resolved "https://registry.npmjs.org/typescript/-/typescript-5.5.0-beta.tgz" + integrity sha512-FRg3e/aQg3olEG3ff8YjHOERsO4IM0m4qGrsE4UMvILaq4TdDZ6gQX4+2Rq9SjTpfSe/ebwiHcsjm/7FfWWQ6Q== undici-types@~5.26.4: version "5.26.5"