-
-
Notifications
You must be signed in to change notification settings - Fork 505
patch 1.4.19 #1610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
patch 1.4.19 #1610
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3143445
:broom: chore: merge main
SaltyAom c95af80
:broom: chore: setImmediate fallback
SaltyAom 97e8dee
:wrench: fix: #1609 calling afterResponse with aot: false
SaltyAom 80bb84d
:wrench: fix: #1609 calling afterResponse with aot: false
SaltyAom e0b0534
:wrench: fix: #1597 parse, safeParse
SaltyAom 2d30e61
:wrench: fix: #1597 parse, safeParse
SaltyAom 620d96b
:wrench: fix: #1596 handle context pass to function with sub context
SaltyAom daaea8b
:wrench: fix: handle group with empty prefix
SaltyAom b0be99c
:wrench: fix: cf issue
SaltyAom 3a08c2d
:wrench: fix: cf test case
SaltyAom d0cea55
:wrench: fix: reject invalid cookie signature when using cookie rotation
SaltyAom aea3b06
:wrench: fix: #1546 override group prefix type
SaltyAom 2a86a8b
:wrench: fix: save lazy compilation of Elysia.fetch
SaltyAom 7f2bdd6
:wrench: fix: save lazy compilation of Elysia.fetch
SaltyAom 1e0a5d6
:wrench: fix: override read-only property
SaltyAom 90b7940
:wrench: fix: re-compile on promise module
SaltyAom 9210318
:wrench: fix: misc possible bugs
SaltyAom 3334797
:broom: chore: use oidc publish
SaltyAom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,11 @@ | ||
| import { Elysia, t } from '../src' | ||
| import * as z from 'zod' | ||
| import { post, req } from '../test/utils' | ||
| import { Elysia } from '../src' | ||
|
|
||
| const app = new Elysia({ | ||
| cookie: { | ||
| domain: "\\` + console.log(c.q='pwn2') }) //" | ||
| } | ||
| }) | ||
| .get('/', ({ cookie: { session } }) => 'awd') | ||
|
|
||
| console.log(app.routes[0].compile().toString()) | ||
| // This uses aot: true by default in 1.4 (broken on Bun) | ||
| const app = new Elysia({ systemRouter: true }) | ||
| .get("/", "Hello Elysia") | ||
| .get("/json", () => ({ message: "Hello World", timestamp: Date.now() })) | ||
|
|
||
| const root = await app.handle( | ||
| new Request('http://localhost/', { | ||
| headers: { | ||
| Cookie: 'session=1234' | ||
| } | ||
| }) | ||
| ) | ||
|
|
||
| console.log(await root.text()) | ||
| Bun.serve({ | ||
| port: 3000, | ||
| fetch: app.fetch | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.