Skip to content

Commit b0f63e1

Browse files
authored
Publish New Versions (#98)
# 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`
2 parents 0ab1436 + be40373 commit b0f63e1

11 files changed

Lines changed: 1305 additions & 779 deletions

File tree

.changes/pre.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
22
"tag": "beta",
3-
"changes": []
3+
"changes": [
4+
".changes/better-handler-macro-errors.md",
5+
".changes/handler-rename-fix.md",
6+
".changes/loosen-async-requirement.md",
7+
".changes/re-export-ts-rs.md",
8+
".changes/rewrite-macro.md",
9+
".changes/router-refactor.md",
10+
".changes/update-ts-rs.md"
11+
]
412
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## \[1.0.0-beta.0]
4+
5+
- [`3287e96`](https://github.com/andogq/qubit/commit/3287e96175ef8a58afe95645245a13609ab4facc) correct invalid generated handler ident when using `name` attribute.
6+
- [`bf34c4c`](https://github.com/andogq/qubit/commit/bf34c4c7f99edf8d0fc7d6d9c0347ff95b7e488d) Expose `ts-rs::TS` functionality via `ts` attribute macro. To migrate, replace any instances of
7+
`#[derive(ts_rs::TS)]` with `#[qubit::ts]`, and remove `ts-rs` from package dependencies.
8+
- [`c4cd986`](https://github.com/andogq/qubit/commit/c4cd986bbfca64299e1a028726cf55a25f10c9fb) Rewrite `handler` macro to be easier to maintain and test. This isn't inherently a breaking change,
9+
however there's no guarentee that the previous implementation wasn't broken or inconsistent in some
10+
way.
11+
- [`0b46323`](https://github.com/andogq/qubit/commit/0b46323c68a54a2418b185ddfd573921e2a64587) **(BREAKING)** Refactor router to separate RPC functionality from type generation functionality.
12+
Now, use `router.as_codegen().write_type(path, TypeScript::new())` to generate types, and
13+
`router.as_rpc(ctx).into_service()` to build the service.
14+
- [`c67ced6`](https://github.com/andogq/qubit/commit/c67ced6f572065032510557feb45225f9e925648) Update `ts-rs` to `11.0.0`
15+
16+
### Dependencies
17+
18+
- Upgraded to `qubit-macros@1.0.0-beta.0`
19+
320
## \[0.10.3]
421

522
- [`a5f1638`](https://github.com/andogq/qubit/commit/a5f1638e4a21c9f5fd4e7d1dfa740f5522753e99) Update Axum to 0.8, and other dependencies (#94, thanks @epatters).

0 commit comments

Comments
 (0)