elysiajs / elysia-static

Plugin for Elysia for serving static folder
MIT License
12 stars 15 forks source link

Corrected readme example #2

Closed alpap closed 1 year ago

SaltyAom commented 1 year ago

Hello, and thanks for creating a pull request! But I'm afraid that this is intended, and the current README is correct.

Since Elysia 0.2 support an async plugin, Static Plugin 0.2 set the minimum peerDependency of Elysia to 0.2 by default.

This means that if you update to Elysia 0.2, you can use Static Plugin 0.2, if not then you can use Static Plugin 0.1 with Elysia 0.1.x

See this matrix here for the support version. Elysia version Static Plugin
0.1.x 0.1.0
>= 0.2.0 0.2.0

Feels free to elaborate further if this isn't clear. Will leave the PR open for 2-3 days to see if there are more errors, but if all clear, feel free to close the PR.

SaltyAom commented 1 year ago

Hi, seems like the issue has no further feedback, so I'm closing the thread.

If the issue still persists, feels free to re-open it with more information and feedback.