Skip to content

Releases: encoredev/encore

v1.48.9 — Improved emitting of logs and traces

09 Jul 12:18
2e921ab
Compare
Choose a tag to compare

What's Changed

  • fix new clippy lints by @fredr in #1998
  • runtime/core: refactor streaming reporting by @fredr in #1948
  • handle logging in a separate thread, and pass logs via bounded channel by @fredr in #1999

Full Changelog: v1.48.8...v1.48.9

v1.48.8 — Improved CUE handling

09 Jul 11:51
ab68020
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.48.7...v1.48.8

v1.48.7 — Minor improvements and bugfixes

28 Jun 08:25
c326f21
Compare
Choose a tag to compare

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

23 Jun 13:16
a08ab3a
Compare
Choose a tag to compare

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

23 Jun 13:15
81f8985
Compare
Choose a tag to compare

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

11 Jun 08:57
5693c67
Compare
Choose a tag to compare

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

02 Jun 13:04
9b3667a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.48.2...v1.48.3

v1.48.2 — Minor improvements and bugfixes

02 Jun 12:38
46941ec
Compare
Choose a tag to compare

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

02 Jun 12:38
962f828
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.48.0...v1.48.1

v1.48.0 — Cookies in Encore.ts

27 May 15:30
06e25b1
Compare
Choose a tag to compare

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

Full Changelog: v1.47.3...v1.48.0