Releases: encoredev/encore
Releases · encoredev/encore
v1.48.9 — Improved emitting of logs and traces
v1.48.8 — Improved CUE handling
v1.48.7 — Minor improvements and bugfixes
What's Changed
- add to/from sql for postgres type name by @fredr in #1981
- Avoid fetching secrets when rendering dashboard migration status by @ekerfelt in #1983
Full Changelog: v1.48.6...v1.48.7
v1.48.6 — Bugfix and improvement in tsparser
What's Changed
- tsparser: resolve conditional exports in the correct order by @fredr in #1973
- tsparser: usage of default exported resources by @fredr in #1970
Full Changelog: v1.48.5...v1.48.6
v1.48.5 — Improvements
What's Changed
- dockerbuild: better error message for windows junctions by @fredr in #1968
- appfile: add function that fails if app file not exist by @fredr in #1969
- tsparser: handle default type params by @fredr in #1958
- daemon: add env var for the mcp sse listen address by @fredr in #1971
- docs: extra information about
encore exec
for encore go by @bamorim in #1975 - Allow overriding public object storage listener address by @ekerfelt in #1976
- Add support for External Databases by @ekerfelt in #1974
- Detect duplicate migrations in metadata migrator by @ekerfelt in #1977
New Contributors
Full Changelog: v1.48.4...v1.48.5
v1.48.4 — Minor improvements
What's Changed
- show the correct install command in error message by @fredr in #1955
- runtimes/core/sqldb: add cidr and inet postgres types by @fredr in #1957
- runtimes/js: remove bigint panic and return an error instead by @fredr in #1960
- db proxy: better logging by @fredr in #1965
Full Changelog: v1.48.3...v1.48.4
v1.48.3 — Minor improvements and bugfixes
What's Changed
- Allow cross site credentials for leap clients by @ekerfelt in #1947
- Update README.md by @marcuskohlberg in #1951
- local object storage: set options headers for cors by @fredr in #1953
- fix: handle optional fields correctly in service to service calls by @fredr in #1954
Full Changelog: v1.48.2...v1.48.3
v1.48.2 — Minor improvements and bugfixes
What's Changed
- cli/daemon/objects: use http.ServeContent for handling range requests by @eandre in #1945
- Add Accept-Ranges header to the public bucket server by @ekerfelt in #1946
Full Changelog: v1.48.1...v1.48.2
v1.48.1 — Minor improvements and bugfixes
v1.48.0 — Cookies in Encore.ts
Cookies in Encore.ts
Encore.ts now supports type-safe cookies for your API endpoints. This allows you to easily work with cookies in requests, responses, and auth handlers.
Basic Usage
Define a cookie in a request:
interface Params {
sessionId: Cookie<"sessionId">; // Implicitly string type
userId: Cookie<number, "userId">; // Explicitly typed as number
}
Set a cookie in a response:
return {
sessionId: {
value: "abc123",
httpOnly: true,
secure: true,
sameSite: "Strict"
}
};
Access cookies in an auth handler:
const authHandler = auth<{ sessionId: Cookie<"sessionId"> }, User>(
async ({ sessionId }) => validateSession(sessionId.value)
);
For cross-site requests, use { requestInit: { credentials: "include" } }
when initializing the generated client.
Read more about cookies here
What's Changed
- Add "HEAD" for the public bucket server by @ekerfelt in #1936
- core/gateway: set x-forwarded headers by @fredr in #1927
- Add leap as a target to encore gen client by @ekerfelt in #1938
- runtimes/js: Add support for cookies by @fredr in #1917
Full Changelog: v1.47.3...v1.48.0