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

Use node 16.x #776

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Use node 16.x #776

merged 2 commits into from
Apr 7, 2022

Conversation

propheel
Copy link
Contributor

@propheel propheel commented Apr 6, 2022

It required converting mocha tests code into async since @wdio/sync is deprecated starting with node v16. It removed the dependency on fibers and on node-gyp + python indirectly though which is a great thing.

Also moved away from node-sass to sass since node-sass is deprecated which addresses #762 .

It is also a beginning of Maputnik upgrade #775

Feel free to share comments.

It required converting mocha tests code into async since [@wdio/sync is
deprecated](https://webdriver.io/docs/sync-vs-async/) starting with
node v16.
It removed the dependency on fibers and on [node-gyp + python](https://
webdriver.io/docs/sync-vs-async/#common-issues-in-sync-mode) indirectly
though which is a great thing.

Also moved away from node-sass to sass since [node-sass is deprecated]
(https://sass-lang.com/blog/libsass-is-deprecated).
@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 6, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c77d8f6:

Sandbox Source
maputnik/editor Configuration

@propheel
Copy link
Contributor Author

propheel commented Apr 6, 2022

Was looking into why test/standalone-chrome keeps failing all the time and apparently there might be a problem with sandbox + /dev/shm size for Docker image. Will share /dev/shm volume with host to mitigate.

Tried to use runner machine instead of Docker images with headless mode, but Firefox does not support WebGL in headless mode and two tests were failing as there was no .mapboxgl-canvas element. Need to investigate it some time later.

@pathmapper
Copy link
Contributor

Wow, this great @propheel, thanks a bunch and welcome to Maputnik! 🎉

It removed the dependency on fibers and on node-gyp + python indirectly though which is a great thing.

👍 especially the dependency on fibers caused much annoyance.

@pathmapper pathmapper merged commit f5646f5 into maplibre:master Apr 7, 2022
@propheel propheel deleted the useNode16 branch April 7, 2022 09:14
@propheel
Copy link
Contributor Author

propheel commented Apr 7, 2022

Thank you @pathmapper ! This is actually my first contribution to OSS in my life. I didn't expect such great experience! 😄

Hope that it will stay along with more PRs that will come 😉

@pathmapper
Copy link
Contributor

@propheel glad you chose this project 😄

If you would like to tell something about what you're using Maputnik for, please feel free to post it in #164.

@pathmapper pathmapper mentioned this pull request May 7, 2022
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.

2 participants