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

Make babel understand TypeScript 3.7 syntax #50772

Merged
merged 4 commits into from
Nov 15, 2019

Conversation

timroes
Copy link
Contributor

@timroes timroes commented Nov 15, 2019

Summary

This PR actually adds support for the TS 3.7 syntax into babel, since we're not using tsc to compile but babel. This will also allow using those operators in JS code, which should be fine, given that both proposals are stage 3, which is our usual requirement for babel plugins.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@timroes timroes added chore Team:Operations Team label for Operations Team v8.0.0 v7.6.0 labels Nov 15, 2019
@timroes timroes requested a review from a team as a code owner November 15, 2019 13:28
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@@ -54,7 +54,7 @@ class RequestAdapter extends EventEmitter {
name,
startTime: Date.now(),
status: RequestStatus.PENDING,
id: _.get(params, 'id', uuid()),
id: params.id ?? uuid(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ℹ️ I just changed this line to see if it actually passes on CI too (and not just locally).

@timroes timroes added the release_note:skip Skip the PR/issue when compiling release notes label Nov 15, 2019
@timroes timroes requested a review from Bamieh November 15, 2019 15:53
Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@tylersmalley
Copy link
Contributor

@elasticmachine merge upstream

@tylersmalley
Copy link
Contributor

tylersmalley commented Nov 15, 2019

There were some flaky tests I skipped in master since you opened this PR. To avoid the chance they would effect this CI run I merged the updates in from master. Since we are not currently canceling in-flight CI jobs we should still see the originating job reported. Hoping this cuts down on the waiting.

@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@timroes timroes merged commit bbb9421 into elastic:master Nov 15, 2019
@timroes timroes deleted the babel-ts-3.7 branch November 15, 2019 17:29
timroes pushed a commit to timroes/kibana that referenced this pull request Nov 15, 2019
* Use correct babel plugins

* Make one change using new operator

* Fix i18n babel config
timroes pushed a commit that referenced this pull request Nov 16, 2019
* Use correct babel plugins

* Make one change using new operator

* Fix i18n babel config
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 18, 2019
…her [skip ci]

* upstream/master: (54 commits)
  allows plugins to define validation schema for "enabled" flag (elastic#50286)
  Add retry to find.existsByDisplayedByCssSelector (elastic#48734)
  [i18n] integrate latest translations (elastic#50864)
  ui/resize_checker 👉 src/plugins/kibana_utils (elastic#44750)
  Fix @reach/router types (elastic#50863)
  [ML] Adding ML node warning to overview and analytics pages (elastic#50766)
  Bump storybook dependencies (elastic#50752)
  [APM Replace usage of idx with optional chaining (elastic#50849)
  [SIEM] Fix eslint errors (elastic#49713)
  Improve "Browser client is out of date" error message (elastic#50296)
  [SIEM][Detection Engine] REST API improvements and changes from UI/UX feedback (elastic#50797)
  Move @kbn/es-query into data plugin - es-query folder (elastic#50182)
  Index Management new platform migration (elastic#49359)
  Increase retry for cloud snapshot to finish (elastic#50781)
  Removing EuiCode from inside EuiPanel (elastic#50683)
  [SIEM] Tests for search_after and bulk index (elastic#50129)
  Make babel understand TypeScript 3.7 syntax (elastic#50772)
  Fixing mocha tests and broken password change status codes (elastic#50704)
  [Canvas] Use compressed forms in sidebar (elastic#49419)
  Add labels to shell scripts in Jenkins (elastic#49657)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants