tsrs 0.18.0-x86_64-linux-gnu → 0.20.1-x86_64-linux-gnu

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4711baa6a59e22f4172ced7e0e8557e798797329793f1a34806aa1637e28d307
4
- data.tar.gz: 59152731db7b32aae3bba5f2f2334d6da49c429064d8fce132164ed7169852cc
3
+ metadata.gz: acbe832e1830be41bb3d8c98eff35e669bd7317a6cd8926ec0e44b8c6239d848
4
+ data.tar.gz: 4e6d82f8223d96b47ebee6a3e2b5cba39fe4b7ec7af195bf8d42253ff0e2625b
5
5
  SHA512:
6
- metadata.gz: 179769aa62568cb5611fbd83eaaa4b1c375ff3a8ab0e678f3abb5f8f87d4898ed11d303c1bcccc94cfa53187ee16124dc6c149711510e61ae5394f824fe52b06
7
- data.tar.gz: d0c2e33d623d73969485f4b421acaa89e2811972c42e1eb7f90770871d6446969df51f1b4f310c0fdc0b5868e5f7d2d4d92d0381182fd3e4393a1866f7e9a0e2
6
+ metadata.gz: 9d29ca389774c87fc2b965c61a902f86f5b73b18e851a6c2f0be18efb05a703abb46ab8d17b6273bdbcf4595d2e291cdc7fb8e3c474be78349d6d3ce5ab9fb20
7
+ data.tar.gz: 3448c69f11ad71bc701b78fae5b618f43826f37cf916575e960cb349723b21828faa53a5ada59bc66957b8ae1f2d1b31cac553dcc697589cdc99ab262fbb6539
data/lib/tsrs/3.2/tsrs.so CHANGED
Binary file
data/lib/tsrs/3.3/tsrs.so CHANGED
Binary file
data/lib/tsrs/3.4/tsrs.so CHANGED
Binary file
data/lib/tsrs/4.0/tsrs.so CHANGED
Binary file
data/lib/tsrs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tsrs
4
- VERSION = "0.18.0"
4
+ VERSION = "0.20.1"
5
5
  end
@@ -2,4 +2,4 @@
2
2
  # The TypeScript version tsrs's release builds stamp (`nightly` in [workspace.metadata.typescript] of tsrs's
3
3
  # Cargo.toml), so tsbuildinfo files and typesVersions matching agree with the tsrs npm package.
4
4
  # See .github/workflows/upstream.yml.
5
- TSRS_TS_VERSION = "7.1.0-dev.20260930.4"
5
+ TSRS_TS_VERSION = "7.1.0-beta"
data/rust/Cargo.lock CHANGED
@@ -564,6 +564,12 @@ version = "0.1.5"
564
564
  source = "registry+https://github.com/rust-lang/crates.io-index"
565
565
  checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
566
566
 
567
+ [[package]]
568
+ name = "smallbitvec"
569
+ version = "2.6.1"
570
+ source = "registry+https://github.com/rust-lang/crates.io-index"
571
+ checksum = "9b0e903ee191d8f7a8fbf0d712c3a1699d19e04ceba5ad1eb673053c7d938a09"
572
+
567
573
  [[package]]
568
574
  name = "smallvec"
569
575
  version = "1.16.3"
