Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ts-http-runtime] minimal API surface #31627

Merged
merged 13 commits into from
Dec 3, 2024
Merged

Conversation

timovv
Copy link
Member

@timovv timovv commented Nov 4, 2024

Packages impacted by this PR

  • @typespec/ts-http-runtime

Describe the problem that is addressed by this PR

We're preparing for an initial release of this package. This PR pares back the unbranded Core's exports to the smallest possible API surface necessary which will still allow code generated by the Modular emitter to work.

The idea is that in time, much (if not all) of the surface that this PR removes will be re-added as we build up more functionality in the emitter and as we migrate the Azure Core to depend on this unbranded package. However, removing all but the essentials up front will allow us to be more deliberate about adding API surface and reduces the risk of exposing dead surface.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@typespec/ts-http-runtime

@timovv timovv force-pushed the ts-http-runtime/trim branch 2 times, most recently from df4479c to d58a2b5 Compare November 4, 2024 22:51
@timovv timovv force-pushed the ts-http-runtime/trim branch from 7b2581f to 288e1eb Compare November 7, 2024 17:21
@timovv timovv marked this pull request as ready for review November 18, 2024 23:43
@timovv timovv requested review from bterlson and a team as code owners November 18, 2024 23:43
@timovv timovv merged commit ca341cb into Azure:main Dec 3, 2024
14 checks passed
jeremymeng added a commit to jeremymeng/azure-sdk-for-js that referenced this pull request Dec 17, 2024
Document Intelligence bumping its `typescript` dev dependency version to
~5.7.2, and caused some other packages to also use ~5.7.2.  This leads to the
build error in ts-http-runtime, where newer version of lib.dom.d.ts expects
`bytes` property in `File` type.

`bytes` property was added previously in PR
Azure#31990, but got removed in PR
Azure#31627 maybe due to bad merge?

It also seems to be a pnpm or rush bug that the pnpm-lock.yaml file have
[email protected] for other packages that depends on ~5.6.2, for example,
ts-http-runtime:

https://github.com/Azure/azure-sdk-for-js/blob/8a7d4e90ac3795b0494653eb04cebd6bc0f3213d/common/config/rush/pnpm-lock.yaml#L19848

This also results in api.md changes for RestError's `[custom]` logging
method.

While we investigate further into that, this PR should restore
js - core pipeline to green status.
jeremymeng added a commit that referenced this pull request Dec 17, 2024
Document Intelligence bumping its `typescript` dev dependency version to
~5.7.2, and caused some other packages to also use ~5.7.2. This leads to
the
build error in ts-http-runtime, where newer version of lib.dom.d.ts
expects
`bytes` property in `File` type.

`bytes` property was added previously in PR
#31990, but got removed in
PR
#31627 maybe due to bad
merge?

It also seems to be a pnpm or rush bug that the pnpm-lock.yaml file have
[email protected] for other packages that depends on ~5.6.2, for example,
ts-http-runtime:


https://github.com/Azure/azure-sdk-for-js/blob/8a7d4e90ac3795b0494653eb04cebd6bc0f3213d/common/config/rush/pnpm-lock.yaml#L19848

This also results in api.md changes for RestError's `[custom]` logging
method.

While we investigate further into that, this PR should restore
js - core pipeline to green status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants