v2.26.0
🆕 Built-in Cache for Effect Calls
import { experimental_createEffect, S } from "envio";
export const getMetadata = experimental_createEffect(
{
name: "getMetadata",
input: S.string,
output: {
description: S.string,
value: S.bigint,
},
cache: true, // Simply set cache to true
},
async ({ input, context }) => {}
})Read more in the docs, learn how to persist the cache on reruns, and share it with Hosted Service (alpha).
🧹 Other changes
- Now it's possible to disable Hasura integration via
ENVIO_HASURA=falseenvironment variable. - Started using Postgres 17 for local development
- Added
ENVIO_INDEXER_PORTenv var (Instead of deprecatedMETRICS_PORT) - Added
ENVIO_PG_PASSWORDenv var (Instead of deprecatedENVIO_POSTGRES_PASSWORD) - Removed uninformative text from TUI and included the GraphQL endpoint instead.
- Fixed indexers with non-public schema
Full Changelog: v2.25.3...v2.26.0