Skip to content

qubit-macros-v1.0

@andogq andogq tagged this 20 Aug 13:32
# Version Updates

Merging this PR will release new versions of the following packages
based on your change files.




# qubit-macros

## [1.0.0-beta.0]
- 91b3375 Generate better spans for errors in the `handler` macro,
including UI tests to verify error
    messages.
- 3287e96 correct invalid generated handler ident when using `name`
attribute.
- cd128d6 No longer require handlers to be `async`. The macro will
automatically convert all handlers into
    async functions upon expansion.
- bf34c4c Expose `ts-rs::TS` functionality via `ts` attribute macro. To
migrate, replace any instances of
`#[derive(ts_rs::TS)]` with `#[qubit::ts]`, and remove `ts-rs` from
package dependencies.
- c4cd986 Rewrite `handler` macro to be easier to maintain and test.
This isn't inherently a breaking change,
however there's no guarentee that the previous implementation wasn't
broken or inconsistent in some
    way.
- c67ced6 Update `ts-rs` to `11.0.0`



# qubit

## [1.0.0-beta.0]
- 3287e96 correct invalid generated handler ident when using `name`
attribute.
- bf34c4c Expose `ts-rs::TS` functionality via `ts` attribute macro. To
migrate, replace any instances of
`#[derive(ts_rs::TS)]` with `#[qubit::ts]`, and remove `ts-rs` from
package dependencies.
- c4cd986 Rewrite `handler` macro to be easier to maintain and test.
This isn't inherently a breaking change,
however there's no guarentee that the previous implementation wasn't
broken or inconsistent in some
    way.
- 0b46323 **(BREAKING)** Refactor router to separate RPC functionality
from type generation functionality.
Now, use `router.as_codegen().write_type(path, TypeScript::new())` to
generate types, and
    `router.as_rpc(ctx).into_service()` to build the service.
- c67ced6 Update `ts-rs` to `11.0.0`
### Dependencies

- Upgraded to `qubit-macros@1.0.0-beta.0`
Assets 2
Loading