-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
native: error handling, bump neon to 1.0.0
native: remove panics, bump edition bump indexer-native version declare napi 6 workflow to test binaries back out specified napi versions fix json remove node 17 support restore bin publish workflow ensure lib name is indexer_native
- Loading branch information
Showing
7 changed files
with
114 additions
and
102 deletions.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ authors = [ | |
"Theo Butler <[email protected]>", | ||
] | ||
license = "MIT" | ||
edition = "2018" | ||
edition = "2021" | ||
|
||
[lib] | ||
name = "indexer_native" | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
|
@@ -17,5 +18,5 @@ arc-swap = "1.2" | |
eip-712-derive = { git = "https://github.com/graphprotocol/eip-712-derive" } | ||
keccak-hash = "0.10.0" | ||
lazy_static = "1.4" | ||
neon = { version = "0.10", default-features = false, features = ["napi-6"] } | ||
neon = { version = "1.0.0", default-features = false, features = ["napi-6"] } | ||
secp256k1 = { version = "0.27", features = ["recovery"] } |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@graphprotocol/indexer-native", | ||
"version": "0.20.11", | ||
"version": "0.21.4", | ||
"description": "Performance sensitive indexer code", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
|
@@ -16,13 +16,31 @@ | |
}, | ||
"author": "Zac Burns <[email protected]>", | ||
"license": "MIT", | ||
"os": [ | ||
"darwin", | ||
"linux" | ||
], | ||
"cpu": [ | ||
"x64", | ||
"arm", | ||
"arm64" | ||
], | ||
"engines": { | ||
"node": ">=12.22.0" | ||
}, | ||
"scripts": { | ||
"build": "cd native && cargo-cp-artifact -nc ../binary/index.node -- cargo build --release --message-format=json-render-diagnostics", | ||
"build": "cd native && cargo-cp-artifact -a cdylib indexer_native ../binary/index.node -- cargo build --message-format=json-render-diagnostics", | ||
"build-debug": "yarn build --", | ||
"build-release": "yarn build --release", | ||
"pull-or-build": "node-pre-gyp install --fallback-to-build=false --update-binary || yarn build-release", | ||
"package": "node-pre-gyp package", | ||
"publish-github-draft": "node-pre-gyp-github publish", | ||
"publish-github": "node-pre-gyp-github publish --release", | ||
"build-test-pack-publish": "yarn build-release && yarn test && yarn package && yarn publish-github-draft", | ||
"format": "prettier --write 'lib/**/*.js'", | ||
"lint": "eslint .", | ||
"prepare": "yarn format && yarn lint", | ||
"test:ci": "jest --verbose --ci", | ||
"install": "yarn build", | ||
"install": "yarn pull-or-build", | ||
"test": "yarn build && jest --colors --verbose --forceExit", | ||
"test:ci": "yarn build && jest --verbose --ci", | ||
"clean": "rm -rf ./node_modules ./binary ./build ./coverage ./native/target ./native/artifacts.json ./native/index.node" | ||
|
@@ -41,5 +59,12 @@ | |
"jest": "<30.0.0-0", | ||
"prettier": "3.0.3" | ||
}, | ||
"binary": { | ||
"module_name": "index", | ||
"module_path": "./binary", | ||
"host": "https://github.com/graphprotocol/indexer/releases/download/", | ||
"remote_path": "v{version}", | ||
"package_name": "graphprotocol-indexer-native-v{version}-{node_abi}-{platform}-{arch}.tar.gz" | ||
}, | ||
"gitHead": "972ab96774007b2aee15b1da169d2ff4be9f9d27" | ||
} |
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