chore: upgrade dependencies (#1657)
This commit is contained in:
parent
73a704a19e
commit
6d62b3f714
16 changed files with 1022 additions and 1889 deletions
|
@ -18,7 +18,7 @@ plugins:
|
||||||
|
|
||||||
extends:
|
extends:
|
||||||
- eslint:recommended
|
- eslint:recommended
|
||||||
- plugin:prettier/recommended
|
- prettier
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
BigInt: 'readonly'
|
BigInt: 'readonly'
|
||||||
|
|
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
|
@ -109,6 +109,7 @@ jobs:
|
||||||
key: ${{ matrix.settings.host }}-${{ matrix.settings.toolchain }}-${{ matrix.settings.target }}-cargo-cache
|
key: ${{ matrix.settings.host }}-${{ matrix.settings.toolchain }}-${{ matrix.settings.target }}-cargo-cache
|
||||||
|
|
||||||
- name: 'Install dependencies'
|
- name: 'Install dependencies'
|
||||||
|
shell: bash
|
||||||
run: yarn install --mode=skip-build --immutable
|
run: yarn install --mode=skip-build --immutable
|
||||||
|
|
||||||
- name: Check build
|
- name: Check build
|
||||||
|
@ -227,7 +228,10 @@ jobs:
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --immutable --mode=skip-build
|
run: |
|
||||||
|
yarn config set supportedArchitectures.cpu --json '["x64", "arm64"]'
|
||||||
|
yarn config set supportedArchitectures.libc --json '["musl", "glibc"]'
|
||||||
|
yarn install --immutable --mode=skip-build
|
||||||
|
|
||||||
- name: Cache cargo
|
- name: Cache cargo
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|
|
@ -67,24 +67,24 @@
|
||||||
"url": "https://github.com/napi-rs/napi-rs/issues"
|
"url": "https://github.com/napi-rs/napi-rs/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/rest": "^20.0.0",
|
"@octokit/rest": "^20.0.1",
|
||||||
"clipanion": "^3.2.0",
|
"clipanion": "^3.2.1",
|
||||||
"colorette": "^2.0.19",
|
"colorette": "^2.0.20",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"inquirer": "^9.1.5",
|
"inquirer": "^9.2.8",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"typanion": "^3.12.1"
|
"typanion": "^3.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/inquirer": "^9.0.3",
|
"@types/inquirer": "^9.0.3",
|
||||||
"@types/js-yaml": "^4.0.5",
|
"@types/js-yaml": "^4.0.5",
|
||||||
"@types/lodash-es": "^4.17.7",
|
"@types/lodash-es": "^4.17.8",
|
||||||
"ava": "^5.2.0",
|
"ava": "^5.3.1",
|
||||||
"esbuild": "^0.18.0",
|
"esbuild": "^0.18.13",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^3.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^5.1.3"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
|
|
|
@ -30,8 +30,8 @@ export async function collectArtifacts(userOptions: ArtifactsOptions) {
|
||||||
const universalSourceBins = new Set(
|
const universalSourceBins = new Set(
|
||||||
targets
|
targets
|
||||||
.filter((platform) => platform.arch === 'universal')
|
.filter((platform) => platform.arch === 'universal')
|
||||||
.flatMap((p) =>
|
.flatMap(
|
||||||
UniArchsByPlatform[p.platform]?.map((a) => `${p.platform}-${a}`),
|
(p) => UniArchsByPlatform[p.platform]?.map((a) => `${p.platform}-${a}`),
|
||||||
)
|
)
|
||||||
.filter(Boolean) as string[],
|
.filter(Boolean) as string[],
|
||||||
)
|
)
|
||||||
|
|
|
@ -565,6 +565,7 @@ class Builder {
|
||||||
private async writeJsBinding(idents: string[]) {
|
private async writeJsBinding(idents: string[]) {
|
||||||
if (
|
if (
|
||||||
!this.options.platform ||
|
!this.options.platform ||
|
||||||
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
this.options.noJsBinding ||
|
this.options.noJsBinding ||
|
||||||
idents.length === 0
|
idents.length === 0
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -129,11 +129,14 @@ export async function prePublish(userOptions: PrePublishOptions) {
|
||||||
if (!options.dryRun) {
|
if (!options.dryRun) {
|
||||||
await version(userOptions)
|
await version(userOptions)
|
||||||
await updatePackageJson(packageJsonPath, {
|
await updatePackageJson(packageJsonPath, {
|
||||||
optionalDependencies: targets.reduce((deps, target) => {
|
optionalDependencies: targets.reduce(
|
||||||
deps[`${packageName}-${target.platformArchABI}`] = packageJson.version
|
(deps, target) => {
|
||||||
|
deps[`${packageName}-${target.platformArchABI}`] = packageJson.version
|
||||||
|
|
||||||
return deps
|
return deps
|
||||||
}, {} as Record<string, string>),
|
},
|
||||||
|
{} as Record<string, string>,
|
||||||
|
),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -198,9 +198,7 @@ jobs:
|
||||||
usesh: true
|
usesh: true
|
||||||
mem: 3000
|
mem: 3000
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y -f curl node libnghttp2
|
pkg install -y -f curl node libnghttp2 npm yarn
|
||||||
curl -qL https://www.npmjs.com/install.sh | sh
|
|
||||||
npm install --location=global --ignore-scripts yarn
|
|
||||||
curl https://sh.rustup.rs -sSf --output rustup.sh
|
curl https://sh.rustup.rs -sSf --output rustup.sh
|
||||||
sh rustup.sh -y --profile minimal --default-toolchain beta
|
sh rustup.sh -y --profile minimal --default-toolchain beta
|
||||||
export PATH="/usr/local/cargo/bin:$PATH"
|
export PATH="/usr/local/cargo/bin:$PATH"
|
||||||
|
|
|
@ -4,7 +4,9 @@ use std::os::raw::c_void;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
use crate::bindgen_runtime::{ToNapiValue, THREAD_DESTROYED};
|
use crate::bindgen_runtime::{ToNapiValue, THREAD_DESTROYED};
|
||||||
use crate::{check_status, JsError, JsObject, Value};
|
#[cfg(feature = "deferred_trace")]
|
||||||
|
use crate::JsError;
|
||||||
|
use crate::{check_status, JsObject, Value};
|
||||||
use crate::{sys, Env, Error, Result};
|
use crate::{sys, Env, Error, Result};
|
||||||
#[cfg(feature = "deferred_trace")]
|
#[cfg(feature = "deferred_trace")]
|
||||||
use crate::{NapiRaw, NapiValue};
|
use crate::{NapiRaw, NapiValue};
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@napi-rs/cli": "workspace:*",
|
"@napi-rs/cli": "workspace:*",
|
||||||
"ava": "^5.2.0",
|
"ava": "^5.3.1",
|
||||||
"sinon": "^15.0.3"
|
"sinon": "^15.2.0"
|
||||||
},
|
},
|
||||||
"ava": {
|
"ava": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@napi-rs/cli": "workspace:*",
|
"@napi-rs/cli": "workspace:*",
|
||||||
"@types/lodash": "^4.14.192",
|
"@types/lodash": "^4.14.195",
|
||||||
"ava": "^5.2.0",
|
"ava": "^5.3.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"sinon": "^15.0.3"
|
"sinon": "^15.2.0"
|
||||||
},
|
},
|
||||||
"ava": {
|
"ava": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{
|
{
|
||||||
"packages": ["cli", "triples"],
|
|
||||||
"version": "independent",
|
"version": "independent",
|
||||||
"useWorkspaces": true,
|
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"message": "chore: publish"
|
"message": "chore: publish"
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
"build": "napi-raw build --release --no-js"
|
"build": "napi-raw build --release --no-js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colorette": "^2.0.19",
|
"colorette": "^2.0.20",
|
||||||
"dockerode": "^3.3.5",
|
"dockerode": "^3.3.5",
|
||||||
"pretty-bytes": "^6.1.0",
|
"pretty-bytes": "^6.1.1",
|
||||||
"table": "^6.8.1"
|
"table": "^6.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@napi-rs/cli": "workspace:*",
|
"@napi-rs/cli": "workspace:*",
|
||||||
"@types/dockerode": "^3.3.16"
|
"@types/dockerode": "^3.3.19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
40
package.json
40
package.json
|
@ -9,8 +9,7 @@
|
||||||
"memory-testing",
|
"memory-testing",
|
||||||
"examples/napi",
|
"examples/napi",
|
||||||
"examples/napi-compat-mode",
|
"examples/napi-compat-mode",
|
||||||
"examples/binary",
|
"examples/binary"
|
||||||
"crates/cli"
|
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -22,7 +21,7 @@
|
||||||
"build": "lerna run build --scope '@napi-rs/*'",
|
"build": "lerna run build --scope '@napi-rs/*'",
|
||||||
"build:bench": "yarn workspace bench build",
|
"build:bench": "yarn workspace bench build",
|
||||||
"build:memory": "yarn workspace memory-testing build",
|
"build:memory": "yarn workspace memory-testing build",
|
||||||
"build:test": "lerna run build --stream --concurrency 1 --scope '@examples/*'",
|
"build:test": "lerna run build --stream --concurrency 1 --scope=\"@examples/*\"",
|
||||||
"format": "run-p format:prettier format:rs format:toml",
|
"format": "run-p format:prettier format:rs format:toml",
|
||||||
"format:prettier": "prettier . -w",
|
"format:prettier": "prettier . -w",
|
||||||
"format:rs": "cargo fmt",
|
"format:rs": "cargo fmt",
|
||||||
|
@ -69,37 +68,36 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@napi-rs/cli": "workspace:*",
|
"@napi-rs/cli": "workspace:*",
|
||||||
"@rollup/plugin-alias": "^5.0.0",
|
"@rollup/plugin-alias": "^5.0.0",
|
||||||
"@rollup/plugin-commonjs": "^25.0.0",
|
"@rollup/plugin-commonjs": "^25.0.3",
|
||||||
"@rollup/plugin-json": "^6.0.0",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^15.0.2",
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
||||||
"@rollup/plugin-replace": "^5.0.2",
|
"@rollup/plugin-replace": "^5.0.2",
|
||||||
"@taplo/cli": "^0.5.2",
|
"@taplo/cli": "^0.5.2",
|
||||||
"@types/debug": "^4.1.7",
|
"@types/debug": "^4.1.8",
|
||||||
"@types/lodash-es": "^4.17.7",
|
"@types/lodash-es": "^4.17.8",
|
||||||
"@types/node": "^18.15.11",
|
"@types/node": "^20.4.2",
|
||||||
"@types/sinon": "^10.0.13",
|
"@types/sinon": "^10.0.15",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||||||
"@typescript-eslint/parser": "^5.57.1",
|
"@typescript-eslint/parser": "^6.0.0",
|
||||||
"ava": "^5.2.0",
|
"ava": "^5.3.1",
|
||||||
"c8": "^8.0.0",
|
"c8": "^8.0.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"electron": "25.3.0",
|
"electron": "25.3.0",
|
||||||
"esbuild": "^0.18.0",
|
"esbuild": "^0.18.13",
|
||||||
"eslint": "^8.38.0",
|
"eslint": "^8.45.0",
|
||||||
"eslint-config-prettier": "^8.8.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.27.5",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lerna": "^6.6.1",
|
"lerna": "^7.1.4",
|
||||||
"lint-staged": "^13.2.1",
|
"lint-staged": "^13.2.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^3.0.0",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"sinon": "^15.0.3",
|
"sinon": "^15.2.0",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"tslib": "^2.5.0",
|
"tslib": "^2.6.0",
|
||||||
"typescript": "^5.1.3"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.6.1"
|
"packageManager": "yarn@3.6.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,11 +44,11 @@
|
||||||
"url": "https://github.com/napi-rs/napi-rs/issues"
|
"url": "https://github.com/napi-rs/napi-rs/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node --loader ts-node/esm/transpile-only ./generate-triple-list.ts"
|
"build": "node --loader ts-node/esm/transpile-only ./generate-triple-list.ts && prettier --write ./index.cjs"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^5.0.4"
|
"typescript": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue