-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Fix use-after free + Fix building on Windows + prebuild for Node, Electron or on x86 + add debug build + fix the tests and ci #444
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
88e553e
fix: let Cmake choose the generator
aminya 3c61fea
fix: fix building with VS2019 and VS2017
aminya 22dee8f
test: fix mocha config
aminya 0c61aa0
fix: resolve always expects a value - pass undefined
aminya 22d878a
fix: remove none-existing node-addon-api from package.json
aminya b8d295d
fix: add the required libs (es2018 and dom) to tsconfig
aminya 18307a5
fix: update libzmq version
aminya c7090c9
ci: use Node 14 in Travis
aminya 520f476
ci: use python 3 in Travis
aminya 629dfad
chore: prevent minwindef.h from defining max macro in the debug build
aminya 9c79db2
chore: add BuildType env variable to allow debug builds
aminya 0e0acbb
chore: enable exceptions in debug builds
aminya dc17ddd
chore: add address sanitizer support for MSVC in the debug build
aminya 2fb0d1e
fix: update prebuildify
aminya 47eaf2f
fix: prebuildify for both Node and Electron
aminya 608a615
fix: include node-addon-api from the dependency and remove vendor folder
aminya c858506
test: update weak-napi to help with gc detection
aminya be3eff2
test: disable typeScript-compatibility for older than 3.4.x
aminya 740b4df
chore: parametrize sanitizer build
aminya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
require: ['ts-node/register', 'choma'], | ||
spec: ['test/unit/*-test.ts', 'test/unit/compat/*-test.{ts,js}'], | ||
"expose-gc": true, | ||
"experimental-worker": true, | ||
recursive: true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
"@types/mocha": ">= 5.2", | ||
"@types/node": ">= 8.0", | ||
"@types/semver": ">= 0", | ||
"@types/weak-napi": "^2.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.9.0", | ||
"@typescript-eslint/parser": "^2.9.0", | ||
"benchmark": ">= 0", | ||
|
@@ -38,16 +39,16 @@ | |
"fs-extra": "^8.1.0", | ||
"gunzip-maybe": "^1.4.1", | ||
"mocha": ">= 4.0", | ||
"node-addon-api": "nodejs/node-addon-api", | ||
"node-addon-api": "^3.1.0", | ||
"node-fetch": "^2.6.0", | ||
"prebuildify": "^3.0", | ||
"prebuildify": "^4.1.2", | ||
"prettier": "^1.19.1", | ||
"semver": ">= 0", | ||
"tar-fs": "^2.0.0", | ||
"ts-morph": "^7.0.0", | ||
"ts-node": ">= 7", | ||
"typescript": ">= 3.6", | ||
"weak-napi": ">= 1.0" | ||
"weak-napi": "^2.0.2" | ||
}, | ||
"engines": { | ||
"node": ">= 10.2" | ||
|
@@ -74,7 +75,8 @@ | |
"install": "node-gyp-build", | ||
"ci:compile": "tsc --project tsconfig-build.json && node script/ci/downlevel-dts.js", | ||
"ci:doc": "typedoc --out docs --name zeromq.js --excludeProtected --excludePrivate --excludeNotExported --excludeExternals --externalPattern 'src/+(draft|native|compat).ts' --tsconfig tsconfig-build.json --mode file", | ||
"ci:prebuild": "prebuildify --napi --strip", | ||
"ci:prebuild": "npm run prebuildify", | ||
"prebuildify": "prebuildify --napi -t 12.0.0 -t [email protected] --strip", | ||
"dev:build": "rm -f vendor/* && touch vendor/.gitkeep && cp node_modules/node-addon-api/{*.h,LICENSE.md} vendor && prebuildify --napi --build-from-source --debug", | ||
"dev:test": "tsc --project tsconfig-build.json && node script/ci/downlevel-dts.js && mocha && script/format.sh && rm -f tmp/*", | ||
"dev:bench": "node --expose-gc test/bench" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we favor GitHub Actions over Travis for the 6.x branch moving forward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can. I prefer to do this in the follow-up pull requests to keep things simpler.