Commit graph

1319 commits

Author SHA1 Message Date
Toyo Li
6318d2b210
feat: support rebuild and build for cross-compiling Node-API module to wasm on Windows (#2974) 2024-06-28 15:36:30 +01:00
Toyo Li
ea99fea834
feat(gyp): update gyp to v0.18.1 (#3039)
* feat(gyp): update gyp to v0.18.1

* ci: setup ninja

* ci: visual-studio job use python 3.12
2024-06-12 10:23:37 +01:00
Sharad Chandran R
c495083d99
Update binding.gyp-files-in-the-wild.md (#3023)
Add node-oracledb binding.gyp file
2024-05-31 10:26:21 +01:00
Hüseyin Açacak
323957b74e
win: add an arch check to VS 2019 (#3025) 2024-04-23 15:46:11 +02:00
Christian Clauss
93186f10c9
docs: node-pre-gyp is no longer maintained (#3015)
* docs: `node-pre-gyp` is no longer maintained

* Update README.md

* Update README.md
2024-04-15 17:05:08 -07:00
Luke Karrys
141aa6bf02
deps: proc-log@4.0.0 (#3022) 2024-04-15 17:03:47 -07:00
Matt
b22d5eef86
deps: tar@6.2.1 (#3021) 2024-04-15 17:03:22 -07:00
Christian Clauss
0bab6a071b
GitHub Actions: npm test is failing Windows tests on M1 Macs (#3011)
* GitHub Actions: npm test is failing Windows tests on M1 Macs

`npm test` is running and failing Windows `find-visualstudio` tests on an M1 Mac!!!

These tests are not being run or not failing on Intel Macs.

* Only run "Find Visual Studio" tests on Windows

* Update test/test-find-visualstudio.js

Co-authored-by: Christian Clauss <cclauss@me.com>

---------

Co-authored-by: Stefan Stojanovic <StefanStojanovic@users.noreply.github.com>
2024-04-11 17:34:49 +02:00
Victor Ejike Nwosu
77737e45db
Add Chocolatey Guide for node-gyp on Windows (#3008)
* Add chocolatey install

* Revert unwanted diffs

* Add chocolatey guide

* Use bash for code block

* Update README.md

Co-authored-by: Christian Clauss <cclauss@me.com>

* Move chocolatey bash to top

* Fix section identation

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2024-04-07 22:04:04 +02:00
Christian Clauss
a6b48fca99
docs: Installation -- Python >= v3.12 requires node-gyp >= v10 (#3010)
We are getting a lot of issues opened on this topic so add it to our installation instructions.
* #2869

> [!Important]
> Python >= v3.12 requires `node-gyp` >= v10
2024-04-07 10:59:14 +01:00
Christian Clauss
e1304e870b
Revert 2024-04-06 00:16:38 +02:00
Christian Clauss
7647a78bd7
Update tests.yml 2024-04-06 00:03:30 +02:00
SmallY
9fd7936f0d
docs: add the way to configuring Python dependency for Windows PowerShell (#2996) 2024-04-03 10:29:34 +01:00
github-actions[bot]
f90ce122fe
chore(main): release 10.1.0 (#2989)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-25 11:04:31 -07:00
Hüseyin Açacak
c4729129da
lib: print Python executable path using UTF-8 (#2995)
* lib: print Python executable path using UTF-8

The Python executable path may have non-ASCII characters, which can make
the print function fail if the environment encoding is different. This fixes
this issue by using stdout.buffer, which can be used with UTF-8 encoding
for the output, regardless of the environment encoding.

Fixes: https://github.com/nodejs/node-gyp/issues/2829

* fixup! lib: print Python executable path using UTF-8
2024-03-13 09:20:35 -07:00
Christian Clauss
1205fb084c
Fix lint: ruff check --select=UP032 --fix (#2994) 2024-03-12 21:54:17 -07:00
Luke Karrys
fbf3fda875
Use new branch name format for release please CI tests 2024-03-08 15:59:51 -07:00
Ayushman Chhabra
0035d8e9dc
chore: upgrade release please action from v2 to v4 (#2982)
* chore(release-please-action): upgrade from v2 to v4

* chore(ci): remove target branch

* chore(release-please): disable `include-component-in-tag`

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>

* chore(release-please): format JSON properties per line

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>

* Remove last release sha

---------

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
Co-authored-by: Luke Karrys <luke@lukekarrys.com>
2024-03-06 14:03:52 -07:00
Stefan Stojanovic
391cc5b9b2
win: update supported vs versions (#2959)
Drop VS2017 support for Node.js v22 and above.

Refs: https://github.com/nodejs/build/pull/3603
Refs: https://github.com/nodejs/node/pull/45427
2024-03-06 17:32:44 +01:00
Jaroslav
109e3d4245
feat: improve visual studio detection (#2957)
Detect visual studio installation using the VSSetup module and
Get-VSSetupInstance method. It works even in systems with the
Constrained language mode of PowerShell.
2024-02-09 02:33:54 +01:00
Michael Dawson
329873141f
src: add support for locally installed headers (#2964)
Some linux distros allow headers to be installed through
tools like rpm. If the runtime sets
process.config.variables.use_prefix_to_find_headers, look
for matching headers based on the directory set for the
prefix in process.config.variables.prefix

Signed-off-by: Michael Dawson <midawson@redhat.com>
Co-authored-by: Luke Karrys <luke@lukekarrys.com>
2024-01-29 12:03:30 -07:00
Christian Clauss
7705a22f31
docs: npm is currently v10 (#2970) 2024-01-29 11:12:57 -07:00
Davee
a87d0bf458
refine readme Visual C++ Build Environment text for clarity (#2965)
* refine readme text for clarity

* refine readme Visual C++ build env for clarity
2024-01-25 21:23:49 +01:00
Christian Clauss
c24cead6e3
Revert "build(deps): bump google-github-actions/release-please-action from 2 to 4" (#2967) 2024-01-25 07:32:33 +01:00
dependabot[bot]
b1f1808bff
build(deps): bump google-github-actions/release-please-action (#2961)
Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from 2 to 4.
- [Release notes](https://github.com/google-github-actions/release-please-action/releases)
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/release-please-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: google-github-actions/release-please-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 20:11:30 +01:00
dependabot[bot]
3f0df7e933
build(deps): bump actions/setup-python from 4 to 5 (#2960)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 08:15:15 +01:00
Christian Clauss
7f58bc8144
Keep GitHub Actions up to date with Dependabot
* https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
2024-01-17 07:52:35 +01:00
Artur Yapparov
ae8478ec32
docs: remove outdated Node versions from readme (#2955)
Refs: https://github.com/nodejs/node-gyp/issues/2953
2023-12-25 14:07:56 +01:00
Luke Karrys
cff9ac2c30 chore: only run release please on push
And then run release-please tests on release PRs
2023-11-06 09:49:22 -07:00
Mike McCready
b42e796617 docs: remove outdated update engines.node reference in 10.0.0 changelog 2023-11-02 15:36:54 -04:00
github-actions[bot]
da19158e7a chore: release 10.0.1 2023-11-02 14:13:49 -04:00
Richard Lau
b39e6819aa fix: use local util for findAccessibleSync()
The `findAccessibleSync()` function is in the local `util` module
instead of Node.js' builtin `util` module.
2023-11-02 12:14:29 -04:00
Luke Karrys
a68586a67d
chore: use platform specific timeouts in tests 2023-10-29 11:06:34 -07:00
Luke Karrys
4e0ed99256
chore: lint fixes 2023-10-29 10:45:50 -07:00
Luke Karrys
7de1f5f32d
chore: add parallel test logging 2023-10-29 10:29:40 -07:00
github-actions[bot]
4c302cad0e
chore: release 10.0.0 (#2920)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-28 16:47:34 -07:00
Luke Karrys
3032e1061c
chore: run tests after release please PR 2023-10-28 16:24:46 -07:00
Luke Karrys
864a979930
feat!: use .npmignore file to limit which files are published (#2921)
* feat!: use package.json files to limit which files are published

Fixes: #2372

* Use npmignore instead of package.json#files

* Add update-gyp.py to npmignore

* Add install to pack test

* Use output var for pack dir

* Move existing .gitignore entries to .npmignore

* Sort git and npm ignores

* Update and cleanup workflows
2023-10-28 16:07:44 -07:00
Luke Karrys
4e493d4fb2
chore: misc testing fixes (#2930)
* chore: misc test fixes

* Sort test runs by os first

* Use cross-env for test env var

* Try sorting matrix params

* Make FAST_TEST the default and rename to FULL_TEST

* Separate helper functions to not need to export test obj in files
2023-10-28 14:13:10 -07:00
Luke Karrys
d52997e975 feat: convert internal classes from util.inherits to classes
BREAKING CHANGE: the `Gyp` class exported is now created using
ECMAScript classes and therefore might have small differences to classes
that were previously created with `util.inherits`.
2023-10-28 09:29:04 -07:00
Luke Karrys
355622f4aa feat: convert all internal functions to async/await
BREAKING CHANGE: All internal functions have been coverted to return
promises and no longer accept callbacks. This is not a breaking change
for users but may be breaking to consumers of `node-gyp` if you are
requiring internal functions directly.
2023-10-28 08:59:57 -07:00
Luke Karrys
1b3bd341b4
feat!: drop node 14 support (#2929)
BREAKING CHANGE: `node-gyp` now supports node `^16.14.0 || >=18.0.0`
2023-10-27 21:18:49 -07:00
Luke Karrys
e388255314
deps: which@4.0.0 (#2928) 2023-10-27 21:12:59 -07:00
Luke Karrys
059bb6fd41
deps: make-fetch-happen@13.0.0 (#2927) 2023-10-27 21:12:49 -07:00
Luke Karrys
4bef1ecc75
deps: glob@10.3.10 (#2926) 2023-10-27 21:12:39 -07:00
Luke Karrys
21a7249b40
chore: add check engines script to CI (#2922) 2023-10-27 20:51:20 -07:00
DeeDeeG
707927cd57
feat(gyp): update gyp to v0.16.1 (#2923)
* feat(gyp): update gyp to v0.15.1

* Add Python 3.12 to tests

* Try to fix CI

* Try specifying msvs-version

* Modify the visual-studio matrix

* Fix pythonLocation var

* Fix Python tests

* Get path

* polish

* feat(gyp): update gyp to v0.16.0

* feat(gyp): update gyp to v0.16.1

* CI: Don't install Python 'packaging' module (vendored in 'gyp-next' now)

* Apply suggestions from code review

* Upgrade to actions/checkout@v4

---------

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-27 17:12:14 -07:00
David Sanders
d644ce4831
docs: update applicable GitHub links from master to main (#2843)
Signed-off-by: David Sanders <dsanders11@ucsbalum.com>
2023-10-27 16:53:27 -07:00
Luke Karrys
4a50fe3157
chore: empty commit to add changelog entries from #2770
feat!: update engines.node to ^14.17.0 || ^16.13.0 || >=18.0.0
deps: nopt@^7.0.0
feat: replace npmlog with proc-log
deps: standard@17.0.0 and fix linting errors
deps: which@3.0.0
fix: promisify build command
deps: glob@8.0.3
feat: drop rimraf dependency
fix: use fs/promises in favor of fs.promises
2023-10-27 10:51:07 -07:00
Alex
26683e993d
chore: GitHub Workflows security hardening (#2740)
* build: harden tests.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden release-please.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden visual-studio.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* Update release-please.yml

---------

Signed-off-by: Alex <aleksandrosansan@gmail.com>
2023-10-27 10:45:09 -07:00