Commit Graph
201 Commits
Author SHA1 Message Date
escritorio-gustavo dd32308cb5 Add support for #[serde(rename_all_fields = "...")] attribute (#225)
* Add support for #[serde(rename_all_fields = ...)] attribute
* Change VariantAttr constructor
* Document the new attribute
* Update CHANGELOG.md
* Update tests
* Run cargo +nightly fmt
2024-02-08 17:12:16 -03:00
Gustavo db6af98bbd Merge remote-tracking branch 'refs/remotes/origin/support_untagged_variant' 2024-02-08 14:17:43 -03:00
escritorio-gustavo 9ace87fcbd Merge branch 'main' into support_untagged_variant 2024-02-08 14:18:18 -03:00
Gustavo b358ffa0c7 Parse #[ts(untagged)] on enum variants 2024-02-08 14:16:47 -03:00
Gustavo 63c889fc1a Run cargo +nightly fmt 2024-02-08 14:15:35 -03:00
Gustavo 61030c27b0 Implement #[ts(untagged)] #[ts(tag = ...)] and #[ts(tag = ..., content = ...)] 2024-02-08 10:42:59 -03:00
Gustavo b54c1e1a6f Add support for #[serde(untagged)] on enum variants 2024-02-05 14:38:18 -03:00
Gustavo 3de39ab39a Separate recursive exporting into mod 2024-02-01 15:07:55 -03:00
Moritz Bischof 2375fbf50a remove old dependency implementation, fix warnings 2024-02-01 17:03:56 +01:00
Moritz Bischof 3fa1d4bec1 implement POC 2024-02-01 15:47:17 +01:00
escritorio-gustavo 3b3fbf8a63 Merge pull request #174 from josema03/main
add "as" derive helper attribute
2024-01-31 16:18:34 -03:00
Moritz Bischof 5773e28cb6 fix interaction with #[ts(optional)], expand tests 2024-01-30 21:08:42 +01:00
escritorio-gustavo 50f74b51a0 Merge pull request #209 from escritorio-gustavo/array_as_ts_tuple
Convert fixed size Rust array to fixed size TS tuple
2024-01-30 16:25:18 -03:00
escritorio-gustavo c7bcb73dc4 Use parsed_ty 2024-01-30 16:19:05 -03:00
escritorio-gustavo c12d956db6 Merge branch 'main' into main 2024-01-30 15:36:52 -03:00
escritorio-gustavo a0a3e1336a Merge pull request #216 from escritorio-gustavo/inline_generics_default
Inline generics with default types works, as long as there are no trait bounds
2024-01-30 15:23:45 -03:00
escritorio-gustavo 5a5b5184c1 Merge pull request #213 from Aleph-Alpha/optional-nullable
Implement `#[ts(optional = nullable)]`
2024-01-30 15:09:14 -03:00
Gustavo 94bb2673f1 Inline generics with default types works, as long as there are no trait bounds 2024-01-30 14:47:58 -03:00
escritorio-gustavo 81f3205393 Merge branch 'Aleph-Alpha:main' into array_as_ts_tuple 2024-01-30 11:45:18 -03:00
escritorio-gustavo d5d202614f Apply requested changes to tuple.rs 2024-01-30 11:12:24 -03:00
escritorio-gustavo 76ea907551 Apply requested changes to newtype.rs 2024-01-30 11:11:40 -03:00
escritorio-gustavo f9a7ee423a Apply requested changes to named.rs 2024-01-30 11:08:52 -03:00
escritorio-gustavo 96a664a160 Remove duplicated check 2024-01-30 10:28:30 -03:00
escritorio-gustavo 836e145b92 Fix expected &Type found Type 2024-01-30 10:24:58 -03:00
escritorio-gustavo 979ea9b475 Fix expected &str found String 2024-01-30 10:23:03 -03:00
escritorio-gustavo cff9c5bfa5 Merge branch 'main' into main 2024-01-30 10:16:09 -03:00
Gustavo 3f79932398 Merge remote-tracking branch 'refs/remotes/origin/array_as_ts_tuple' 2024-01-30 09:40:10 -03:00
Gustavo e7215abd87 Add limit to ts tuple size and simplify array case in generics.rs 2024-01-30 09:39:54 -03:00
Gustavo ef56d7a89b Use inline instead of name, Vec<string> was turning into Array 2024-01-29 17:59:34 -03:00
escritorio-gustavo 857e860c06 Merge branch 'Aleph-Alpha:main' into array_as_ts_tuple 2024-01-29 17:34:30 -03:00
Moritz Bischof 966ae9f003 implement #[ts(optional = nullable)] 2024-01-29 20:15:24 +01:00
Gustavo 3667ef65fb Add a comment explaining why check for "null" 2024-01-29 15:33:29 -03:00
Gustavo 64544e05d6 Implement inline generics 2024-01-26 16:34:39 -03:00
Gustavo a3ac452e44 Run cargo fmt 2024-01-26 10:37:51 -03:00
escritorio-gustavo 71f4b0b8b1 Merge pull request #206 from escritorio-gustavo/enum_flattening
feat: Add support for enum flattening
2024-01-26 10:26:49 -03:00
Gustavo 1d72f6504a Convert Array to TS Tuple 2024-01-26 10:23:49 -03:00
Gustavo 708016f52e Make trim_matches comment more accurate 2024-01-25 14:14:34 -03:00
Gustavo f4d4d00656 Clarify format_field parameters 2024-01-25 14:09:43 -03:00
Gustavo 7eefc38f6f Clarify the need for .trim_matches() 2024-01-25 14:04:16 -03:00
NyxCode a3e0f21169 Remove support for "skip_serializing", "skip_deserializing" and "skip_serializing_if" (#204)
* remove support for "skip_serializing", "skip_deserializing" and "skip_serializing_if"

* add changelog

* fix typo
2024-01-25 17:41:56 +01:00
Gustavo e5929a8488 Simplify flattening of named structs 2024-01-25 10:29:26 -03:00
Gustavo 4b26418400 Reimplementation of enum flattening 2024-01-25 08:56:57 -03:00
Gustavo a25875c6ee Change declarations to use type instead of interface 2024-01-24 17:24:30 -03:00
NyxCode 3ecad90a40 Merge pull request #199 from escritorio-gustavo/improve-references
Improve support for references
2024-01-22 14:01:29 +01:00
Gustavo 8d23fcd73e Improve support for references 2024-01-22 09:46:32 -03:00
Gustavo d8fa31d2cf Fix bug introduced in #184 2024-01-22 08:37:38 -03:00
Moritz Bischof 7402826ff2 bump to 7.1.1 2024-01-19 11:18:03 +01:00
Sammy Harris a60de918fc fix: rename remaining quiet-serde references 2024-01-18 19:43:06 -05:00
Moritz Bischof e545a3a11e do not parse serde attributes when #[ts(skip)] is present 2024-01-11 05:15:27 +01:00
Moritz Bischof 89235eedc9 bump version to 7.1 2024-01-11 04:53:11 +01:00