Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

dont use ES6 syntax in grammar #21

Merged
merged 2 commits into from
Jan 29, 2020
Merged

dont use ES6 syntax in grammar #21

merged 2 commits into from
Jan 29, 2020

Conversation

rueckstiess
Copy link
Contributor

@rueckstiess rueckstiess commented Jan 29, 2020

In c8b9e2 we removed transpilation to ES5, which broke Charts e2e tests. There are only two places where we use ES6 syntax. This PR replaces them with ES5 compatible code.

To test locally for Charts, you can yarn link this module, then yarn link mongodb-language-model from the charts root folder. Then build and run the e2e tests. Before this change, they would fail on the very first test with a blank screen and error Uncaught SyntaxError: Unexpected token ... in the dev console.

This PR can be merged and released as 1.6.1 after Charts and Compass have reviewed and approved.

In c8b9e2 we removed transpilation to ES5, which broke Charts e2e tests.
Co-Authored-By: Scott Sidwell <38820281+scottsidwell@users.noreply.github.com>
Copy link
Contributor

@matt-d-rat matt-d-rat left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@scottsidwell scottsidwell left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@imlucas imlucas merged commit 0dfa53d into master Jan 29, 2020
@imlucas imlucas deleted the dont-use-es6-syntax branch January 29, 2020 17:06
@imlucas
Copy link
Contributor

imlucas commented Jan 29, 2020

📦 mongodb-language-model@1.6.1

@imlucas
Copy link
Contributor

imlucas commented Jan 29, 2020

Restarted last travis job. https://travis-ci.com/10gen/charts/builds/146618819

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

Successfully merging this pull request may close these issues.

4 participants