forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG.json
2832 lines (2832 loc) · 95.8 KB
/
CHANGELOG.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "@typespec/compiler",
"entries": [
{
"version": "0.52.0",
"tag": "@typespec/compiler_v0.52.0",
"date": "Wed, 24 Jan 2024 05:46:53 GMT",
"comments": {
"none": [
{
"comment": "add bytes encode to the general encode type"
},
{
"comment": "Added support for named template arguments (#2340)"
},
{
"comment": "Feature: Added encoded name decorator"
},
{
"comment": "Add a new init template for creating a new emitter"
},
{
"comment": "Added new `--template` option to `tsp init` command line action which lets user specify which template to choose from in the template list."
},
{
"comment": "IDE: Performance improvements to the language server."
},
{
"comment": "Fix: Compiler couldn't resolve files at a long path(256+) on windows"
},
{
"comment": "Stop warning user when `tsp init` a template without `compilerVersion` specified"
},
{
"comment": "Library declaration: Deprecated linter property on `$lib` in favor of a new `$linter` variable that can be exported. This was done to prevent circular reference caused by referencing linter rules in $lib."
},
{
"comment": "Library declaration: State symbols can now be declared in the library declaration(Prefereably internal declaration added above) to have a central place to define state symbols used in your libraries."
},
{
"comment": "Add a new `tsp init` template for setting up a library"
},
{
"comment": "Rename template parameters in preparation for named template argument instantiation."
},
{
"comment": "Add ability to use another template parameter as a constraint. e.g. `model Foo<A, B extends A>`"
},
{
"comment": "Add new helper function to change casing to the init templates"
},
{
"comment": "Update dependencies"
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.5.1` to `~0.5.2`"
}
]
}
},
{
"version": "0.51.0",
"tag": "@typespec/compiler_v0.51.0",
"date": "Wed, 06 Dec 2023 19:40:58 GMT",
"comments": {
"none": [
{
"comment": "[API] Emitter framework: `emitTypeReference` function takes an optional reference context that can be used to patch the context for the target."
},
{
"comment": "Emitter API: Added `absolute-path` as a known format for emitter options which will validate the value passed by the user resolve to an absolute path."
},
{
"comment": "Linter rules can provide a url to the full documentation"
},
{
"comment": "**New language feature** **BREAKING** Added string template literal in typespec. Single and multi-line strings can be interpolated with `${` and `}`. Example `\\`Doc for url ${url} is here: ${location}\\``"
},
{
"comment": "Formatter: Fix: `valueof` expression with parentheses around will preserve them when they are meaningful(For example inside a union or array expression)"
},
{
"comment": "Emitter framework: allows scalar and enum declaration to provide a reference context."
},
{
"comment": "Fix: Union variant are now assignable to the parent union"
},
{
"comment": "Emitter framework: Allow passing a custom context when calling `emitType` "
},
{
"comment": "Upgrade formatter to prettier 3.1"
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.5.0` to `~0.5.1`"
}
]
}
},
{
"version": "0.50.0",
"tag": "@typespec/compiler_v0.50.0",
"date": "Wed, 08 Nov 2023 00:07:17 GMT",
"comments": {
"none": [
{
"comment": "Add new `unixTimestamp32` scalar to standard library"
},
{
"comment": "Fixing @doc and /** */ disappears from multi-segment or nested namespaces. #2642"
},
{
"comment": "Fix issue where using `@overload` could result in incorrect `unassignable` type errors."
},
{
"comment": "Add new hook for handling circular references"
},
{
"comment": "Fix: Issue where referencing a template in an alias might cause augment decorators to not be applied on types referenced in the aliased type."
},
{
"comment": "[Internal] Fix: `RekeyableMap` kept track of old value if rekeying to an existing item"
},
{
"comment": "Fix: Properties filtered with `@withVisibility` will have their visibility removed. This prevent visibility from being applied twice and rendering invalid models"
},
{
"comment": "`TypeEmitter` now supports Tuples."
},
{
"comment": "Issue error if a model spreads itself within its declaration."
},
{
"comment": "Stop showing empty code frame when diagnostic has no location"
},
{
"comment": "`TypeScript` use `types` entry under `exports` of `package.json` instead of legacy `typesVersions` to provide the definition files"
},
{
"comment": "**BREAKING CHANGE** Dropped support for node 16, minimum node version is now 18"
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.5` to `~0.5.0`"
}
]
}
},
{
"version": "0.49.0",
"tag": "@typespec/compiler_v0.49.0",
"date": "Wed, 11 Oct 2023 23:31:35 GMT",
"comments": {
"none": [
{
"comment": "Handle hyphen in @param doc comment"
},
{
"comment": "The `never` type is now assignable to all types"
},
{
"comment": "Allow nullable types for constraint decorators(min/max value, length, etc)"
},
{
"comment": "Add support for `@returns` and `@errors` doc comment tags. `@returns`(or `@returnsDoc` decorator) can be used to describe the success return types of an operation. `@errors`(or `@errorsDoc` decorator) can be used to describe the error return types of an operation."
},
{
"comment": "Fix: Colorization of line comment was bleeding over to the next line(s)."
},
{
"comment": "Fix crash when using parenthesis on directives"
},
{
"comment": "Fix: Assigning negative and 0 to float64"
},
{
"comment": "`tsp format` now returns a non-zero exit code when it fails to format a file"
},
{
"comment": "Fix: Anonymous union variants were formatted with an extra leading `:`"
},
{
"comment": "Formatter: Unions and Enums members are now formatted following the same rules as model properties. An extra line will be added between members if the member is annotated with a decorator, directive or doc comment."
},
{
"comment": "Fix: Correct formatting of comments between a directive or doc and its node"
},
{
"comment": "Fix: `tsp init` was not creating the `tspconfig.yaml` file for templates that specified it"
},
{
"comment": "Fix: `tsp init` will create a placeholder `tspconfig.yaml` file for templates that don't specify an explicit one."
},
{
"comment": "Fix `tsp init` was ignoring the `files` specified in an init template"
},
{
"comment": "Fix: Language Server wasn't loading the `tspconfig.yaml` correctly resulting in some options being dropped like the linter configuration."
},
{
"comment": "Fix: Allow `null` to be assigned as a default value"
},
{
"comment": "Fix: Using `TypeSpec.Xyz` namespace shouldn't require the `TypeSpec Prefix`"
},
{
"comment": "Skip emit of `deprecated` diagnostic for a type reference that is used in a deprecated declaration statement"
},
{
"comment": "Update dependencies"
},
{
"comment": "Remove `decorators` export, import decorators individually"
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.4` to `~0.4.5`"
}
]
}
},
{
"version": "0.48.1",
"tag": "@typespec/compiler_v0.48.1",
"date": "Tue, 19 Sep 2023 19:28:32 GMT",
"comments": {
"patch": [
{
"comment": "Fix emitter framework issue causing reference context to be lost in certain cases."
}
],
"none": [
{
"comment": "Add typesVersions metadata for the emitter framework to package.json"
}
]
}
},
{
"version": "0.48.0",
"tag": "@typespec/compiler_v0.48.0",
"date": "Tue, 12 Sep 2023 21:47:11 GMT",
"comments": {
"none": [
{
"comment": "**Breaking Change** A semicolon is now required after augment decorator statements."
},
{
"comment": "Added decorators `@parameterVisibility` and `@returnTypeVisibility`. Added methods `getParameterVisibility` and `getReturnTypeVisibility`. "
},
{
"comment": "Fix issue where --config would search the folder hierarchy looking for `tspconfig.yaml`."
},
{
"comment": "**Deprecation** `@deprecated` decorator has been marked as deprecated. Use `#deprecated` directive instead."
},
{
"comment": "**IDE** Add coloring for doc comment"
},
{
"comment": "Changed yaml parser from `js-yaml` to `yaml`"
},
{
"comment": "Parsing and validation of the tspconfig.yaml will not report the error location."
},
{
"comment": "**Fix** Stackoverflow when model property reference itself"
},
{
"comment": "**Fix** Compiler crash when using alias of namespace that has decorators"
},
{
"comment": "Fix: Compiler freeze when using invalid token between doc comment and type"
},
{
"comment": "**Added** validation making sure properties of model are compatible with a base model indexer (using `extends`)"
},
{
"comment": "Fix: Crash with when relating recursive types"
},
{
"comment": "Fix typo in 'format' error message"
},
{
"comment": "Expose `CompilerOptions` TypeScript type"
},
{
"comment": "Report library information when crash happen in $onValidate"
},
{
"comment": "Diagnostics reported on nodes with an `id` will see the diagnostic highlight the id instead of the whole node. For example it will show the error on the model name instead of highlighting the entire model."
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.3` to `~0.4.4`"
}
]
}
},
{
"version": "0.47.1",
"tag": "@typespec/compiler_v0.47.1",
"date": "Thu, 10 Aug 2023 20:18:00 GMT",
"comments": {
"patch": [
{
"comment": "**Fix**: `--config` flag was being ignored."
}
]
}
},
{
"version": "0.47.0",
"tag": "@typespec/compiler_v0.47.0",
"date": "Tue, 08 Aug 2023 22:32:10 GMT",
"comments": {
"none": [
{
"comment": "Allow omitting variant names in union declarations"
},
{
"comment": "Internal: Refactoring of cli code"
},
{
"comment": "Other cli commands reuse the diagnostic system to report errors"
},
{
"comment": "Add `#deprecated` directive to replace `@deprecated` decorator"
},
{
"comment": "Add `--ignore-deprecated` CLI argument to suppress all `deprecated` diagnostics"
},
{
"comment": "**Breaking change** Emitter Framework: `sourceFile` method can return a `Promise`. This allows running async processes when generating the file content, a formatter for example. This result in a potential breaking change if calling `emitSourceFile` where you'll have to add `await` before."
},
{
"comment": "Add a new util `resolveCompilerOptions` to resolve compiler options from a given entrypoint. This will resolve the options from the tspconfig.yaml in the same way the cli would."
},
{
"comment": "Fix: Compiler version mismatch error would fire incorrectly"
},
{
"comment": "Fix crash when `using` non-namespace"
},
{
"comment": "Fix some issues with not reporting deprecation on template constraints"
},
{
"comment": "Emit diagnostic for an unresolved metatype property reference"
},
{
"comment": "**Fix** issue where using augment decorators on spread model properties, enum members or operations extended from parent interface wouldn't do anything."
},
{
"comment": "**Fix** issue where using augment decorator on operation parameters applied to source operation parameter as well."
},
{
"comment": "Fix: TypeEmitter missing interfaces methods causing crash"
},
{
"comment": "**Fix** `warn-as-error` in `tspconfig.yaml` was ignored"
},
{
"comment": "Improve compiler watch mode. Files loaded in previous compilation will be watched for changes."
},
{
"comment": "**Breaking change** `formatTypeSpec` is now async. Formatter was updated to use prettier 3.0."
},
{
"comment": "Allow library dependency versions to be specified in init templates using the form `{ name: \"the-lib\", version: \"1.0.0\" }`"
},
{
"comment": "Update init template version compare to be greaterThanAndEqual instead of greaterThan."
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.2` to `~0.4.3`"
}
]
}
},
{
"version": "0.46.0",
"tag": "@typespec/compiler_v0.46.0",
"date": "Tue, 11 Jul 2023 22:06:00 GMT",
"comments": {
"none": [
{
"comment": "Fix signature help after comment with no closing parenthesis or angle bracket"
},
{
"comment": "Internal: Reorganize sources inside `src/` folder"
},
{
"comment": "Fix: Doc comment `/** */` should override base type doc in `model is` or `op is`"
},
{
"comment": "Emitter Framework: add support for emitting enum member references."
},
{
"comment": "**Feature** New built-in linter system. Typespec libraries are able to define linting rules which can be configured in `tspconfig.yaml`. See documentation for configuring a [linter](https://microsoft.github.io/typespec/introduction/configuration#linter---configuring-linters) and [writing a linter](https://microsoft.github.io/typespec/extending-typespec/linters)"
},
{
"comment": "**Breaking** Minimum version of TypeScript updated to 5.0. TypeSpec is using new features available in TypeScript 5.0 which result in a definition file not parsable by older version. Note that this only affect compiling TypeScript code and is not breaking any JS or TypeSpec code. [See more information on typescript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/)"
},
{
"comment": "Remove `mkdirp` dependencies and replace with built-in `mkdir({recursive: true})`."
},
{
"comment": "Compiler keeps track of the scope where a file is declared(User project, a library or the compiler)"
},
{
"comment": "Add support for `UTF-8 with bom` for other files loaded by typespec compiler. `.tsp` files already had support, this make it more available for any library/emitter using the compiler api to load a file."
},
{
"comment": "Allow annotations(Decorators, directives and doc comments) to be specified in any order"
},
{
"comment": "Fix: `entrypoints` folder wasn't included in package causing failure to resolve cli.js"
},
{
"comment": "Fix: Formatter incorrectly formatting `::` to `.`"
},
{
"comment": "Fix formatting issue with comment between decorator and scalar or interface"
},
{
"comment": "Fix: Stack overflow crash when having circular reference with `op is` inside an interface. "
},
{
"comment": "Fix IDE issue with squiggles in library code if the library had an entry point named something other than `main.tsp` and a library document was opened after another document that imported the library."
},
{
"comment": "Fix: Referencing decorator target in argument cause stack overflow for enum and union in checker and interface and operations in projection."
},
{
"comment": "**Fix** `getTypeName` include namespace prefix for unions as well"
},
{
"comment": "Formatter will now format doc comment above directives and decorators. This only applies to doc comments. Regular line comments and block comments will remain where they are"
},
{
"comment": "**Formatter**: Improve formatting for properties with comments and decorators. A property with a leading decorator on its own line or comment will be wrapped in blank lines."
},
{
"comment": "**Breaking change** Updating tsp init template schema for future extensibility. Older tsp version will fail validation."
},
{
"comment": "Emitter Framework: TypeEmitter can now implement `writeOutput` to customize how to write source files to disk."
},
{
"comment": "Emitter Framework: Source Files and Declarations have a new property `meta` which can store arbitrary metadata about those entities."
},
{
"comment": "Add support for new identifier characters from Unicode 15.0"
},
{
"comment": "**Deprecate** `@list` decorator in favor of `@listsResource` in `@typespec/rest`"
},
{
"comment": "**Deprecate** `isListOperation` function in favor of `isListOperation` in `@typespec/rest`"
},
{
"comment": "**Deprecate** `getListOperationType` function"
},
{
"comment": "Emitter Framework: Add new `TypeEmitter` methods for scalar instantiation."
},
{
"comment": "Emitter Framework: Fix that context was set incorrectly for some `TypeEmitter` methods, and add missing context methods for model properties, enum members, and union variants."
},
{
"comment": "Emitter Framework: Fix that some context methods were not being passed the expected parameters."
},
{
"comment": "Emitter Framework: Breaking change: Add support for templates instantiated with types without declared names. In such cases, `TypeEmitter`'s declarationName method may return `undefined`, and so the various `*Instantiation` methods might be called with an undefined name, and `AssetEmitter`'s `emitDeclarationName` method might return undefined."
},
{
"comment": "Fix: Wrong path for typescript types for main entrypoint"
},
{
"comment": "Update dependencies"
}
],
"dependency": [
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.1` to `~0.4.2`"
}
]
}
},
{
"version": "0.45.2",
"tag": "@typespec/compiler_v0.45.2",
"date": "Thu, 15 Jun 2023 17:00:33 GMT",
"comments": {
"patch": [
{
"comment": "Fix: Formatter crash when using comment in empty statement, after an augment decorator or in an empty file"
}
]
}
},
{
"version": "0.45.1",
"tag": "@typespec/compiler_v0.45.1",
"date": "Wed, 14 Jun 2023 17:05:12 GMT",
"comments": {
"patch": [
{
"comment": "Fix: Formatter moves all comments in flattened namespace to the top"
}
]
}
},
{
"version": "0.45.0",
"tag": "@typespec/compiler_v0.45.0",
"date": "Tue, 06 Jun 2023 22:44:16 GMT",
"comments": {
"none": [
{
"comment": "Fix: `tspconfig.yaml` should always get resolved relative to the entrypoint"
},
{
"comment": "Add decimal and decimal128 built-in scalar types."
},
{
"comment": "**Feature** Doc comment will be applied as the doc for types unless an explicit @doc is provided."
},
{
"comment": "Added new keyword `valueof` designed to request for a value type in a decorator parameter."
},
{
"comment": "**BREAKING** Decorator API will not be marshalling values unless the parameter type is using `valueof`. `extern dec foo(target, value: string)` should be changed to `extern dec foo(target, value: valueof string)`."
},
{
"comment": "**DEPRECATION** To make transition to valueof smoother if using a template parameter inside a decorator that is now using valueof the existing parmater constraint will still be compatible but emit a warning."
},
{
"comment": "**BREAKING CHANGE** Fix: Array shouldn't be assignable to an empty model(and `object`)"
},
{
"comment": "**DEPRECATION** `object` is deprecated. Alternative is to use `{}` for an empty model, `Record<unknown>` for a record with unknown property types, `unknown[]` for an array."
},
{
"comment": "Mark `Array` and `Record` doc comment as for dev only"
},
{
"comment": "Fix: formatting of comment between decorator and `op` statement"
},
{
"comment": "Fix: Operation can self reference or circular reference other operation via decorators"
},
{
"comment": "**BREAKING CHANGE** Remove `@format(\"url\") from url scalar`"
},
{
"comment": "Fix `unixTimestamp` validation was incorrect"
},
{
"comment": "**Fix** diagnostic validating type is intrinsic always showing `string` as expected"
},
{
"comment": "Fix error message for @encode errors."
},
{
"comment": "Improve error handling when tsp init template is invalid or fails to download."
},
{
"comment": "Emitter framework: uppercase type argument type names when constructing a declaration name from a template instantiation."
},
{
"comment": "Add signature for missing decorators"
},
{
"comment": "Remove dependency on `node-fetch`"
},
{
"comment": "Remove misleading output dir from compilation success message"
},
{
"comment": "Fix relative path resolution when init template is behind HTTP redirect"
},
{
"comment": "Emitter option validation will only validate emitters selected with `emit`/`--emit`. Options for other emitter will be ignored. This allows defining options for an emitter that is not installed."
},
{
"comment": "Fix signature help with trailing space in unterminated arg list"
},
{
"comment": "Add template argument signature help"
},
{
"comment": "Show alias doc comments in IDE"
}
],
"dependency": [
{
"comment": "Updating dependency \"@typespec/internal-build-utils\" from `~0.4.1` to `~0.4.2`"
}
]
}
},
{
"version": "0.44.0",
"tag": "@typespec/compiler_v0.44.0",
"date": "Wed, 10 May 2023 21:24:00 GMT",
"comments": {
"none": [
{
"comment": "Allow use of defaults on non-optional properties."
},
{
"comment": "Cleanup deprecated use"
},
{
"comment": "**Added** `@encode` decorator used to specify encoding of types"
},
{
"comment": "Add `projectRoot` to program"
},
{
"comment": "Api: Added `sourceModel` and `sourceOperation` on `Model` and `Operation` respectively."
},
{
"comment": "Add relative file path utils, and allow emitter framework's ObjectBuilder to be initialized with a placeholder object."
},
{
"comment": "Better error recovery when error thrown from emitter is not an object"
},
{
"comment": "Fix compiler mismatch error recommendation"
},
{
"comment": "Fix: Interface with templated operation causing crash if defined after use"
},
{
"comment": "Fix: Issue with templated operations in templated interface would get cached only by keying on the operation template args."
},
{
"comment": "Fix: `missing-index` diagnostic showing at the wrong location"
},
{
"comment": "Fix `--emit` pointing to emitter js entrypoint resolve correct options"
},
{
"comment": "Fix: `scalar` template parameter name conflict with each other"
},
{
"comment": "Added a new `isFinished` property to types to differentiate template instance that are not finalized (Still have template arguments to be resolved)"
},
{
"comment": "**Breaking** `isTemplateDeclaration` will only return true for the original declaration and not partially instantiated templates."
},
{
"comment": "**Fix** `unsupported-default` diagnostic showing at the wrong location"
},
{
"comment": "Fix `url` doc to not mention \"URI\""
},
{
"comment": "Minor reorganization of standard library docs"
},
{
"comment": "Language server: Allow main file to be outside workspace."
},
{
"comment": "Added `Model` and `Scalar` to Reflection namespace"
},
{
"comment": "Fix `@format` decorator doc."
},
{
"comment": "Update dependencies"
}
],
"patch": [
{
"comment": "Normalizing cwd before first use in getCompilerOptions()"
}
],
"dependency": [
{
"comment": "Updating dependency \"@typespec/eslint-config-typespec\" from `~0.6.0` to `~0.7.0`"
},
{
"comment": "Updating dependency \"@typespec/internal-build-utils\" from `~0.4.0` to `~0.4.1`"
},
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.4.0` to `~0.4.1`"
}
]
}
},
{
"version": "0.43.0",
"tag": "@typespec/compiler_v0.43.0",
"date": "Tue, 11 Apr 2023 18:49:17 GMT",
"comments": {
"none": [
{
"comment": "Bug: Emitter framework will now visit scalar declarations"
},
{
"comment": "Emit diagnostic when ambiguous symbol exists between global and usings."
},
{
"comment": "Feature: Add support for referencing metatypes ModelProperty `::type` and Operation `::returnType` and `::parameters`"
},
{
"comment": "Relax constraint on derived type overrides"
},
{
"comment": "Fix: Alias unknown ref crash"
},
{
"comment": "Fix: Empty model expression assignable to array"
},
{
"comment": "Fix `tsp code uninstall` not finding extension to uninstall."
},
{
"comment": "Fix Issue where template parameter type check wouldn't work if constraint is exact same type as next validation."
},
{
"comment": "Prevent use of augment decorators on instantiated templates."
},
{
"comment": "Allow projectedNames helpers to work with previous projections"
},
{
"comment": "Add helper `interpolatePath` for emitter to do additional interpolation on config properties"
},
{
"comment": "Api: Update `getTypeName` to omit standard library namespace"
},
{
"comment": "Allow overloads in interfaces to work under projection"
},
{
"comment": "Add pre-projection support."
},
{
"comment": "Provide access to extended interfaces in type graph."
},
{
"comment": "Document member ordering and fix projection rename reordering."
},
{
"comment": "Replaced zonedDateTime with utcDateTime and offsetDateTime"
}
]
}
},
{
"version": "0.42.0",
"tag": "@typespec/compiler_v0.42.0",
"date": "Mon, 13 Mar 2023 21:30:44 GMT",
"comments": {
"none": [
{
"comment": "**Breaking Change**. Removes `emitters` option in cadl-project.yaml. Use `emit` and `options` instead."
},
{
"comment": "Export formatIdentifier function from the lib"
},
{
"comment": "Add `--config` option to `tsp compile`."
}
]
}
},
{
"version": "0.41.0",
"tag": "@typespec/compiler_v0.41.0",
"date": "Fri, 03 Mar 2023 19:59:17 GMT",
"comments": {
"none": [
{
"comment": "Adding back all compiler exported public artifacts contains Cadl that got renamed to TypeSpec."
},
{
"comment": "Fix ambiguous references diagnostic for decorators"
},
{
"comment": "Add loading cadl-project.yaml for back compat"
},
{
"comment": "Remove support for Visual Studio 2019"
},
{
"comment": "Allow escaping identifiers using backticks"
},
{
"comment": "Format `StringLiteral` to `Identifier` (backticked when necessary)"
},
{
"comment": "Apply augmented decorator at last."
},
{
"comment": "Adding .cadl & package.json cadlMain back compat support"
},
{
"comment": "Fix projection of template arguments"
},
{
"comment": "Revert back changelog"
},
{
"comment": "Revert PR #1634."
},
{
"comment": "Fix issue with projectedName decorator not working correctly when multiple copies of the compiler are loaded."
},
{
"comment": "Updating default output to tsp-output and package.json entrypoint to tspMain"
},
{
"comment": "Rename to TypeSpec"
},
{
"comment": "Fixing cli help message, package homepage link"
}
],
"dependency": [
{
"comment": "Updating dependency \"@typespec/eslint-config-typespec\" from `~0.5.0` to `~0.6.0`"
},
{
"comment": "Updating dependency \"@typespec/internal-build-utils\" from `~0.3.3` to `~0.4.0`"
},
{
"comment": "Updating dependency \"tmlanguage-generator\" from `~0.3.2` to `~0.4.0`"
}
]
}
},
{
"version": "0.40.0",
"tag": "@cadl-lang/compiler_v0.40.0",
"date": "Tue, 07 Feb 2023 21:56:17 GMT",
"comments": {
"none": [
{
"comment": "Fix giving a default value to custom numeric scalar"
},
{
"comment": "Feature: add an emitter framework to simplify building emitters"
},
{
"comment": "Add `arrayDeclaration` and `arrayLiteral` methods to emitter framework's TypeEmitter"
},
{
"comment": "Bug: properly parse logical and (`&&`) expressions in projections"
},
{
"comment": "Support --option=path/to/emitter.js.option=value in cli args"
},
{
"comment": "Removed all *Type aliases (ModelType for Model, etc.). Removed `uri` scalar. Removed `Map<K, V>` model. Removed `@serviceTitle` and `@serviceVersion` decorators. Removed `getServiceNamespace`, `getServiceTitle`, `getServiceVersion`, `getServiceNamespaceString` and `setServiceNamespace` functions."
}
]
}
},
{
"version": "0.39.0",
"tag": "@cadl-lang/compiler_v0.39.0",
"date": "Fri, 13 Jan 2023 00:05:26 GMT",
"comments": {
"none": [
{
"comment": "Api: Provide more accurate `parent` type for Nodes"
},
{
"comment": "Add IDE completion and signature help for augment decorators"
},
{
"comment": "Fix `(anonymous model).paramName` showing in operation signatures in IDE"
},
{
"comment": "Add double quote to autoClosingPairs"
},
{
"comment": "Only warn when an invalid identifier is used in a doc comment"
},
{
"comment": "Add @minValueExclusive and @maxValueExclusive decorators."
},
{
"comment": "Feature: Templated operation inside of interfaces"
},
{
"comment": "Feature: Add templated operation inside of interface"
},
{
"comment": "Fix: Alias cause types to be resolved before some binding"
},
{
"comment": "Fix `cadl format` works with windows backslash paths"
},
{
"comment": "[Language Server] Fix: Completion of library imports replace import correctly\""
},
{
"comment": "Fix issue with using server lib at the root of filesystem"
},
{
"comment": "Fix: Projecting model property with type referencing sibling"
},
{
"comment": "Fix: Issue with referencing spread members"
},
{
"comment": "Internal: Update resolution of member symbols to have more ahead of time resolution"
},
{
"comment": "Internal: Update TS module resolution to node16"
},
{
"comment": "Type graph navigation navigate decorators"
},
{
"comment": "Internal: Refactor organization of completions logic for language server"
},
{
"comment": "Fix issue with referencing spread properties or enum member depending on the order of declaration"
},
{
"comment": "Fix: `resolveUsages` shouldn't include base model"
},
{
"comment": "Added `changeReturnType` projection method for operations."
},
{
"comment": "Improve visibility decorator documentation"
}
],
"dependency": [
{
"comment": "Updating dependency \"@cadl-lang/internal-build-utils\" from `~0.3.2` to `~0.3.3`"
}
]
}
},
{
"version": "0.38.5",
"tag": "@cadl-lang/compiler_v0.38.5",
"date": "Fri, 16 Dec 2022 22:02:45 GMT",
"comments": {
"patch": [
{
"comment": "emitter not found validation in emitter options is a warning"
}
]
}
},
{
"version": "0.38.4",
"tag": "@cadl-lang/compiler_v0.38.4",
"date": "Thu, 15 Dec 2022 02:21:08 GMT",
"comments": {
"patch": [
{
"comment": "Fix: `--arg` wasn't being picked up"
}
]
}
},
{
"version": "0.38.3",
"tag": "@cadl-lang/compiler_v0.38.3",
"date": "Fri, 09 Dec 2022 22:03:04 GMT",
"comments": {
"patch": [
{
"comment": "Fix: `constants` not available in `fs/promise`"
}
]
}
},
{
"version": "0.38.2",
"tag": "@cadl-lang/compiler_v0.38.2",
"date": "Fri, 09 Dec 2022 20:43:01 GMT",
"comments": {
"patch": [
{
"comment": "Fix: Revert breaking change to global cli usage"
}
]
}