trpc

🧙‍♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.

MIT License

Downloads
7.4M
Stars
32.7K
Committers
405

Bot releases are visible (Hide)

trpc - v9.25.1

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.25.0...v9.25.1

trpc - v9.25.0

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.24.0...v9.25.0

trpc - v9.24.0

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.6...v9.24.0

trpc - v9.23.6

Published by KATT over 2 years ago

What's Changed

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.5...v9.23.6

trpc - v9.23.5

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.4...v9.23.5

trpc - v9.23.4

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.3...v9.23.4

trpc - v9.23.3

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.2...v9.23.3

trpc - v9.23.2

Published by KATT over 2 years ago

What's Changed

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.1...v9.23.2

trpc - v9.23.1

Published by KATT over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.23.0...v9.23.1

trpc - v9.23.0

Published by KATT over 2 years ago

What's Changed

Features

Patches

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.22.0...v9.23.0

trpc - v9.22.0

Published by KATT over 2 years ago

What's Changed

✨ Route metadata

feat(server): route metadata by @LouisHaftmann in https://github.com/trpc/trpc/pull/1751

Docs

https://trpc.io/docs/metadata

Example

interface Context {
  // ...
}
interface Meta {
  data: string;
}

export const appRouter = trpc
  .router<
    Context,
    /* <✨✨✨> */
    Meta
    /* </✨✨✨> */
  >()
  .query('query', {
    /* <✨✨✨> */
    meta: {
      data: 'foo',
    },
    /* </✨✨✨> */
    async resolve({ input }) {
      return { input };
    },
  })

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.21.0...v9.22.0

trpc - v9.21.0

Published by KATT over 2 years ago

What's Changed

New features

carbon (74)

Patches

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.20.3...v9.21.0

trpc - v9.20.3

Published by KATT over 2 years ago

What's Changed

Thanks, @timcole for reporting and making repro!

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.20.2...v9.20.3

trpc - v9.20.2

Published by KATT over 2 years ago

What's Changed

Thanks, @TkDodo & @sachinraja for the help! ❤️

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.20.1...v9.20.2

trpc - v9.20.1

Published by KATT over 2 years ago

What's Changed

  • Fix a bug where a badly formatted WebSockets-message can crash a server, by @KATT in #1578

Thanks, @jlalmes for reporting!

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.20.0...v9.20.1

trpc - v9.20.0

Published by KATT over 2 years ago

  • @trpc/react Improved helpers for infinite queries (#1530 - closes #1358)
  • Replace deprecated String.prototype.substr() #1544

Thanks, @BrockHerion & @CommanderRoot! 🎉

New Contributors

Full Changelog: https://github.com/trpc/trpc/compare/v9.19.0...v9.20.0

trpc -

Published by KATT over 2 years ago

  • Fastify adapter added by @skarab42 in #1511 🔥

Thanks @sachinraja for help with review!

trpc -

Published by KATT over 2 years ago

  • add maxBatchSize on http batch options (#1468) closes #506

thanks @darioielardi!

trpc -

Published by KATT almost 3 years ago

  • Make invalidateQueries() align better with react-query (#1386)

Thanks to @MarcGuiselin for highlighting and reviewing!

trpc -

Published by KATT almost 3 years ago

  • remove CACHE_KEY_* suffixes in react-query cache (#1313)
  • add setQueryData callback (#1319)

If you are manually reading or writing to the raw react-query client's cache (trpc.useContext().queryClient) cache, you might want to double-check your logic still works as intended after #1313