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

fix(compat): update patch for typescript@5.5.0-beta #6248

Merged
merged 2 commits into from May 1, 2024

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Apr 24, 2024

What's the problem this PR addresses?

The PnP compatibility patch for TypeScript doesn't apply to typescript@5.5.0-beta.

Ref microsoft/TypeScript#35206

How did you fix it?

Rebased it.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@merceyz merceyz force-pushed the merceyz/fix/typescript-55-beta branch from 3d7ae22 to d58ffb4 Compare April 25, 2024 22:10
@merceyz merceyz marked this pull request as ready for review April 25, 2024 22:10
@merceyz merceyz marked this pull request as draft April 25, 2024 22:18
@Ayc0
Copy link
Contributor

Ayc0 commented Apr 26, 2024

Fixes #6250

@Ayc0
Copy link
Contributor

Ayc0 commented Apr 26, 2024

Hello @merceyz

I tried in the past to apply similar patches for new versions of TS, but I don't exactly know what are the steps to go from microsoft/TypeScript#35206 to the fixes in the yarn repo.
How do you do it?
Thanks!

@adrian-gierakowski
Copy link

would love to use 5.5-beta as well :)

@merceyz
Copy link
Member Author

merceyz commented May 1, 2024

@Ayc0 I create a new branch based on the upstream release branch and cherry-pick the commits from the last time I updated the patch and fix any conflicts that may show up.

@merceyz merceyz marked this pull request as ready for review May 1, 2024 14:09
@arcanis arcanis merged commit c7c0767 into master May 1, 2024
22 of 26 checks passed
@arcanis arcanis deleted the merceyz/fix/typescript-55-beta branch May 1, 2024 21:59
arcanis pushed a commit that referenced this pull request May 2, 2024
**What's the problem this PR addresses?**

The SDK changes in #6248 broke
support for older TypeScript versions.
I tested it on `5.4.1-rc` (master) and it was fine but it crashes on
5.2.0-beta
(https://github.com/yarnpkg/berry/blob/4308dca8091438e8f88682e59ef5ba5bc72241ca/package.json#L26)

**How did you fix it?**

Check the TypeScript version and only apply the patch if needed.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
merceyz added a commit that referenced this pull request May 2, 2024
**What's the problem this PR addresses?**

The PnP compatibility patch for TypeScript doesn't apply to
`typescript@5.5.0-beta`.

Ref microsoft/TypeScript#35206

**How did you fix it?**

Rebased it.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
merceyz added a commit that referenced this pull request May 2, 2024
**What's the problem this PR addresses?**

The SDK changes in #6248 broke
support for older TypeScript versions.
I tested it on `5.4.1-rc` (master) and it was fine but it crashes on
5.2.0-beta
(https://github.com/yarnpkg/berry/blob/4308dca8091438e8f88682e59ef5ba5bc72241ca/package.json#L26)

**How did you fix it?**

Check the TypeScript version and only apply the patch if needed.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants