Skip to content

Specify a minimum TypeScript version using typesVersions #9116

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hsubox76
Copy link
Contributor

Specified a minimum version of TypeScript required using typesVersions field. If the version is below, the TS compiler directs the compiler to use a typings file called typescript-not-supported.ts which contains a single string which will be logged as a syntax error in the TS compiler, and provide useful error info to the user.

Following user suggestions here: microsoft/TypeScript#32166

Fixes #8837

I chose 4.5 because due to the issue above we know that the SDK requires at least 4.5. I'm not sure if there are any other TS features we are using that require an even higher version (in a product or bundle that user wasn't using) but we can increase it if we discover any.

@hsubox76 hsubox76 added this to the v12 milestone Jun 23, 2025
Copy link

changeset-bot bot commented Jun 23, 2025

🦋 Changeset detected

Latest commit: f54d039

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/app Minor
firebase Minor
@firebase/app-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Changeset File Check ⚠️

  • Warning: This PR modifies files in the following packages but they have not been included in the changeset file:%0A - @firebase/app-check%0A%0A Make sure this was intentional.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 24, 2025

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 24, 2025

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.

typescript minimum version not indicated by peer dependency
2 participants