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

MNT: Bump hed-validator from 3.5.0 to 3.7.1 #1464

Merged
merged 3 commits into from Jun 7, 2022
Merged

Conversation

rwblair
Copy link
Member

@rwblair rwblair commented Jun 3, 2022

fixes #1457

@rwblair
Copy link
Member Author

rwblair commented Jun 3, 2022

Looks like new hed-validator uses class properties which aren't supported by our old nextjs/webpack/babel setup. babel es2022 presets include the plugin to handle these.

@VisLab
Copy link
Member

VisLab commented Jun 7, 2022

@rwblair Do we need to do anything about this or can you do this? We would like to get this pushed through as it significantly improves the error reporting on the HED side.

@effigies
Copy link
Collaborator

effigies commented Jun 7, 2022

@VisLab Ross is out for a couple weeks. If your group knows how to fix this and can get tests passing, then I'm happy to merge.

@happy5214
Copy link
Collaborator

I went ahead and bypassed the issue by releasing version 3.7.1 of hed-validator, which refactors the static constants as ordinary module-level constant variables. This should resolve the errors.

@happy5214
Copy link
Collaborator

@effigies I don't have commit rights to this repository, so I need the package.json and package-lock.json updated to use version 3.7.1 of hed-validator.

npm install -w bids-validator hed-validator@^3.7.1

@codecov
Copy link

codecov bot commented Jun 7, 2022

Codecov Report

Merging #1464 (85d0996) into master (94ee522) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1464   +/-   ##
=======================================
  Coverage   84.02%   84.02%           
=======================================
  Files          90       90           
  Lines        3650     3650           
  Branches     1109     1109           
=======================================
  Hits         3067     3067           
  Misses        489      489           
  Partials       94       94           

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 94ee522...85d0996. Read the comment docs.

@effigies
Copy link
Collaborator

effigies commented Jun 7, 2022

githubPagesTest passes. Note that we do see an error:

error - Your project has an older version of ESLint installed (5.16.0). Please upgrade to ESLint version 7 or later

I will open a separate PR to avoid infecting this one.

@effigies effigies changed the title bump hed-validator from 3.5.0 to 3.7.0 MNT: Bump hed-validator from 3.5.0 to 3.7.1 Jun 7, 2022
@effigies effigies merged commit f3b443b into master Jun 7, 2022
@effigies effigies deleted the bump_hed_validator branch June 7, 2022 19:17
@effigies
Copy link
Collaborator

effigies commented Jun 7, 2022

@happy5214 @VisLab Do you need a validator release, or are you able to work with it as a development version?

@VisLab
Copy link
Member

VisLab commented Jun 7, 2022 via email

@effigies
Copy link
Collaborator

effigies commented Jun 7, 2022

Looks like I don't have permissions to upload to npm. I'll see if I can get them, but with people on vacation it might be slow...

@VisLab
Copy link
Member

VisLab commented Jun 7, 2022 via email

@effigies
Copy link
Collaborator

effigies commented Jun 8, 2022

Well, managed to tag and push to git with lerna, but attempting to publish to npm is failing.

lerna info publish Publishing packages to npm...
lerna info Verifying npm credentials
lerna http fetch GET 200 https://registry.npmjs.org/-/npm/v1/user 431ms
lerna http fetch GET 200 https://registry.npmjs.org/-/org/cjmarkie/package?format=cli 324ms (cache updated)
lerna info Checking two-factor auth mode
lerna http fetch GET 200 https://registry.npmjs.org/-/npm/v1/user 263ms
lerna ERR! Error: Source and destination must not be the same.
lerna ERR!     at /home/chris/.npm/_npx/d5cad42883f80c04/node_modules/fs-extra/lib/util/stat.js:39:17
lerna ERR! lerna Source and destination must not be the same.

Might be jprichardson/node-fs-extra#657 but don't have time to track down right now. Tried on two separate computers with different node installations. In case someone else has ideas...

@rwblair
Copy link
Member Author

rwblair commented Jun 8, 2022

Not sure what was up with lerna. was able to publish just using npm by itself:
https://www.npmjs.com/package/bids-validator

@VisLab Let us know if the published package works as expected for you.

@effigies
Copy link
Collaborator

effigies commented Jun 8, 2022

Thanks @rwblair! Please stop working and have a beer.

@VisLab
Copy link
Member

VisLab commented Jun 8, 2022 via email

@rwblair
Copy link
Member Author

rwblair commented Oct 11, 2022 via email

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.

Bump hed-validator version in package-lock.json
4 participants