diff --git a/.nvmrc b/.nvmrc index 32f8c50..60ade1a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24.13.1 +24.19.0 diff --git a/crates/sqlx-sqlite-conn-mgr/src/attached.rs b/crates/sqlx-sqlite-conn-mgr/src/attached.rs index 42d6db7..cc06e3b 100644 --- a/crates/sqlx-sqlite-conn-mgr/src/attached.rs +++ b/crates/sqlx-sqlite-conn-mgr/src/attached.rs @@ -668,7 +668,10 @@ mod tests { .fetch_all(&mut *conn) .await .unwrap(); - let names: Vec = rows.iter().map(|row| row.get::("name")).collect(); + let names: Vec = rows + .iter() + .map(|row| row.get::("name")) + .collect(); assert_eq!( names, vec!["main".to_string()], @@ -1061,7 +1064,10 @@ mod tests { .fetch_all(&mut *writer) .await .unwrap(); - let names: Vec = rows.iter().map(|row| row.get::("name")).collect(); + let names: Vec = rows + .iter() + .map(|row| row.get::("name")) + .collect(); assert_eq!( names, vec!["main".to_string()], @@ -1204,10 +1210,7 @@ mod tests { /// Builds `count` distinct single-table databases with distinct schema aliases, /// suitable for pushing past SQLite's default `SQLITE_LIMIT_ATTACHED` (10). - async fn build_many_attach_specs( - count: usize, - temp_dir: &TempDir, - ) -> Vec { + async fn build_many_attach_specs(count: usize, temp_dir: &TempDir) -> Vec { let mut specs = Vec::with_capacity(count); for i in 0..count { let db = create_test_db(&format!("many{i}.db"), temp_dir).await; diff --git a/crates/sqlx-sqlite-observer/src/conn_mgr.rs b/crates/sqlx-sqlite-observer/src/conn_mgr.rs index d9f4f78..9f385df 100644 --- a/crates/sqlx-sqlite-observer/src/conn_mgr.rs +++ b/crates/sqlx-sqlite-observer/src/conn_mgr.rs @@ -435,8 +435,7 @@ pub async fn acquire_writer_with_attached_brokers( // and something to call `ensure_table_info()` on, which reads the // attached database's own read pool - so it's rebuilt from the // broker rather than read out whole. See `from_broker`'s doc. - let observable = - ObservableSqliteDatabase::from_broker(Arc::clone(&spec.database), broker); + let observable = ObservableSqliteDatabase::from_broker(Arc::clone(&spec.database), broker); // Fail loud rather than let `insert` silently overwrite. The // validation above already rules this out, so it should never fire; diff --git a/crates/sqlx-sqlite-toolkit/tests/attached_detach_tests.rs b/crates/sqlx-sqlite-toolkit/tests/attached_detach_tests.rs index 9e06e0e..2bb10f9 100644 --- a/crates/sqlx-sqlite-toolkit/tests/attached_detach_tests.rs +++ b/crates/sqlx-sqlite-toolkit/tests/attached_detach_tests.rs @@ -216,7 +216,11 @@ async fn failed_attached_transaction_statement_still_releases_the_alias() { .fetch_all("SELECT msg FROM logs".into(), vec![]) .await .expect("logs should be readable"); - assert_eq!(rows.len(), 1, "the rolled-back 'ok' row must not be present"); + assert_eq!( + rows.len(), + 1, + "the rolled-back 'ok' row must not be present" + ); assert_eq!( rows[0]["msg"].as_str(), Some("after failure"), diff --git a/package.json b/package.json index e19c7c2..f579221 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "scripts": { "build": "rollup -c", "check:iife": "rollup -c && git diff --exit-code api-iife.js", - "check-node-version": "check-node-version --npm 10.5.0", + "check-node-version": "check-node-version --npm 11.17.0", "commitlint": "commitlint --from ${COMMITLINT_FROM:-002bcc8} --to ${COMMITLINT_TO:-HEAD}", "eslint": "eslint .", "eslint:fix": "eslint . --fix", @@ -28,7 +28,7 @@ "type-check": "run-p type-check:ts", "markdownlint": "markdownlint-cli2", "prepare": "rollup -c", - "standards": "npm run eslint && npm run type-check && npm run markdownlint && npm run check:iife && npm run rust:lint && npm run commitlint", + "standards": "npm run eslint && npm run type-check && npm run markdownlint && npm run check:iife && npm run rust:lint && npm run commitlint && npm run check-node-version", "rust:lint": "cargo lint-clippy && cargo lint-fmt", "rust:lint:fix": "cargo fix-clippy && cargo fix-fmt", "test": "vitest run && cargo test --workspace --lib --test '*'",