Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 6f22a88

Browse files
fix: deps
1 parent 12ab415 commit 6f22a88

File tree

6 files changed

+1442
-1527
lines changed

6 files changed

+1442
-1527
lines changed

.github/workflows/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
NODE_OPTIONS: '--max-old-space-size=3200'
1111
# CC_TEST_REPORTER_ID: 59622194cc44d91d2d1d239dffbe6af31e8cb985e6e6369c0743b67ad2cc8713
1212
steps:
13-
- { uses: actions/checkout@v2, with: { persist-credentials: false } }
14-
- { uses: actions/setup-node@v2, with: { node-version: 16, cache: 'yarn' } }
13+
- { uses: actions/checkout@v3, with: { persist-credentials: false } }
14+
- { uses: actions/setup-node@v3, with: { node-version: 16, cache: 'yarn' } }
1515

1616
- name: deps
1717
run: yarn --frozen-lockfile

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
if: "!contains(github.event.head_commit.message, 'skip ci')"
1111
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
1212
steps:
13-
- { uses: actions/checkout@v2, with: { persist-credentials: true } }
14-
- { uses: actions/setup-node@v2, with: { node-version: 16, cache: 'yarn' } }
13+
- { uses: actions/checkout@v3, with: { persist-credentials: true } }
14+
- { uses: actions/setup-node@v3, with: { node-version: 16, cache: 'yarn' } }
1515

1616
# Cache for npm/npx in ~/.npm
17-
- uses: actions/cache@v2
17+
- uses: actions/cache@v3
1818
with:
1919
path: ~/.npm
2020
key: npm-v1-${{ runner.os }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@naturalcycles/dev-lib": "^12.0.1",
16-
"@types/node": "^16.0.0",
16+
"@types/node": "^17.0.13",
1717
"jest": "^27.0.5"
1818
},
1919
"files": [

src/sqlite.db.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
createTestItemsDBM,
3-
getTestItemSchema,
43
TEST_TABLE,
4+
testItemDBMJsonSchema,
55
} from '@naturalcycles/db-lib/dist/testing'
66
import { SQLiteDB } from './sqlite.db'
77

@@ -13,7 +13,7 @@ test('test1', async () => {
1313
await db.ping()
1414

1515
// await db.getTables()
16-
await db.createTable(TEST_TABLE, getTestItemSchema(), { dropIfExists: true })
16+
await db.createTable(TEST_TABLE, testItemDBMJsonSchema.build(), { dropIfExists: true })
1717

1818
const items = createTestItemsDBM(3)
1919
await db.saveBatch(TEST_TABLE, items)

src/sqlite.db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ export class SQLiteDB extends BaseCommonDB implements CommonDB {
9797
await this.db.exec(`DROP TABLE IF EXISTS ${table}`)
9898
}
9999

100-
override async saveBatch<ROW extends ObjectWithId>(
100+
override async saveBatch<ROW extends Partial<ObjectWithId>>(
101101
table: string,
102102
rows: ROW[],
103-
_opt?: CommonDBSaveOptions,
103+
_opt?: CommonDBSaveOptions<ROW>,
104104
): Promise<void> {
105105
if (!rows.length) return
106106

0 commit comments

Comments
 (0)