Граф коммитов

1973 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin 29aa4a5ec4
Add release notes release 0.55 - April 2024 (#3093)
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-04-02 19:13:46 +00:00
Timothee Guerin d5577b1f11
Docs: Add documentation on emitter scoping (#3016)
fix [#2860](https://github.com/microsoft/typespec/issues/2860)

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-04-02 17:51:10 +00:00
Timothee Guerin d4823c089b
Fix swagger ui build (#3091)
Missed that when doing the PR, the default import tries to load the
`path` library, recommendation is just to import the right bundle
directly.
2024-04-02 09:33:15 -07:00
Timothee Guerin c6506bcdee
Fix: Literal unions with the same variants keep adding duplicate entries (#3090)
fix #3087
2024-04-02 01:21:29 +00:00
Timothee Guerin cda7ccf4d9
Playground: Migrate from swagger-ui-react to swagger-ui-dist (#3089)
swagger-ui-react pull in all the swagger ui dependencies which is a bit
anyoing as they are mostly optional and with pnpm requires you to build
native dependencies.
2024-04-01 17:13:08 -07:00
Timothee Guerin fe67c784a2
Clarify algolia search key is designed to be public (#3085) 2024-04-01 19:14:59 +00:00
Timothee Guerin 5ba95d0371
Allow reload of js files in vitest (#3086)
Setup a workaround for the fact that vitest(vite underneath) doesn't
ever want to reload files in the outDir
https://github.com/vitest-dev/vitest/issues/5429

as the outDir isn't actually used in vitest(as far as I understand) this
is just an ok workaround.
2024-04-01 17:54:38 +00:00
emi0x7d1 fbe9da657e
project-root typo corrected in docs (#3083) 2024-04-01 08:10:37 -07:00
Timothee Guerin 0dea649cd7
Update dependencies to resolve vulnerabilities and license issue (#3081)
- Remove unused rollup-plugin-dts dep that had problematic license
- Update dependencies to fix vulnerabilies
2024-03-29 21:22:06 +00:00
Timothee Guerin a9696087af
Add monarch tokenizer as a dedicated package (#3079)
Package is private for now, this is just a way to maintain the tokenizer
on our side
2024-03-29 10:25:29 -07:00
Timothee Guerin 6d54aeb4aa
Do not crash if hitting a unsupported intrinsic type (#3077)
fix #3073

This still doesn't provide an optimal experience as the error shows up
on the void type instead of where it is referenced but solving that is
that long standing issue about tracing back where an error should be
2024-03-28 20:29:33 +00:00
Timothee Guerin 85fa7aecec
Union template declaration were being finished in projector (#3052)
fix [#2946](https://github.com/microsoft/typespec/issues/2946)

Problem was that in the projector were were calling to this helper to
see if that was a type that we should finish but it was missing the
union case causing union template declaration from being finished in the
projector and then being shown as finished type in the semantic
navigator and crashing openapi3 emitter.
2024-03-28 20:08:30 +00:00
Timothee Guerin e31309e5a7
Fix codefixes docs (#3045) 2024-03-28 19:41:27 +00:00
LadyCailin 4e1d30ddce
Update inconsistent docs (#3072)
`@server` works to provide values for the `servers` object, as is
documented elsewhere in the same files. This PR updates the table to
reflect that. Closes #3071.
2024-03-28 13:50:21 +00:00
Timothee Guerin ce9c567e5b
Improve TM language for enums, unions and escaped identifiers (#3069)
resolves https://github.com/microsoft/typespec/issues/3070
The tm language wasn't correctly defining the syntax for escaped
identifiers

```
`North West`
```


Enums and unions syntax was also not very accurate and didn't tokenize
everything correctly


## Example of issue before


![image](https://github.com/microsoft/typespec/assets/1031227/ee60f4fe-5eef-4f86-baa5-1cc96b665526)

## After

![image](https://github.com/microsoft/typespec/assets/1031227/38405f18-0fa4-44ba-82f6-594bcd4fcebf)
2024-03-27 10:12:29 -07:00
Timothee Guerin 32e45d4da2
Add support for scalar in versioning (#3053)
fix [#3001](https://github.com/microsoft/typespec/issues/3001)
2024-03-26 23:43:37 +00:00
Timothee Guerin 9b083d0180
Add issue templates (#3054)
Add issue templates with required input, recommending playground repro
for bugs

Github docs on those new issue templates form
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms

<img width="1456" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/5ccbacab-01d9-45e6-b55f-2ac70582e0a8">
2024-03-26 11:52:53 -07:00
Timothee Guerin 4c34e78747
Fix visibility conflict with base models (#3049)
fix #2922
fix #3048(dup)
2024-03-25 18:56:55 +00:00
Timothee Guerin 095c7dd8d4
OpenAPI3: Fix multipart union part conflict (#3050)
Problem is that was now trying to create a new declaration for a named
union if it was used in multipart and json even though they were the
same
2024-03-25 18:13:26 +00:00
Jose Manuel Heredia Hidalgo baac24ac00
Fix emitter docs code examples (#3047)
Fixing a couple of wrong, missing, and un-needed imports in the snippets
2024-03-22 22:59:31 +00:00
Timothee Guerin 39ee11bc46
Fix: OpenAPI3 not marking part of bytes or something else as `format: binary` (#3013)
fix [#2924](https://github.com/microsoft/typespec/issues/2924)

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-22 20:45:10 +00:00
Timothee Guerin 72bed4daf8
More reliable codefix application (#3041)
Current approach was getting in all kind of conflict because it was
calling getCodeActions too much and we were clearing the cached id
2024-03-22 17:44:47 +00:00
Timothee Guerin 4e6f137c65
Emit `{nulable: true}` when trying to emit `null` in openapi3 (#2967)
fix #2217

This isn't fully accurate as it is saying in openapi3 that it can be
anything and `null` but this solve a crash, we could consider adding a
warning

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-22 16:53:54 +00:00
Timothee Guerin 8839ae173f
Fix policy include private package that doesn't get versioned (#2990) 2024-03-22 04:16:00 +00:00
Timothee Guerin a8f849747c
Clarify multi json part docs (#3014)
fix [#2962](https://github.com/microsoft/typespec/issues/2962)
2024-03-22 03:43:39 +00:00
Timothee Guerin e0dfe6f5d0
Grammar: Fix comments in template params not tokenized (#3018)
fix #3017

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2024-03-22 02:53:07 +00:00
Timothee Guerin 06f514dc92
Fix non portable export (#3039)
Not sure why only catching that in the typespec-azure repo build but it
complains that the return type of this function wasn't portable,
Probably good anyway to be more explicit here.
2024-03-22 01:55:12 +00:00
Timothee Guerin 8991a9cd48
Remove david from codeowners (#3021) 2024-03-22 01:21:29 +00:00
Timothee Guerin 68cd9fe906
Apply same fix to latest docs (#3034) 2024-03-20 15:20:08 +00:00
Timothee Guerin 077db13c8d
Generate TypeScript decorator signatures from `extern dec` (#2122)
Note this is added to `tspd` which is not published yet so this can be
iterated over without any issues.

Adds a decorator signature generator. Generates 2 files:
- `<namespace>.ts` : Contains the decorator signatures that can be
imported and when declaring the decorators functions
- `<namespace>.ts-test.ts`: Contains some test using typescript type
system to make sure the package does reexport the right `$<name>` for
each decorator

---------

Co-authored-by: Brian Terlson <brian.terlson@microsoft.com>
2024-03-19 23:08:59 +00:00
Timothee Guerin c9e2f5887f
Fix cookies still saved (#3030) 2024-03-19 19:58:27 +00:00
Timothee Guerin 743c4b0a39
Fix another set of accessibility issues (#3031) 2024-03-19 18:57:02 +00:00
Timothee Guerin d8e4e860e4
Fix cookies (#3029)
Version 4 doesn't seem to be respecting the config, there is also many
different configs which does who knows what...
2024-03-18 20:31:04 +00:00
Timothee Guerin 4199f83575
Upgrade dependencies march 2024 (#3027)
General update of all dependencies, notable
- typescript 5.4
- vitest 1.4
2024-03-18 10:52:06 -07:00
Timothee Guerin 814e518ac9
Accessibility contrast tweaks (#3026)
- Make the light code theme have accessible contrast.
- Docsearch placeholder contrast tweak

Also minor tweak to the prismjs tokenizer to fix optional property
highlighting
2024-03-18 16:23:00 +00:00
Peter Marcu 9e655a95f5
Fixing alt text on website (#3025)
This PR should make sure there is alt text matching the image name on
each of the image elements.
2024-03-18 07:54:57 -07:00
Alexander Batishchev 7b07bbf4c7
Added .NET 8 to PR pipeline (#3023)
Added .NET 8 alongside Node 20, but not Node 18
2024-03-15 17:38:40 +00:00
Timothee Guerin 6d42ca6e65
Deprecate projected name (#2910)
fix [#2832](https://github.com/microsoft/typespec/issues/2832)
2024-03-13 12:48:07 -07:00
Timothee Guerin 00996bbe30
Don't prevent going to next stage when a warning is elevated to an error (#2983)
fix #2972
2024-03-12 22:14:42 +00:00
Timothee Guerin 128a508c25
Allow encode on a union (#2992)
fix [#2969](https://github.com/microsoft/typespec/issues/2969)
2024-03-12 14:49:17 -07:00
Timothee Guerin d8576effd5
Website & Docs Cleanup (#3002)
Co-authored-by: Mario Guerra <85648637+mario-guerra@users.noreply.github.com>
Co-authored-by: Libba Lawrence <llawrence@microsoft.com>
Co-authored-by: Allen Zhang <allenzhang@live.com>
Co-authored-by: Brian Terlson <brian.terlson@microsoft.com>
2024-03-11 18:56:35 -07:00
Timothee Guerin 57f0d47bef
Integrate 1ds telemetry in website (#2912) 2024-03-08 17:41:55 +00:00
Timothee Guerin 72fb582b3c
Add gif to vscode readme and rerelease (#3003) 2024-03-07 15:46:27 -08:00
Mario Guerra c31aafa07f
grammar fixes (#3000)
First round of website grammar fixes.
2024-03-07 17:25:25 +00:00
Timothee Guerin 8980ec31d0
Fix dev version published as latest (#2997) 2024-03-06 23:07:51 +00:00
Timothee Guerin 6d5fb9c047
Bump chronus github with fix to not crash on existing release (#2995) 2024-03-06 19:48:53 +00:00
Timothee Guerin 7312314bcb
Remove old message burried in changelog (#2989) 2024-03-05 16:05:57 -08:00
Timothee Guerin 9881002f1c
Bump versions for release march 2024 (#2988) 2024-03-05 15:31:47 -08:00
iscai-msft 4cafd969de
Add json schema test library (#2987) 2024-03-05 22:14:58 +00:00
Timothee Guerin d5380fb8e1
Add release notes for march 2024 release (#2986) 2024-03-05 13:36:38 -08:00