Skip to content

v2.26.0

Choose a tag to compare

@DZakh DZakh released this 29 Jul 14:38
36cd685

🆕 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=false environment variable.
  • Started using Postgres 17 for local development
  • Added ENVIO_INDEXER_PORT env var (Instead of deprecated METRICS_PORT)
  • Added ENVIO_PG_PASSWORD env var (Instead of deprecated ENVIO_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