Skip to content

Commit

Permalink
feat: update dependencies and CI configuration
Browse files Browse the repository at this point in the history
- Added concurrency control to GitHub Actions workflow
- Removed redundant node setup for x86 in CI
- Updated author information in Cargo.toml
- Bumped versions of several dependencies in Cargo.toml
- Changed TypeScript target to ESNext in tsconfig.json
- Excluded __test__ directory in tsconfig.json

Signed-off-by: Daniel Boll <[email protected]>
  • Loading branch information
Daniel-Boll committed Oct 18, 2024
1 parent 1bd8d81 commit 2e6b0f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ permissions:
- docs/**
workflow_dispatch:
pull_request: null
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-version-in-commit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -133,10 +136,6 @@ jobs:
run: ${{ matrix.settings.setup }}
if: ${{ matrix.settings.setup }}
shell: bash
- name: Setup node x86
if: matrix.settings.target == 'i686-pc-windows-msvc'
run: yarn config set supportedArchitectures.cpu "ia32"
shell: bash
- name: Install dependencies
run: yarn install
- name: Setup node x86
Expand Down
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[package]
authors = ["Daniel Boll <[email protected]>"]
edition = "2021"
name = "scylladb-driver"
version = "0.0.0"
Expand All @@ -8,28 +9,28 @@ crate-type = ["cdylib"]

[dependencies]
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.13.3", default-features = false, features = [
napi = { version = "2", default-features = false, features = [
"napi8",
"async",
"serde",
"serde_json",
"serde-json",
] }
napi-derive = "2.13.0"
napi-derive = "2"
tokio = { version = "1", features = ["full"] }
scylla = { version = "0.13.1", features = [
"ssl",
"full-serialization",
"cloud",
] }
uuid = { version = "1.4.1", features = ["serde", "v4", "fast-rng"] }
uuid = { version = "1.10", features = ["serde", "v4", "fast-rng"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
openssl = { version = "0.10.66", features = ["vendored"] }

[build-dependencies]
napi-build = "2.0.1"
napi-build = "2"

[profile.release]
lto = true

codegen-units = 1
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2018",
"target": "ESNext",
"strict": true,
"moduleResolution": "node",
"module": "CommonJS",
Expand All @@ -13,6 +13,7 @@
"."
],
"exclude": [
"node_modules"
"node_modules",
"__test__"
]
}

0 comments on commit 2e6b0f4

Please sign in to comment.