Skip to content

Commit

Permalink
0.0.92
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Jul 2, 2024
1 parent a39ca34 commit 69ab8cc
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 102 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf -y
sudo apt-get install openssl gcc-arm-linux-gnueabihf -y
build: |
yarn build --target armv7-unknown-linux-gnueabihf
- host: ubuntu-latest
Expand All @@ -72,7 +72,9 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |-
set -e &&
rustup target add aarch64-unknown-linux-musl &&
rustup target add aarch64-unknown-linux-musl &&
sudo apt-get update &&
sudo apt-get install -y openssl &&
yarn build --target aarch64-unknown-linux-musl
- host: windows-latest
target: aarch64-pc-windows-msvc
Expand Down Expand Up @@ -130,10 +132,14 @@ jobs:
with:
image: ${{ matrix.settings.docker }}
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
env:
CXXFLAGS: "--stdlib=libc++ -L/usr/lib/llvm-18/lib -static"
run: ${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
if: ${{ !matrix.settings.docker }}
env:
CXXFLAGS: "--stdlib=libc++ -L/usr/lib/llvm-18/lib -static"
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
nodeLinker: node-modules

npmAuditRegistry: "https://registry.npmjs.org"

yarnPath: .yarn/releases/yarn-4.3.1.cjs
10 changes: 1 addition & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,7 @@ serde = "1"
serde_json = "1"
spider = { version = "1.98.4", features = ["napi", "cron", "regex", "cookies", "socks", "chrome", "control", "chrome_intercept", "cache", "openai", "serde", "real_browser" ] }

[target.x86_64-unknown-linux-gnu.dependencies]
openssl-sys = { version = "0.9", features = ["vendored"] }
openssl = { version = "0.10", features = ["vendored"] }

[target.x86_64-unknown-linux-musl.dependencies]
openssl-sys = { version = "0.9", features = ["vendored"] }
openssl = { version = "0.10", features = ["vendored"] }

[target.arch64-linux-android.dependencies]
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64", target_os = "linux", target_os = "android"))'.dependencies]
openssl-sys = { version = "0.9", features = ["vendored"] }
openssl = { version = "0.10", features = ["vendored"] }

Expand Down
2 changes: 1 addition & 1 deletion npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-android-arm-eabi",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"android"
Expand Down
2 changes: 1 addition & 1 deletion npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-android-arm64",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"android"
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-darwin-arm64",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-universal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-darwin-universal",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-darwin-x64",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion npm/freebsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-freebsd-x64",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"freebsd"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-linux-arm-gnueabihf",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-linux-arm64-gnu",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-linux-arm64-musl",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-linux-x64-gnu",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-linux-x64-musl",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-win32-arm64-msvc",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-win32-ia32-msvc",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-rs/spider-rs-win32-x64-msvc",
"version": "0.0.91",
"version": "0.0.92",
"repository": "https://github.com/spider-rs/spider-nodejs",
"os": [
"win32"
Expand Down
149 changes: 74 additions & 75 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,75 @@
{
"name": "@spider-rs/spider-rs",
"version": "0.0.91",
"main": "index.js",
"types": "index.d.ts",
"napi": {
"name": "spider-rs",
"triples": {
"additional": [
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"armv7-linux-androideabi",
"universal-apple-darwin"
]
}
},
"license": "MIT",
"keywords": [
"spider",
"crawler"
],
"repository": "https://github.com/spider-rs/spider-nodejs",
"devDependencies": {
"@napi-rs/cli": "^2.18.4",
"@types/node": "^20.14.5",
"ava": "^6.1.3",
"typescript": "^5.4.5"
},
"ava": {
"require": [
"@swc-node/register"
],
"extensions": [
"ts"
],
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
}
},
"engines": {
"node": ">= 10"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "cd bench && npm run bench",
"bench:oss": "cd bench && npm run bench:oss",
"build": "napi build --platform --release --pipe \"prettier -w\"",
"build:debug": "napi build --platform --pipe \"prettier -w\"",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"lint": "eslint . -c ./.eslintrc.yml",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"version": "napi version"
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "[email protected]"
}

"name": "@spider-rs/spider-rs",
"version": "0.0.92",
"main": "index.js",
"types": "index.d.ts",
"napi": {
"name": "spider-rs",
"triples": {
"additional": [
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"armv7-linux-androideabi",
"universal-apple-darwin"
]
}
},
"license": "MIT",
"keywords": [
"spider",
"crawler"
],
"repository": "https://github.com/spider-rs/spider-nodejs",
"devDependencies": {
"@napi-rs/cli": "^2.18.4",
"@types/node": "^20.14.5",
"ava": "^6.1.3",
"typescript": "^5.4.5"
},
"ava": {
"require": [
"@swc-node/register"
],
"extensions": [
"ts"
],
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
}
},
"engines": {
"node": ">= 10"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "cd bench && npm run bench",
"bench:oss": "cd bench && npm run bench:oss",
"build": "napi build --platform --release --pipe \"prettier -w\"",
"build:debug": "napi build --platform --pipe \"prettier -w\"",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"lint": "eslint . -c ./.eslintrc.yml",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"version": "napi version"
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "[email protected]"
}

0 comments on commit 69ab8cc

Please sign in to comment.