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

2818 Коммитов

Автор SHA1 Сообщение Дата
Wei Hu cec638d301
Response abstraction (#4438)
Resolves https://github.com/microsoft/typespec/issues/3693
2024-10-18 04:21:18 +00:00
Jorge Rangel f1bfe9cdf9
[http-client-csharp]: Don't include custom required literal properties in public ctor (#4783)
This PR addresses an issue where required spec properties that were
literals and then customized to another literal type were being
incorrectly included in the public constructor.

fixes: https://github.com/microsoft/typespec/issues/4747
2024-10-17 22:40:53 +00:00
Nisha Bhatia a689659f64
Update Generator to support Parent parameters (#4392)
Fixes: https://github.com/microsoft/typespec/issues/3969
2024-10-17 21:56:25 +00:00
JoshLove-msft 37f9883cdd
Respect usage for properties (#4781)
Fixes https://github.com/microsoft/typespec/issues/4780
2024-10-17 21:37:41 +00:00
Timothee Guerin 62b5855e9b
Add support for Record<T> in tspd (#4731)
fix [#4577](https://github.com/microsoft/typespec/issues/4577)
2024-10-17 20:51:59 +00:00
Timothee Guerin f3788f1df7
Fix float32/float64 docs (#4779)
fix #4748
2024-10-17 20:34:26 +00:00
Praven Kuttappan 73f61fc805
Update JS API parser version (#4750)
Update JS api parser version to 2.0.1
2024-10-17 20:23:18 +00:00
JoshLove-msft 7772f4f299
Fix handling for customization to fixed enums (#4767)
Fixes https://github.com/microsoft/typespec/issues/4744
2024-10-17 16:23:29 +00:00
Jorge Rangel a2ed4632d2
Support Customizing Discriminator Types as Fixed Enums (#4766)
This PR fixes an issue where a discriminator property was customized via
custom code to a custom fixed enum type and the generator was still
generating the discriminator value using the original type.

fixes: https://github.com/microsoft/typespec/issues/4636,
https://github.com/microsoft/typespec/issues/4636
2024-10-17 15:34:20 +00:00
Chenjie Shi 00f8d1f68c
[http-client-python] use wire name for paging item name and next link name when dpg model (#4760)
fix: https://github.com/microsoft/typespec/issues/4743

---------

Co-authored-by: iscai-msft <isabellavcai@gmail.com>
2024-10-17 15:29:30 +00:00
Xiaofei Cao eab50b952c
http-client-java, bump specs and fix ARM test (#4772)
manual fix in
007f079e10
2024-10-17 09:29:34 +00:00
dependabot[bot] 44b342f66d
Bump vite from 5.2.8 to 5.4.9 in /packages/http-client-csharp (#4728)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite)
from 5.2.8 to 5.4.9.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/releases">vite's
releases</a>.</em></p>
<blockquote>
<h2>create-vite@5.4.0</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/create-vite@5.4.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
<h2>create-vite@5.3.0</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/create-vite@5.3.0/packages/create-vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/blob/v5.4.9/packages/vite/CHANGELOG.md">vite's
changelog</a>.</em></p>
<blockquote>
<h2><!-- raw HTML omitted -->5.4.9 (2024-10-14)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: bump launch-editor-middleware to v2.9.1 (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18348">#18348</a>)
(<a
href="508d9ab834">508d9ab</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18348">#18348</a></li>
<li>fix(css): fix lightningcss dep url resolution with custom root (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18125">#18125</a>)
(<a
href="eae00b561e">eae00b5</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18125">#18125</a></li>
<li>fix(data-uri): only match ids starting with <code>data:</code> (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18241">#18241</a>)
(<a
href="96084d6e75">96084d6</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18241">#18241</a></li>
<li>fix(deps): bump tsconfck (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18322">#18322</a>)
(<a
href="dc5434ce87">dc5434c</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18322">#18322</a></li>
<li>fix(hmr): don't try to rewrite imports for direct CSS soft
invalidation (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18252">#18252</a>)
(<a
href="851b258c34">851b258</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18252">#18252</a></li>
<li>fix(ssr): (backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18150">#18150</a>)
fix source map remapping with multiple sources (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18204">#18204</a>)
(<a
href="262a8796d4">262a879</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18204">#18204</a></li>
<li>chore: update all url references of vitejs.dev to vite.dev (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18276">#18276</a>)
(<a
href="c23558a7af">c23558a</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18276">#18276</a></li>
<li>chore: update license copyright (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18278">#18278</a>)
(<a
href="1864eb17b2">1864eb1</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18278">#18278</a></li>
<li>docs: update homepage (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18274">#18274</a>)
(<a
href="ae4416349e">ae44163</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18274">#18274</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.4.8 (2024-09-25)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix(css): backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18113">#18113</a>,
fix missing source file warning with sass modern api custom importer (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18">#18</a>
(<a
href="7d47fc1c74">7d47fc1</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18183">#18183</a></li>
<li>fix(css): backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18128">#18128</a>,
ensure sass compiler initialized only once (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18184">#18184</a>)
(<a
href="8464d976b1">8464d97</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18128">#18128</a>
<a
href="https://redirect.github.com/vitejs/vite/issues/18184">#18184</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.4.7 (2024-09-20)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: treat config file as ESM in Deno (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18158">#18158</a>)
(<a
href="b5908a24ba">b5908a2</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18158">#18158</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.4.6 (2024-09-16)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: avoid DOM Clobbering gadget in
<code>getRelativeUrlFromDocument</code> (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18115">#18115</a>)
(<a
href="179b17773c">179b177</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18115">#18115</a></li>
<li>fix: fs raw query (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18112">#18112</a>)
(<a
href="6820bb3b9a">6820bb3</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18112">#18112</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.4.5 (2024-09-13)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix(preload): backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18098">#18098</a>,
throw error preloading module as well (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18099">#18099</a>)
(<a
href="faa2405e5d">faa2405</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18098">#18098</a>
<a
href="https://redirect.github.com/vitejs/vite/issues/18099">#18099</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.4.4 (2024-09-11)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix: backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/17997">#17997</a>,
ensure req.url matches moduleByEtag URL to avoid incorrect 304 (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18078">#18078</a>)
(<a
href="74a79c53b2">74a79c5</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/17997">#17997</a>
<a
href="https://redirect.github.com/vitejs/vite/issues/18078">#18078</a></li>
<li>fix: backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18063">#18063</a>,
allow scanning exports from <code>script module</code> in svelte (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18077">#18077</a>)
(<a
href="d90ba40474">d90ba40</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18063">#18063</a>
<a
href="https://redirect.github.com/vitejs/vite/issues/18077">#18077</a></li>
<li>fix(preload): backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18046">#18046</a>,
allow ignoring dep errors (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18076">#18076</a>)
(<a
href="8760293d68">8760293</a>),
closes <a
href="https://redirect.github.com/vitejs/vite/issues/18046">#18046</a>
<a
href="https://redirect.github.com/vitejs/vite/issues/18076">#18076</a></li>
</ul>
<h2><!-- raw HTML omitted -->5.4.3 (2024-09-03)<!-- raw HTML omitted
--></h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="898d61f94b"><code>898d61f</code></a>
release: v5.4.9</li>
<li><a
href="508d9ab834"><code>508d9ab</code></a>
fix: bump launch-editor-middleware to v2.9.1 (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18348">#18348</a>)</li>
<li><a
href="dc5434ce87"><code>dc5434c</code></a>
fix(deps): bump tsconfck (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18322">#18322</a>)</li>
<li><a
href="851b258c34"><code>851b258</code></a>
fix(hmr): don't try to rewrite imports for direct CSS soft invalidation
(<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18252">#18252</a>)</li>
<li><a
href="96084d6e75"><code>96084d6</code></a>
fix(data-uri): only match ids starting with <code>data:</code> (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18241">#18241</a>)</li>
<li><a
href="eae00b561e"><code>eae00b5</code></a>
fix(css): fix lightningcss dep url resolution with custom root (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18125">#18125</a>)</li>
<li><a
href="c23558a7af"><code>c23558a</code></a>
chore: update all url references of vitejs.dev to vite.dev (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18276">#18276</a>)</li>
<li><a
href="1864eb17b2"><code>1864eb1</code></a>
chore: update license copyright (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18278">#18278</a>)</li>
<li><a
href="ae4416349e"><code>ae44163</code></a>
docs: update homepage (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18274">#18274</a>)</li>
<li><a
href="262a8796d4"><code>262a879</code></a>
fix(ssr): (backport <a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/18150">#18150</a>)
fix source map remapping with multiple sources (#...</li>
<li>Additional commits viewable in <a
href="https://github.com/vitejs/vite/commits/v5.4.9/packages/vite">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vite&package-manager=npm_and_yarn&previous-version=5.2.8&new-version=5.4.9)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/typespec/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-17 08:27:35 +00:00
Haoling Dong 722c6de610
http-client-java, remove logics that uses raw_lro_meta_data (#4741) 2024-10-17 08:13:58 +00:00
Weidong Xu 1b3bdf5367
http-client-java, update test to fill exact param (#4770)
for https://github.com/Azure/cadl-ranch/pull/755, as some tests validate
the exact value of some parameter/property.

for the 2 file with only format change, I guess the reason is Alan
enabled spotless on emitter Java code (so `mvn package` would
automatically format the code)
2024-10-17 06:10:50 +00:00
Mingzhe Huang 0b9246764a
build(deps): bump tsp 0.61.2 (#4693)
- bump tsp 0.61.2 and corresponding libraries
- update according to API change

part of https://github.com/Azure/autorest.csharp/issues/5111

---------

Co-authored-by: Mingzhe Huang (from Dev Box) <mingzhehuang@microsoft.com>
2024-10-17 05:33:53 +00:00
Crystal YU 64f1dbae92
support apiVersion as path parameter (#4691)
Fix https://github.com/microsoft/typespec/issues/3986
Fix https://github.com/microsoft/typespec/issues/4673
Fix https://github.com/microsoft/typespec/issues/4690

- support api-version is a path parameter. We will add a `_apiVersion`
field in the client, and will use `_apiVersion` field in
`CreateXXXMessage`
- When the type of api-version is Enum, we will convert it to string
- Not to generate constructor for `ClientOptionsProvider` in
`stubLibraryVistor`.
2024-10-17 00:12:49 +00:00
Wei Hu ca9930e8ee
Set publish to internal for non-main branch trigger (#4687)
For non-main branch, we should release to internal npm feed instead of
public.
2024-10-16 23:41:35 +00:00
iscai-msft 9d769f7bb5
Python/fix pylint (#4631)
can fix part of https://github.com/Azure/autorest.python/issues/2802

---------

Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2024-10-16 19:58:46 +00:00
Sarangan Rajamanickam 9ae88f1cd0
[@typespec/http-specs] Change PassOnSuccess to passonCode (#4762)
One scenario was mislabled as `passOnSuccess` instead of `passOnCode`.
This PR fixes that and one of the file is unused after all the recent
modifications.

Please review and approve the PR. Thanks
2024-10-16 18:59:04 +00:00
JoshLove-msft 518ac2b2f4
Support serializing fields (#4746)
Fixes https://github.com/microsoft/typespec/issues/4638

Also fixes serialization for literal extensible enums (enums with one
default literal value).
2024-10-16 16:55:35 +00:00
Rodge Fu 1267f5188b
update ownership for IDE related code (#4755)
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
2024-10-16 15:19:15 +00:00
Yuchao Yan 5f21e0c53b
[http-client-python] release for 0.3.2 (#4754)
https://github.com/microsoft/typespec/pull/4718 will cause huge SDK diff
so better to release a new version ASAP.
2024-10-16 04:12:18 +00:00
Sarangan Rajamanickam e78f52ee51
[@typespec/spector] - Modify checks for headers & parameters (#4751)
As a continuation of https://github.com/microsoft/typespec/pull/4725,
while working on removing the handler for the scenarios in the
`typespec-azure` repository, I found some scenarios need added fix in
the `spector` library.

This PR consists of 2 changes:

1. The header keys must be changed to lowercase before reading and
comparing.
2. If the headers and parameters are array values, then we need to
handle them seperately.

I have tested this change with all the scenarios in both the `typespec`
and `typespec-azure` repositories. Once this change is merged, I can
open the PR for the scenario changes in `typespec-azure` repository.

Please review and approve this PR. Thanks
2024-10-15 22:12:54 +00:00
Timothee Guerin 115d15592e
Improve diagnostics when fails to load js (#4745)
fix [#4582](https://github.com/microsoft/typespec/issues/4582)

Also fix allow resolving `import` as a named condition for emitters
2024-10-15 19:50:28 +00:00
Timothee Guerin e9a65ca53d
Configure api extractor for json schema and add docs and refactor (#4732)
Configure api extractor and add docs. Additionally refactored to use
some newer pattern of decorator declaration.
2024-10-15 19:12:26 +00:00
Weidong Xu 657d4a0f1c
specs, fix mockapi in auth scenarios (#4740)
for invalid case, test is considered pass on 403 response code.
2024-10-15 16:28:30 +00:00
iscai-msft 0487edc372
remove postprocess script (#4718)
Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
2024-10-15 04:03:54 +00:00
Yuchao Yan 34624a02b4
[http-client-python] Fix deserialization subtype (#4716)
Related SDK diff:
https://github.com/Azure/autorest.python/pull/2430/files
2024-10-15 01:51:05 +00:00
JoshLove-msft 4e63496411
Ensure customized properties are included in full constructor (#4734) 2024-10-14 23:06:12 +00:00
Jorge Rangel c215c5a35a
Additional fixes for custom nullable types (#4722)
This PR adds some more fixes around namespace and name construction for
custom types.

Fixes: https://github.com/microsoft/typespec/issues/4635
2024-10-14 23:03:15 +00:00
Christopher Radek cec2b389c8
adds packages to chronus versioning config (#4730)
Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
2024-10-14 21:59:00 +00:00
JoshLove-msft 45787924a8
Add canonical view and fix customized struct serialization (#4712)
Fixes https://github.com/microsoft/typespec/issues/4624 and
https://github.com/microsoft/typespec/issues/3796
2024-10-14 21:36:29 +00:00
Timothee Guerin b002ca480b
Migrate spec lib to spector (#4686)
Combine the spec-lib package into spector as this is a bit too much
extra packages
2024-10-14 21:26:59 +00:00
Alitzel Mendez de763ceb0f
Mark discriminator properties consistently as requiered (#4663)
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
2024-10-14 21:12:29 +00:00
Sarangan Rajamanickam 3dfdd79c90
[@typespec/http-specs] - Remove handler for majority of the Scenarios (#4725)
This PR handles the removal of `handler` property in majority of the
Scenarios. All Scenarios are validated and tested. Please review and
approve the PR. Thanks
2024-10-14 21:09:20 +00:00
dependabot[bot] ab6d9512bd
Bump astro from 4.16.0 to 4.16.1 (#4726)
Bumps
[astro](https://github.com/withastro/astro/tree/HEAD/packages/astro)
from 4.16.0 to 4.16.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/releases">astro's
releases</a>.</em></p>
<blockquote>
<h2>astro@4.16.1</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/12177">#12177</a>
<a
href="a4ffbfaa5c"><code>a4ffbfa</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Ensure
we target scripts for execution in the router</p>
<p>Using <code>document.scripts</code> is unsafe because if the
application has a <code>name=&quot;scripts&quot;</code> this will shadow
the built-in <code>document.scripts</code>. Fix is to use
<code>getElementsByTagName</code> to ensure we're only grabbing real
scripts.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/12173">#12173</a>
<a
href="2d10de5f21"><code>2d10de5</code></a>
Thanks <a
href="https://github.com/ematipico"><code>@​ematipico</code></a>! -
Fixes a bug where Astro Actions couldn't redirect to the correct
pathname when there was a rewrite involved.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's
changelog</a>.</em></p>
<blockquote>
<h2>4.16.1</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/12177">#12177</a>
<a
href="a4ffbfaa5c"><code>a4ffbfa</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Ensure
we target scripts for execution in the router</p>
<p>Using <code>document.scripts</code> is unsafe because if the
application has a <code>name=&quot;scripts&quot;</code> this will shadow
the built-in <code>document.scripts</code>. Fix is to use
<code>getElementsByTagName</code> to ensure we're only grabbing real
scripts.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/12173">#12173</a>
<a
href="2d10de5f21"><code>2d10de5</code></a>
Thanks <a
href="https://github.com/ematipico"><code>@​ematipico</code></a>! -
Fixes a bug where Astro Actions couldn't redirect to the correct
pathname when there was a rewrite involved.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c73d65d7f7"><code>c73d65d</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12178">#12178</a>)</li>
<li><a
href="650dd22a7b"><code>650dd22</code></a>
Fix VT video test fail in firefox (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12188">#12188</a>)</li>
<li><a
href="58e22bd042"><code>58e22bd</code></a>
[ci] format</li>
<li><a
href="2d10de5f21"><code>2d10de5</code></a>
fix(routing): actions should redirect the original pathname (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12173">#12173</a>)</li>
<li><a
href="a4ffbfaa5c"><code>a4ffbfa</code></a>
Ensure router only targets scripts for execution (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12177">#12177</a>)</li>
<li><a
href="2f5b28e938"><code>2f5b28e</code></a>
Use p-queue instead of fastq (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12189">#12189</a>)</li>
<li><a
href="1f93fca1d3"><code>1f93fca</code></a>
Fix biome lint warning (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/12187">#12187</a>)</li>
<li>See full diff in <a
href="https://github.com/withastro/astro/commits/astro@4.16.1/packages/astro">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=astro&package-manager=npm_and_yarn&previous-version=4.16.0&new-version=4.16.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/typespec/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 20:40:11 +00:00
Weidong Xu 224d71a565
specs, back port cadl-ranch fix PR 750 (#4713)
back port fix in cadl-ranch (about "explode" query parameters in route
(uri template)
https://github.com/Azure/cadl-ranch/pull/750
2024-10-14 20:01:21 +00:00
Chenjie Shi dffa3cc918
back port https://github.com/Azure/cadl-ranch/pull/748 (#4714)
sync cadl-ranch fix of https://github.com/Azure/cadl-ranch/pull/748
2024-10-14 20:01:11 +00:00
Christopher Radek 6c6f3116ef
tsp-openapi3: support path-level parameters (#4708)
Fixes #4455 

Previously, the parameters defined as a child of a `path` were ignored.
Now they are added to the operations defined in each of the path's
methods.

The spec states that duplicates are not allowed in the final
operation-level parameter list, and the more specific (operation level)
replaces the less specific (path level) if there is a collision. A
combination of the location and name uniquely identify a parameter for
these purposes.

Example:
```yml
openapi: 3.0.0
info:
  title: (title)
  version: 0.0.0
tags: []
paths:
  /widgets/{id}:
    get:
      operationId: Widgets_read
      responses:
        "200":
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Widget"
    delete:
      operationId: Widgets_delete
      responses:
        "204":
          description: "There is no content to send for this request, but the headers may be useful. "
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
components:
  schemas:
    Widget:
      type: object
      required:
        - id
      properties:
        id:
          type: string

```

---------

Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
2024-10-14 17:55:53 +00:00
Timothee Guerin da9a31f2b2
Fix editor dark theme (#4719) 2024-10-14 16:34:06 +00:00
Weidong Xu 267a4f9c2c
http-client-java, eng, update jar and cadl-ranch (#4709) 2024-10-12 08:30:28 +00:00
Chenjie Shi 2daeb6ff13
[python] bump dependencies and version (#4692)
wait for fix: https://github.com/Azure/cadl-ranch/pull/748 and new
version of cadl-ranch

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2024-10-12 02:25:29 +00:00
Timothee Guerin eeee93e5d3
TSPD exports support (#4700) 2024-10-11 21:13:24 +00:00
Timothee Guerin c38162430a
Merge 0.61.2 hotfix back into main (#4703) 2024-10-11 20:57:07 +00:00
Timothee Guerin 8154a4da72
Suppress algolia key warning (#4696) 2024-10-11 19:47:12 +00:00
Jorge Rangel ff1725c4a8
Don't generate prop if custom prop exists in base (#4682)
This PR address the following bugs:
- If a model contains a spec property that was also added as a custom
model in it's base model, the derived model will not generate the
property.
- if a custom property is added to a base model and it includes the
`CodeGenSerialization` attribute, that property is included in
serialization ctor for the derived model.

fixes: https://github.com/microsoft/typespec/issues/4629
2024-10-11 16:37:47 +00:00
Kyle Zhang 3660144b4e
Fix OpenAPI3 type property should always be set when nullable property is present (#4672)
https://github.com/microsoft/typespec/issues/4584

---------

Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
2024-10-11 15:20:32 +00:00
Weidong Xu 3b21ce90d6
http-client-java, report TCGC diagnostics (#4382)
link https://github.com/Azure/typespec-azure/issues/1487

tested with

```
Union U {
  null;
};
```

after this PR, we will see
```
C:/github/typespec/packages/http-client-java/generator/http-client-generator-test/main.tsp:15:7 - error @azure-tools/typespec-client-generator-core/union-null: Cannot have a union containing only null types.
> 15 | union U {
     |       ^
```
and codegen fails (as this is an error).
2024-10-11 12:31:08 +00:00
Yalin Li fd9d7d77c2
Include Jinja templates in wheel (#4684)
Include Jinja templates in pygen wheel so that we can load the templates
when we support generating with pyodide.
2024-10-11 12:26:29 +00:00
Haoling Dong 7053237747
http-client-java, upgrade tcgc to 0.47.1 (#4688) 2024-10-11 07:01:47 +00:00