Skip to content

Commit

Permalink
🎉 release: 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed May 15, 2023
1 parent 4d1a2ec commit f7c72bd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,47 @@
# 0.5.0 - 15 May 2023
Improvement:
- Add CommonJS support for running Elysia with Node adapter
- Remove manual fragment mapping to speed up path extraction
- Inline validator in `composeHandler` to improve performance
- Use one time context assignment
- Add support for lazy context injection via Static Code Analysis
- Ensure response non nullability
- Add unioned body validator check
- Set default object handler to inherits
- Using `constructor.name` mapping instead of `instanceof` to improve speed
- Add dedicated error constructor to improve performance
- Conditional literal fn for checking onRequest iteration
- improve WebSocket type

Bug fix:
- Possible

Breaking Change:
- Rename `innerHandle` to `fetch`
- to migrate: rename `.innerHandle` to `fetch`
- Rename `.setModel` to `.model`
- to migrate: rename `setModel` to `model`
- Remove `hook.schema` to `hook`
- to migrate: remove schema and curly brace `schema.type`:
```ts
// from
app.post('/', ({ body }) => body, {
schema: {
body: t.Object({
username: t.String()
})
}
})

// to
app.post('/', ({ body }) => body, {
body: t.Object({
username: t.String()
})
})
```
- remove `mapPathnameRegex` (internal)

# 0.5.0-beta.8 - 15 May 2023
Bug fix:
- it recompile on async
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "elysia",
"description": "Fast, and friendly Bun web framework",
"version": "0.5.0-beta.8",
"version": "0.5.0",
"author": {
"name": "saltyAom",
"url": "https://github.com/SaltyAom",
Expand Down

0 comments on commit f7c72bd

Please sign in to comment.