8000 dependencies: Downgrade typescript to v3.4.5. by priyank-p · Pull Request #12476 · zulip/zulip · GitHub
[go: up one dir, main page]

Skip to content

dependencies: Downgrade typescript to v3.4.5. #12476

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

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

priyank-p
Copy link
Member

In 537014e, we upgraded typescript
to v3.5.1 which causes eslint to complain that it doesn't support the
newer version yet:

$ tools/lint tools/webpack.config.ts
eslint    | =============
eslint    |
eslint    | WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.
eslint    |
eslint    | You may find that it works just fine, or you may not.
eslint    |
eslint    | SUPPORTED TYPESCRIPT VERSIONS: >=3.2.1 <3.5.0
eslint    |
eslint    | YOUR TYPESCRIPT VERSION: 3.5.1
eslint    |
eslint    | Please only submit bug reports when using the officially supported version.
eslint    |
eslint    | =============

This commit upgrades to v3.4.5 instead to reverting the original commit
since newer typescript version is supported.

Testing Plan:
Running tools/lint tools/webpack.config.ts eslint stops complaning about unsupported version.

In 537014e, we upgraded typescript
to v3.5.1 which causes eslint to complain that it doesn't support the
newer version yet:

```
$ tools/lint tools/webpack.config.ts
eslint    | =============
eslint    |
eslint    | WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.
eslint    |
eslint    | You may find that it works just fine, or you may not.
eslint    |
eslint    | SUPPORTED TYPESCRIPT VERSIONS: >=3.2.1 <3.5.0
eslint    |
eslint    | YOUR TYPESCRIPT VERSION: 3.5.1
eslint    |
eslint    | Please only submit bug reports when using the officially supported version.
eslint    |
eslint    | =============
```

This commit upgrades to v3.4.5 instead to reverting the original commit
since newer typescript verison is supported.
@timabbott
Copy link
Member

Ick, OK, downgrading.

@timabbott timabbott merged commit 4d77ef9 into zulip:master Jun 3, 2019
@timabbott
Copy link
Member

Oops, unmerged due to CI errors.

@andersk
Copy link
Member
andersk commented Jun 3, 2019

ESLint’s definition of “supported TypeScript version” is “the version they test against”, but using a different one doesn’t seem like a huge deal. See https://github.com/typescript-eslint/typescript-eslint/blob/master/README.md#supported-typescript-version and typescript-eslint/typescript-eslint#184 for some context. We could turn off that warning with warnOnUnsupportedTypeScriptVersion: false.

@timabbott
Copy link
Member

Turning of that warning sounds like the right solution to me.

@@ -46,7 +46,7 @@
"to-markdown": "3.1.0",
"ts-loader": "5.3.3",
"ts-node": "7.0.1",
"typescript": "3.5.1",
"typescript": "3.5.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes, Looks like I make this commit wrong. I put this version and ran yarn install and it prompted me that this version is not valid so I picked v3.4.5. I though yarn would actually update this but it didn't and I lost track this. (And provision afterwards I think ran fine for me since it was cached)

@priyank-p
Copy link
Member Author

I created #12477 for turning off the warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0