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

Do not import constants from @material/textfield internals #639

Merged
merged 2 commits into from
Jan 29, 2019

Conversation

gugu
Copy link
Contributor

@gugu gugu commented Jan 28, 2019

This line imports constants module not from @material/textfield/dist, but from original source code

import {VALIDATION_ATTR_WHITELIST} from '@material/textfield/constants';

@material/textfield/constants is written in Babel language (I don't know how to call it) and contains babel export construction. If someone tries to use textfield from node.js test, it will fail

It is regression as it worked for version 0.7.0

@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

Merging #639 into rc0.10.0 will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           rc0.10.0     #639   +/-   ##
=========================================
  Coverage     94.83%   94.83%           
=========================================
  Files            67       67           
  Lines          2768     2768           
  Branches        414      414           
=========================================
  Hits           2625     2625           
  Misses           50       50           
  Partials         93       93
Impacted Files Coverage Δ
packages/text-field/Input.tsx 96.72% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae38323...b18b79b. Read the comment docs.

Copy link

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

Yes you're correct. It is not compiling the ES6. We'll just have to revisit later as I'd only like this list in one place.

@moog16 moog16 changed the base branch from master to rc0.10.0 January 29, 2019 06:09
This line imports constants module not from @material/textfield/dist, but from original source code
```
import {VALIDATION_ATTR_WHITELIST} from '@material/textfield/constants';
```

`@material/textfield/constants` is written in Babel language (I don't know how to call it) and contains babel export construction. If someone tries to use textfield from node.js test, it will fail

It is regression as it worked for version 0.7.0
@moog16 moog16 merged commit 3e0e8b6 into material-components:rc0.10.0 Jan 29, 2019
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.

3 participants