@@ -697,8 +703,8 @@ dependencies = [
697
703
 
698
704
  [[package]]
699
705
  name = "tsrs_api"
700
- version = "0.18.0"
701
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
706
+ version = "0.20.1"
707
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
702
708
  dependencies = [
703
709
  "rustc-hash",
704
710
  "tsrs_api_codec",
@@ -709,6 +715,7 @@ dependencies = [
709
715
  "tsrs_compiler",
710
716
  "tsrs_core",
711
717
  "tsrs_diagnostics",
718
+ "tsrs_execute",
712
719
  "tsrs_ls",
713
720
  "tsrs_lsproto",
714
721
  "tsrs_module",
@@ -721,8 +728,8 @@ dependencies = [
721
728
 
722
729
  [[package]]
723
730
  name = "tsrs_api_codec"
724
- version = "0.18.0"
725
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
731
+ version = "0.20.1"
732
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
726
733
  dependencies = [
727
734
  "rustc-hash",
728
735
  "tsrs_ast",
@@ -731,8 +738,8 @@ dependencies = [
731
738
 
732
739
  [[package]]
733
740
  name = "tsrs_api_transport"
734
- version = "0.18.0"
735
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
741
+ version = "0.20.1"
742
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
736
743
  dependencies = [
737
744
  "base64",
738
745
  "rustc-hash",
@@ -740,12 +747,13 @@ dependencies = [
740
747
  "serde_json",
741
748
  "tsrs_core",
742
749
  "tsrs_vfs",
750
+ "windows-sys",
743
751
  ]
744
752
 
745
753
  [[package]]
746
754
  name = "tsrs_ast"
747
- version = "0.18.0"
748
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
755
+ version = "0.20.1"
756
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
749
757
  dependencies = [
750
758
  "bitflags",
751
759
  "hashbrown",
@@ -758,8 +766,8 @@ dependencies = [
758
766
 
759
767
  [[package]]
760
768
  name = "tsrs_astnav"
761
- version = "0.18.0"
762
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
769
+ version = "0.20.1"
770
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
763
771
  dependencies = [
764
772
  "tsrs_ast",
765
773
  "tsrs_core",
@@ -768,8 +776,8 @@ dependencies = [
768
776
 
769
777
  [[package]]
770
778
  name = "tsrs_binder"
771
- version = "0.18.0"
772
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
779
+ version = "0.20.1"
780
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
773
781
  dependencies = [
774
782
  "bitflags",
775
783
  "rustc-hash",
@@ -781,12 +789,14 @@ dependencies = [
781
789
 
782
790
  [[package]]
783
791
  name = "tsrs_checker"
784
- version = "0.18.0"
785
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
792
+ version = "0.20.1"
793
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
786
794
  dependencies = [
787
795
  "bitflags",
788
796
  "hashbrown",
789
797
  "rustc-hash",
798
+ "smallbitvec",
799
+ "smallvec",
790
800
  "tsrs_ast",
791
801
  "tsrs_astnav",
792
802
  "tsrs_binder",
@@ -804,8 +814,8 @@ dependencies = [
804
814
 
805
815
  [[package]]
806
816
  name = "tsrs_compiler"
807
- version = "0.18.0"
808
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
817
+ version = "0.20.1"
818
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
809
819
  dependencies = [
810
820
  "rayon",
811
821
  "rustc-hash",
@@ -830,8 +840,8 @@ dependencies = [
830
840
 
831
841
  [[package]]
832
842
  name = "tsrs_contentmapper"
833
- version = "0.18.0"
834
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
843
+ version = "0.20.1"
844
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
835
845
  dependencies = [
836
846
  "rustc-hash",
837
847
  "tsrs_ast",
@@ -846,8 +856,8 @@ dependencies = [
846
856
 
847
857
  [[package]]
848
858
  name = "tsrs_core"
849
- version = "0.18.0"
850
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
859
+ version = "0.20.1"
860
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
851
861
  dependencies = [
852
862
  "dragonbox_ecma",
853
863
  "hashbrown",
@@ -864,8 +874,8 @@ dependencies = [
864
874
 
865
875
  [[package]]
866
876
  name = "tsrs_declarations"
867
- version = "0.18.0"
868
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
877
+ version = "0.20.1"
878
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
869
879
  dependencies = [
870
880
  "rustc-hash",
871
881
  "tsrs_ast",
@@ -881,16 +891,16 @@ dependencies = [
881
891
 
882
892
  [[package]]
883
893
  name = "tsrs_diagnostics"
884
- version = "0.18.0"
885
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
894
+ version = "0.20.1"
895
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
886
896
  dependencies = [
887
897
  "rustc-hash",
888
898
  ]
889
899
 
890
900
  [[package]]
891
901
  name = "tsrs_execute"
892
- version = "0.18.0"
893
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
902
+ version = "0.20.1"
903
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
894
904
  dependencies = [
895
905
  "libc",
896
906
  "rustc-hash",
@@ -908,8 +918,8 @@ dependencies = [
908
918
 
909
919
  [[package]]
910
920
  name = "tsrs_fswatch"
911
- version = "0.18.0"
912
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
921
+ version = "0.20.1"
922
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
913
923
  dependencies = [
914
924
  "libc",
915
925
  "rustc-hash",
@@ -918,8 +928,8 @@ dependencies = [
918
928
 
919
929
  [[package]]
920
930
  name = "tsrs_incremental"
921
- version = "0.18.0"
922
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
931
+ version = "0.20.1"
932
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
923
933
  dependencies = [
924
934
  "bitflags",
925
935
  "rayon",
@@ -939,8 +949,8 @@ dependencies = [
939
949
 
940
950
  [[package]]
941
951
  name = "tsrs_ipc"
942
- version = "0.18.0"
943
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
952
+ version = "0.20.1"
953
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
944
954
  dependencies = [
945
955
  "rustc-hash",
946
956
  "tsrs_core",
@@ -948,8 +958,8 @@ dependencies = [
948
958
 
949
959
  [[package]]
950
960
  name = "tsrs_ls"
951
- version = "0.18.0"
952
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
961
+ version = "0.20.1"
962
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
953
963
  dependencies = [
954
964
  "bitflags",
955
965
  "indexmap",
@@ -976,8 +986,8 @@ dependencies = [
976
986
 
977
987
  [[package]]
978
988
  name = "tsrs_lsproto"
979
- version = "0.18.0"
980
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
989
+ version = "0.20.1"
990
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
981
991
  dependencies = [
982
992
  "rustc-hash",
983
993
  "tsrs_core",
@@ -986,10 +996,11 @@ dependencies = [
986
996
 
987
997
  [[package]]
988
998
  name = "tsrs_module"
989
- version = "0.18.0"
990
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
999
+ version = "0.20.1"
1000
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
991
1001
  dependencies = [
992
1002
  "bitflags",
1003
+ "hashbrown",
993
1004
  "rustc-hash",
994
1005
  "tsrs_ast",
995
1006
  "tsrs_core",
@@ -999,8 +1010,8 @@ dependencies = [
999
1010
 
1000
1011
  [[package]]
1001
1012
  name = "tsrs_modulespecifiers"
1002
- version = "0.18.0"
1003
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1013
+ version = "0.20.1"
1014
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1004
1015
  dependencies = [
1005
1016
  "regex",
1006
1017
  "rustc-hash",
@@ -1012,8 +1023,8 @@ dependencies = [
1012
1023
 
1013
1024
  [[package]]
1014
1025
  name = "tsrs_parser"
1015
- version = "0.18.0"
1016
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1026
+ version = "0.20.1"
1027
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1017
1028
  dependencies = [
1018
1029
  "bitflags",
1019
1030
  "rustc-hash",
@@ -1025,8 +1036,8 @@ dependencies = [
1025
1036
 
1026
1037
  [[package]]
1027
1038
  name = "tsrs_printer"
1028
- version = "0.18.0"
1029
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1039
+ version = "0.20.1"
1040
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1030
1041
  dependencies = [
1031
1042
  "bitflags",
1032
1043
  "rustc-hash",
@@ -1038,8 +1049,8 @@ dependencies = [
1038
1049
 
1039
1050
  [[package]]
1040
1051
  name = "tsrs_project"
1041
- version = "0.18.0"
1042
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1052
+ version = "0.20.1"
1053
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1043
1054
  dependencies = [
1044
1055
  "rustc-hash",
1045
1056
  "tsrs_ast",
@@ -1061,8 +1072,8 @@ dependencies = [
1061
1072
 
1062
1073
  [[package]]
1063
1074
  name = "tsrs_projectutil"
1064
- version = "0.18.0"
1065
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1075
+ version = "0.20.1"
1076
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1066
1077
  dependencies = [
1067
1078
  "rustc-hash",
1068
1079
  "tsrs_core",
@@ -1070,8 +1081,8 @@ dependencies = [
1070
1081
 
1071
1082
  [[package]]
1072
1083
  name = "tsrs_pseudochecker"
1073
- version = "0.18.0"
1074
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1084
+ version = "0.20.1"
1085
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1075
1086
  dependencies = [
1076
1087
  "tsrs_ast",
1077
1088
  "tsrs_core",
@@ -1079,8 +1090,8 @@ dependencies = [
1079
1090
 
1080
1091
  [[package]]
1081
1092
  name = "tsrs_scanner"
1082
- version = "0.18.0"
1083
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1093
+ version = "0.20.1"
1094
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1084
1095
  dependencies = [
1085
1096
  "bitflags",
1086
1097
  "memchr",
@@ -1092,8 +1103,8 @@ dependencies = [
1092
1103
 
1093
1104
  [[package]]
1094
1105
  name = "tsrs_sourcemap"
1095
- version = "0.18.0"
1096
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1106
+ version = "0.20.1"
1107
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1097
1108
  dependencies = [
1098
1109
  "rustc-hash",
1099
1110
  "tsrs_ast",
@@ -1103,8 +1114,8 @@ dependencies = [
1103
1114
 
1104
1115
  [[package]]
1105
1116
  name = "tsrs_spanmap"
1106
- version = "0.18.0"
1107
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1117
+ version = "0.20.1"
1118
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1108
1119
  dependencies = [
1109
1120
  "bitflags",
1110
1121
  "tsrs_core",
@@ -1112,8 +1123,8 @@ dependencies = [
1112
1123
 
1113
1124
  [[package]]
1114
1125
  name = "tsrs_transformers"
1115
- version = "0.18.0"
1116
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1126
+ version = "0.20.1"
1127
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1117
1128
  dependencies = [
1118
1129
  "bitflags",
1119
1130
  "rustc-hash",
@@ -1128,8 +1139,8 @@ dependencies = [
1128
1139
 
1129
1140
  [[package]]
1130
1141
  name = "tsrs_tsoptions"
1131
- version = "0.18.0"
1132
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1142
+ version = "0.20.1"
1143
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1133
1144
  dependencies = [
1134
1145
  "rustc-hash",
1135
1146
  "tsrs_ast",
@@ -1144,8 +1155,8 @@ dependencies = [
1144
1155
 
1145
1156
  [[package]]
1146
1157
  name = "tsrs_vfs"
1147
- version = "0.18.0"
1148
- source = "git+https://github.com/oxc-project/tsrs?tag=v0.18.0#5f92808bc92bb97b06212153ab73d28d551c0b9b"
1158
+ version = "0.20.1"
1159
+ source = "git+https://github.com/oxc-project/tsrs?tag=v0.20.1#77d3cddb44540734abc33a42ccca4d3f33bee527"
1149
1160
  dependencies = [
1150
1161
  "bitflags",
1151
1162
  "rayon",
data/rust/Cargo.toml CHANGED
@@ -16,15 +16,15 @@ crate-type = ["cdylib", "staticlib", "rlib"]
16
16
 
17
17
  # tsrs does not publish its crates, so they come from the release tag. See .github/workflows/upstream.yml.
18
18
  [dependencies]
19
- tsrs_api = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
20
- tsrs_ast = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
21
- tsrs_compiler = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
22
- tsrs_contentmapper = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
23
- tsrs_core = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
24
- tsrs_execute = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
25
- tsrs_project = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
26
- tsrs_tsoptions = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
27
- tsrs_vfs = { git = "https://github.com/oxc-project/tsrs", tag = "v0.18.0" }
19
+ tsrs_api = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
20
+ tsrs_ast = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
21
+ tsrs_compiler = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
22
+ tsrs_contentmapper = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
23
+ tsrs_core = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
24
+ tsrs_execute = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
25
+ tsrs_project = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
26
+ tsrs_tsoptions = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
27
+ tsrs_vfs = { git = "https://github.com/oxc-project/tsrs", tag = "v0.20.1" }
28
28
  serde = { version = "1", features = ["derive"] }
29
29
  serde_json = "1"
30
30
 
data/rust/src/lib.rs CHANGED
@@ -85,7 +85,7 @@ pub unsafe extern "C" fn tsrs_session_check(session: *const TsrsSession, options
85
85
  };
86
86
 
87
87
  let options = options.to_string();
88
- let session = session.session();
88
+ let session = session.retain();
89
89
 
90
90
  guard(move || worker::run(move || session::check(&session, &options)))
91
91
  }
data/rust/src/session.rs CHANGED
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
4
4
  use serde_json::value::RawValue;
5
5
  use tsrs_api::{Handler, Response, Session, SessionOptions};
6
6
  use tsrs_core::context::{with_checker_lifetime, CheckerLifetime, Context};
7
- use tsrs_core::json::Value;
7
+ use tsrs_core::json::{JsonMap, Value};
8
8
  use tsrs_core::tspath;
9
9
  use tsrs_vfs::{bundled, osvfs, FS};
10
10
 
@@ -15,6 +15,7 @@ use crate::status::Status;
15
15
 
16
16
  pub struct TsrsSession {
17
17
  session: Arc<Session>,
18
+ current_directory: String,
18
19
  }
19
20
 
20
21
  #[derive(Deserialize)]
@@ -31,15 +32,19 @@ struct CheckPayload {
31
32
 
32
33
  pub fn new(cwd: &str) -> TsrsSession {
33
34
  let fs: Arc<dyn FS> = Arc::new(bundled::wrap_fs(osvfs::fs()));
35
+ let current_directory = tspath::normalize_path(cwd);
34
36
 
35
37
  let session = Session::new(SessionOptions::new(
36
- tspath::normalize_path(cwd),
38
+ current_directory.clone(),
37
39
  bundled::default_lib_path(),
38
40
  fs,
39
41
  false,
40
42
  ));
41
43
 
42
- TsrsSession { session }
44
+ TsrsSession {
45
+ session,
46
+ current_directory,
47
+ }
43
48
  }
44
49
 
45
50
  impl TsrsSession {
@@ -50,6 +55,7 @@ impl TsrsSession {
50
55
  pub fn retain(&self) -> TsrsSession {
51
56
  TsrsSession {
52
57
  session: self.session(),
58
+ current_directory: self.current_directory.clone(),
53
59
  }
54
60
  }
55
61
 
@@ -58,16 +64,17 @@ impl TsrsSession {
58
64
  }
59
65
  }
60
66
 
61
- pub fn check(session: &Session, request_json: &str) -> TsrsResult {
67
+ pub fn check(session: &TsrsSession, request_json: &str) -> TsrsResult {
62
68
  let request: CheckRequest = match serde_json::from_str(request_json) {
63
69
  Ok(request) => request,
64
70
  Err(error) => return TsrsResult::error(TsrsErrorCode::Option, error.to_string()),
65
71
  };
66
72
 
67
- let project = tspath::get_normalized_absolute_path(&request.project, session.current_directory());
73
+ let project = tspath::get_normalized_absolute_path(&request.project, &session.current_directory);
68
74
  let params = object("openProjects", Value::Array(vec![Value::String(project.clone())]));
75
+ let session = session.session();
69
76
 
70
- let created = match call(session, "createSnapshot", &params) {
77
+ let created = match call(&session, "createSnapshot", &params) {
71
78
  Ok(created) => created,
72
79
  Err(message) => return TsrsResult::error(TsrsErrorCode::Check, message),
73
80
  };
@@ -76,9 +83,9 @@ pub fn check(session: &Session, request_json: &str) -> TsrsResult {
76
83
  return TsrsResult::error(TsrsErrorCode::Internal, "createSnapshot returned no snapshot");
77
84
  };
78
85
 
79
- let outcome = diagnostics(session, snapshot, &created, &project);
86
+ let outcome = diagnostics(&session, snapshot, &created, &project);
80
87
 
81
- let _ = call(session, "release", &object("snapshot", Value::Number(snapshot as f64)));
88
+ let _ = call(&session, "release", &object("snapshot", Value::Number(snapshot as f64)));
82
89
 
83
90
  match outcome {
84
91
  Ok((status, diagnostics)) => {
@@ -129,7 +136,7 @@ fn diagnostics(
129
136
  let status = if all.is_empty() {
130
137
  ExitStatus::Success
131
138
  } else {
132
- ExitStatus::DiagnosticsPresent_OutputsGenerated
139
+ ExitStatus::DiagnosticsPresentOutputsGenerated
133
140
  };
134
141
 
135
142
  let responses = tsrs_api::diagnostics::diagnostic_responses(&all);
@@ -171,7 +178,7 @@ fn call(session: &Session, method: &str, params: &Value) -> Result<Value, String
171
178
  }
172
179
 
173
180
  fn object(key: &str, value: Value) -> Value {
174
- let mut map = tsrs_core::collections::OrderedMap::default();
181
+ let mut map = JsonMap::default();
175
182
 
176
183
  map.insert(key.to_string(), value);
177
184
 
data/rust/src/status.rs CHANGED
@@ -11,10 +11,10 @@ impl From<ExitStatus> for Status {
11
11
  fn from(status: ExitStatus) -> Self {
12
12
  let name = match status {
13
13
  ExitStatus::Success => "success",
14
- ExitStatus::DiagnosticsPresent_OutputsSkipped => "diagnostics_present_outputs_skipped",
15
- ExitStatus::DiagnosticsPresent_OutputsGenerated => "diagnostics_present_outputs_generated",
16
- ExitStatus::InvalidProject_OutputsSkipped => "invalid_project_outputs_skipped",
17
- ExitStatus::ProjectReferenceCycle_OutputsSkipped => "project_reference_cycle_outputs_skipped",
14
+ ExitStatus::DiagnosticsPresentOutputsSkipped => "diagnostics_present_outputs_skipped",
15
+ ExitStatus::DiagnosticsPresentOutputsGenerated => "diagnostics_present_outputs_generated",
16
+ ExitStatus::InvalidProjectOutputsSkipped => "invalid_project_outputs_skipped",
17
+ ExitStatus::ProjectReferenceCycleOutputsSkipped => "project_reference_cycle_outputs_skipped",
18
18
  ExitStatus::NotImplemented => "not_implemented",
19
19
  };
20
20
 
@@ -1,5 +1,8 @@
1
+ use serde::Deserialize;
1
2
  use serde::Serialize;
2
3
  use serde_json::value::RawValue;
4
+ use tsrs_api::{Handler, Response};
5
+ use tsrs_core::json::{JsonMap, Value};
3
6
 
4
7
  use crate::options::{self, TranspileRequest};
5
8
  use crate::result::{TsrsErrorCode, TsrsResult};
@@ -11,6 +14,14 @@ struct TranspilePayload {
11
14
  diagnostics: Box<RawValue>,
12
15
  }
13
16
 
17
+ #[derive(Deserialize)]
18
+ #[serde(rename_all = "camelCase")]
19
+ struct ApiTranspileResponse {
20
+ output_text: String,
21
+ source_map_text: Option<String>,
22
+ diagnostics: Option<Box<RawValue>>,
23
+ }
24
+
14
25
  pub fn transpile(source: String, request_json: String, declaration: bool) -> TsrsResult {
15
26
  let request: TranspileRequest = match serde_json::from_str(&request_json) {
16
27
  Ok(request) => request,
@@ -35,28 +46,47 @@ fn run(source: &str, request: &TranspileRequest, declaration: bool) -> TsrsResul
35
46
  Err(message) => return TsrsResult::error(TsrsErrorCode::Option, message),
36
47
  };
37
48
 
38
- let output = match tsrs_api::transpile::transpile(
39
- source,
40
- Some(&compiler_options),
41
- &request.file_name,
42
- request.report_diagnostics,
43
- declaration,
44
- ) {
45
- Ok(output) => output,
46
- Err(error) => return TsrsResult::error(TsrsErrorCode::Transpile, error.to_string()),
49
+ let mut options = JsonMap::default();
50
+ options.insert(
51
+ "compilerOptions".to_string(),
52
+ tsrs_tsoptions::gojson::compiler_options_to_go_json(&compiler_options),
53
+ );
54
+ options.insert("fileName".to_string(), Value::String(request.file_name.clone()));
55
+ options.insert("reportDiagnostics".to_string(), Value::Bool(request.report_diagnostics));
56
+
57
+ let mut params = JsonMap::default();
58
+ params.insert("input".to_string(), Value::String(source.to_string()));
59
+ params.insert("options".to_string(), Value::Object(options));
60
+ let params = match tsrs_core::json::marshal(&Value::Object(params)) {
61
+ Ok(params) => params,
62
+ Err(error) => return TsrsResult::error(TsrsErrorCode::Internal, error),
47
63
  };
48
64
 
49
- let diagnostics = tsrs_core::json::Value::Array(output.diagnostics);
65
+ let session = crate::session::new("/").session();
66
+ let method = if declaration {
67
+ "transpileDeclaration"
68
+ } else {
69
+ "transpileModule"
70
+ };
71
+ let response = match session.handle_request(method, params.as_bytes()) {
72
+ Ok(Response::Json(response)) => response,
73
+ Ok(Response::Binary(_)) => {
74
+ return TsrsResult::error(TsrsErrorCode::Internal, "transpilation returned a binary response");
75
+ }
76
+ Err(error) => return TsrsResult::error(TsrsErrorCode::Transpile, error.to_string()),
77
+ };
50
78
 
51
- let diagnostics = match tsrs_core::json::marshal(&diagnostics).map(RawValue::from_string) {
52
- Ok(Ok(diagnostics)) => diagnostics,
53
- _ => return TsrsResult::error(TsrsErrorCode::Internal, "the diagnostics could not be serialized"),
79
+ let output: ApiTranspileResponse = match serde_json::from_str(&response) {
80
+ Ok(output) => output,
81
+ Err(error) => return TsrsResult::error(TsrsErrorCode::Internal, error.to_string()),
54
82
  };
55
83
 
56
84
  let payload = TranspilePayload {
57
85
  code: output.output_text,
58
- map: (!output.source_map_text.is_empty()).then_some(output.source_map_text),
59
- diagnostics,
86
+ map: output.source_map_text.filter(|map| !map.is_empty()),
87
+ diagnostics: output
88
+ .diagnostics
89
+ .unwrap_or_else(|| RawValue::from_string("[]".to_string()).expect("a valid empty JSON array")),
60
90
  };
61
91
 
62
92
  match serde_json::to_string(&payload) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tsrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.20.1
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Marco Roth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-20 00:00:00.000000000 Z
11
+ date: 2026-10-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby bindings for tsrs, a drop-in replacement for the TypeScript 7 compiler
14
14
  and language server, written in Rust.