Skip to content

Release v0.6.0: Breaking Changes - RouteMeta type restructured

Choose a tag to compare

@liorcodev liorcodev released this 25 Feb 07:04
· 11 commits to main since this release

[0.6.0] - 2026-02-25

Breaking Changes

  • RouteMeta type restructured - The docs metadata fields (description, tags,
    deprecated, auth, roles) must now be nested under a docs sub-object. The previous flat
    shape was inconsistent with how the HTML generator read the metadata, meaning those fields were
    silently ignored in the generated documentation.

    Before (broken - fields were silently ignored):

    t.procedure.meta({
      name: 'Get User',
      description: 'Fetch a user by ID', // ❌ never rendered
      tags: ['Users'], // ❌ never rendered
      auth: true // ❌ never rendered
    });

    After (correct):

    t.procedure.meta({
      name: 'Get User',
      docs: {
        description: 'Fetch a user by ID', // ✅
        tags: ['Users'], // ✅
        auth: true // ✅
      }
    });

    name remains at the top level of RouteMeta. All other documentation fields move under docs.