Skip to content

Commit 89da73b

Browse files
authored
Merge branch 'main' into main
2 parents b2b5a6a + 3c2548e commit 89da73b

32 files changed

+3139
-2229
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 🐛 Bug Report
2+
description: Report an issue that should be fixed
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for submitting a bug report. It helps make Elysia.JS better.
9+
10+
If you need help or support using Elysia.JS, and are not reporting a bug, please
11+
head over to Q&A discussions [Discussions](https://github.com/elysiajs/elysia/discussions/categories/q-a), where you can ask questions in the Q&A forum.
12+
13+
Make sure you are running the version of Elysia.JS and Bun.Sh
14+
The bug you are experiencing may already have been fixed.
15+
16+
Please try to include as much information as possible.
17+
18+
- type: input
19+
attributes:
20+
label: What version of Elysia is running?
21+
description: Copy the output of `Elysia --revision`
22+
- type: input
23+
attributes:
24+
label: What platform is your computer?
25+
description: |
26+
For MacOS and Linux: copy the output of `uname -mprs`
27+
For Windows: copy the output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in the PowerShell console
28+
- type: textarea
29+
attributes:
30+
label: What steps can reproduce the bug?
31+
description: Explain the bug and provide a code snippet that can reproduce it.
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: What is the expected behavior?
37+
description: If possible, please provide text instead of a screenshot.
38+
- type: textarea
39+
attributes:
40+
label: What do you see instead?
41+
description: If possible, please provide text instead of a screenshot.
42+
- type: textarea
43+
attributes:
44+
label: Additional information
45+
description: Is there anything else you think we should know?
46+
- type: input
47+
attributes:
48+
label: Have you try removing the `node_modules` and `bun.lockb` and try again yet?
49+
description: rm -rf node_modules && bun.lockb
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 🚀 Feature Request
2+
description: Suggest an idea, feature, or enhancement
3+
labels: [enhancement]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for submitting an idea. It helps make Elysia.JS better.
9+
10+
If you want to discuss Elysia.JS, or learn how others are using Elysia.JS, please
11+
head to our [Discord](https://discord.com/invite/y7kH46ZE) server, where you can chat among the community.
12+
- type: textarea
13+
attributes:
14+
label: What is the problem this feature would solve?
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: What is the feature you are proposing to solve the problem?
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: What alternatives have you considered?

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 📗 Documentation Issue
4+
url: https://github.com/elysiajs/documentation/issues/new/choose
5+
about: Head over to our Documentation repository!
6+
- name: 💬 Ask a Question
7+
url: https://discord.gg/eaFJ2KDJck
8+
about: Head over to our Discord!

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: './'
5+
schedule:
6+
interval: 'daily'
7+
8+
- package-ecosystem: 'github-actions'
9+
directory: './'
10+
schedule:
11+
interval: 'daily'

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup bun
1717
uses: oven-sh/setup-bun@v1
1818
with:
19-
bun-version: 1.1.12
19+
bun-version: latest
2020

2121
- name: Install packages
2222
run: bun install
@@ -25,4 +25,4 @@ jobs:
2525
run: bun run build
2626

2727
- name: Test
28-
run: bun run test
28+
run: bun run test

.github/workflows/publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
permissions:
12+
id-token: write
13+
14+
env:
15+
# Enable debug logging for actions
16+
ACTIONS_RUNNER_DEBUG: true
17+
18+
jobs:
19+
publish-npm:
20+
name: 'Publish: npm Registry'
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: 'Checkout'
24+
uses: actions/checkout@v4
25+
26+
- name: 'Setup Bun'
27+
uses: oven-sh/setup-bun@v1
28+
with:
29+
bun-version: latest
30+
registry-url: "https://registry.npmjs.org"
31+
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: '20.x'
35+
registry-url: 'https://registry.npmjs.org'
36+
37+
- name: Install packages
38+
run: bun install
39+
40+
- name: Build code
41+
run: bun run build
42+
43+
- name: Test
44+
run: bun run test
45+
46+
- name: 'Publish'
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
run: |
50+
npm publish --provenance --access=public

CHANGELOG.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
# 1.4.2 - 12 Oct 2025
2+
Bug fix:
3+
- [elysia#1466](https://github.com/elysiajs/elysia/issues/1466) / treaty2: unpack multiple SSE chunk
4+
5+
# 1.4.1 - 14 Sep 2025
6+
Bug fix:
7+
- inline object value / Elysia file cause type error
8+
- macro should not mark property as required
9+
10+
# 1.4.0 - 13 Sep 2025
11+
Improvement:
12+
- support Elysia 1.4
13+
14+
# 1.3.3 - 24 Aug 2025
15+
Feature:
16+
- treaty2: support type safe Server-Sent Events (SSE)
17+
- treaty2: add utility type `Treaty.Data`, `Treaty.Error` to extract data and error type from a route
18+
19+
Bug fix:
20+
- [elysia#823](https://github.com/elysiajs/elysia/issues/823) treaty2: not generating for dynamic params at root
21+
- treaty2: parse Date in object
22+
- treaty2: [#196](https://github.com/elysiajs/eden/issues/196) allow custom content-type
23+
24+
Change:
25+
- minimum Elysia version is set to 1.3.18
26+
27+
# 1.3.2 - 5 May 2025
28+
Bug fix:
29+
- Unwrap FormData
30+
31+
# 1.3.1 - 5 May 2025
32+
Bug fix:
33+
- [#193](https://github.com/elysiajs/eden/pull/193) t.Files() upload from server side #124
34+
- [#185](https://github.com/elysiajs/eden/pull/185) exclude null-ish values from query encoding by @ShuviSchwarze
35+
36+
# 1.3.0 - 5 May 2025
37+
Feature:
38+
- support Elysia 1.3
39+
40+
Breaking Change:
41+
- treaty2: drop the need for `.index()`
42+
43+
# 1.2.0 - 23 Dec 2024
44+
Feature:
45+
- support Elysia 1.2
46+
- Validation error inference
47+
48+
# 1.1.3 - 5 Sep 2024
49+
Feature:
50+
- add provenance publish
51+
152
# 1.1.2 - 25 Jul 2024
253
Feature:
354
- [#115](https://github.com/elysiajs/eden/pull/115) Stringify query params to allow the nested object
@@ -82,7 +133,7 @@ Bug fix:
82133
Feature:
83134
- support for elysia 1.0.2
84135

85-
# 1.0.0 - 16 Mar 2024
136+
# 1.0.0 - 16 Mar 2024
86137
Feature:
87138
- treaty2
88139

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const app = edenTreaty<App>('http://localhost:8080')
3636
const { data: pong } = app.index.get()
3737

3838
// data: 1895
39-
const { data: id } = client.id.1895.get()
39+
const { data: id } = app.id.1895.get()
4040

4141
// data: { id: 1895, name: 'Skadi' }
4242
const { data: nendoroid } = app.mirror.post({

0 commit comments

Comments
 (0)