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

Version Management #274

Closed
NickNaso opened this issue May 22, 2018 · 6 comments
Closed

Version Management #274

NickNaso opened this issue May 22, 2018 · 6 comments
Assignees

Comments

@NickNaso
Copy link
Member

Hi everyone, I want add version management functions that are available on the N-API:

It's my intention add these two functions on Napi namespace as I did for AdjustExternalMemory see: #260

Are you agree or have some suggestions to help me?

@mhdawson
Copy link
Member

Makes sense to me. Not sure if creating a 'Util' object or something specific like 'Version' would be best. For these I'm leaning towards 'Util'

@devsnek
Copy link
Member

devsnek commented May 23, 2018

shouldn't you use NODE_VERSION and NAPI_VERSION instead?

@NickNaso
Copy link
Member Author

Hi @devsnek you're right it's too simple use NODE_VERSION and NAPI_VERSION, to access to these constant a developer needs only to import node.h. My thinking is to avoid as much as possible to import anything other than napi.h.

@mhdawson
Copy link
Member

I agree that we want to avoid the need to import node.h as that makes it easy to take a dependency without palnning to.

@NickNaso
Copy link
Member Author

NickNaso commented May 25, 2018

Ok in the next days I will try to add this feature.

@NickNaso NickNaso removed the question label May 31, 2018
@NickNaso NickNaso self-assigned this Aug 29, 2018
@NickNaso
Copy link
Member Author

I'm closing the issue because it's solved with #325.

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

No branches or pull requests

3 participants