Feature:
- add provenance publish
Feature:
- #115 Stringify query params to allow the nested object
Feature:
- support conditional value or stream from generator function
Feature:
- support Elysia 1.1
- support response streaming with type inference
Bug fix:
- #105 Unify parsing into a util and add support for Date inside object
- #100 Duplicated values when passing uppercase values for headers
Feature:
- treaty2: add support for multipart/form-data
- fetch: add support for multipart/form-data
Bug fix:
- #87 serialization/deserialization problems with null, arrays and Date on websocket messages #87
- #90 Auto convert request body to FormData when needed
Improvement:
- #80 add package.json to export field
Bug fix:
- #84 treaty2: adjusts the creation of the query string
- #76 treaty2: keep requestInit for redirect
- #73 treaty2: file get sent as json
Improvement:
- treaty2: add dedicated
processHeaders
function - treaty2: simplify some headers workflow
Change:
- treaty2: using case-insensitive headers
Bug fix:
- treaty2: skip content-type detection if provided
Change:
- treaty2:
onRequest
execute before body serialization
Bug fix:
- #72 treaty2: not mutate original paths array
Bug fix:
- treaty2: default onResponse to null and mutate when need
Change:
- treaty2: use null as default error value instead of undefined
Feature:
treaty2: add keepDomain
option
Change:
- treaty2: use null as default data value instead of undefined
Fix:
- treaty2: aligned schema with elysia/ws
- treaty: use uppercase http verbs
Bug fix:
- Using regex for date pattern matching
Feature:
- support for elysia 1.0.2
Feature:
- treaty2
Bug fix:
- treaty1: fix [object Object] when body is empty
Bug fix:
- #41 params now optional for paramless routes in edenFetch
- #39 transform entire object returned by execute
Feature:
- Support Elysia 0.8
Bug fix:
- treaty: #36 FileArray send [ object Promise ] instead binary
- treaty: #34 Add a way to get the unresolved Response for corner case support
Feature:
- treaty: add 2nd optional parameter for sending query, header and fetch
Bug fix:
- treaty: send array and primitive value #33
- treaty: fix filename in FormData #26
- remove 'bun-types' from treaty
Bug fix:
- treaty: handle
File[]
Feature:
- #16 add transform
Bug fix:
- using uppercase method name because of Cloudflare proxy
Bug fix:
- resolve 'FileList' type
- using rimraf to clear previous build
- fix edenTreaty type is undefined when using moduleResolution: bundler
Bug fix:
- type panic when
Definitions
is provided
Improvement:
- update to Elysia 0.7.0
Change:
- remove Elysia Fn
Bug fix:
- #15 fetch: method inference on route with different methods
- #17 treaty: api.get() maps to request GET /ge instead of /
Change:
- use tsup to bundle
Feature:
- add query to Eden Fetch thanks to #10
Feature:
- add the
$fetch
parameters to Eden Treaty - add the following to response:
- status - indicating status code
- raw - Response
- headers - Response's headers
Improvement:
- rewrite Eden type to New Eden
- LoC reduced by ~35%
- Faster type inference ~26%
Feature:
- add support for Elysia 0.6.7
Feature:
- add support for Elysia 0.6
Improvement:
- treaty: Add custom fetch implementation for treaty
Improvement:
- treaty: Automatic unwrap
Promise
response
Bug fix:
- treaty: query schema is missing
Improvement:
- Awaited response data
Improvement:
- treaty: add support for Bun file uploading
Improvement:
- add types declaration to import map
Bug fix:
- add tsc to generate .d.ts
Bug fix:
- treaty: type not found
- treaty: query not infers type
Improvement:
- Add support for Elysia 0.5
Improvement:
- Sometime query isn't required
Improvement:
- Add support for Elysia 0.4
Improvement:
- File upload support for Eden Treaty
Improvement:
- Path parameter inference
Improvement:
- Add support for Elysia 0.3.0
Breaking Change:
- Eden Fetch error handling use object destructuring, migration as same as Eden Treaty (0.3.0-rc.1)
Improvement:
- Update @sinclair/typebox to 0.25.24
Breaking Change:
- Eden Treaty error handling use object destructuring
- To migrate:
// to const anya = await client.products.nendoroid['1902'].put({ name: 'Anya Forger' }) // From const { data: anya, error } = await client.products.nendoroid['1902'].put({ name: 'Anya Forger' })
Improvement:
- Add support for Elysia 0.3.0-rc.0
Improvement:
- Separate Eden type
- Rewrite Eden Treaty
Improvement:
- Add support for Elysia 0.3.0-beta.5
Improvement:
- Optimize type inference
Improvement:
- Add TypeBox as peer dependencies
- Minimum support for Elysia >= 0.3.0-beta.3
Fix:
- Eden doesn't transform path reference
Feature:
- Elysia Fn
- Error type inference
Breaking Change:
- Error type inference
Improvement:
- Add params name for warning instead of
$params
- Add warning to install Elysia before using Eden
Fix:
- Add support for Elysia WS which support Elysia 0.2.0-rc.1
Fix:
- Resolve Elysia 0.2.0-rc.1 type
Improvement:
- Set minimum Elysia version to 0.2.0-rc.1
Improvement:
- Handle application/json with custom encoding
Change:
- It's now required to specified specific version to use elysia
Improvement:
- Add
$params
to indicate any string params
Bug fix:
- Sometime Eden doesn't infer returned type
Improvement:
- Auto switch between
ws
andwss
Breaking Change:
- Change HTTP verb to lowercase
Feature:
- Support multiple path parameters
Bug fix:
- Required query in
subscribe
- Make
unknown
type optional - Add support for non-object fetch
Feature:
- Experimental support for Web Socket
Feature:
- Auto convert number, boolean on client
Feature:
- Using
vite
for bundling
Bug fix:
- Map error to
.catch
Feature:
- Add camelCase transformation