Skip to content

Commit aa2f70c

Browse files
authored
Reorganize TS sdk (#3915)
# Description of Changes This moves a bunch of stuff from `lib` back into `server` and `sdk`, and removes all but one global variable from the server sdk in preparation for export-based reducer definition. # Expected complexity level and risk 2 - a pretty big refactor, but it's mostly just code movement. # Testing - [x] Refactor, so automated tests are sufficient.
1 parent c853721 commit aa2f70c

29 files changed

Lines changed: 1358 additions & 1080 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
- name: Set up Node.js
9494
uses: actions/setup-node@v4
9595
with:
96-
node-version: 18
96+
node-version: 22
9797

9898
- uses: pnpm/action-setup@v4
9999
with:
@@ -177,7 +177,7 @@ jobs:
177177
- name: Set up Node.js
178178
uses: actions/setup-node@v4
179179
with:
180-
node-version: 18
180+
node-version: 22
181181

182182
- uses: pnpm/action-setup@v4
183183
with:
@@ -459,7 +459,7 @@ jobs:
459459
- name: Set up Node.js
460460
uses: actions/setup-node@v4
461461
with:
462-
node-version: 18
462+
node-version: 22
463463

464464
- uses: pnpm/action-setup@v4
465465
with:

.github/workflows/typescript-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Node.js
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 22
2121

2222
- uses: pnpm/action-setup@v4
2323
with:

.github/workflows/typescript-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18
24+
node-version: 22
2525

2626
- uses: pnpm/action-setup@v4
2727
with:

crates/bindings-typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
"@vitest/coverage-v8": "^3.2.4",
205205
"brotli-size-cli": "^1.0.0",
206206
"eslint": "^9.33.0",
207+
"eslint-plugin-jsdoc": "^61.5.0",
207208
"globals": "^15.14.0",
208209
"size-limit": "^11.2.0",
209210
"ts-node": "^10.9.2",

crates/bindings-typescript/src/lib/constraints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { UntypedTableDef } from './table';
1+
import type { table, UntypedTableDef } from './table';
22
import type { ColumnMetadata } from './type_builders';
33

44
/**

crates/bindings-typescript/src/lib/indexes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RowType, UntypedTableDef } from './table';
1+
import type { RowType, table, UntypedTableDef } from './table';
22
import type { ColumnMetadata, IndexTypes } from './type_builders';
33
import type { CollapseTuple, Prettify } from './type_util';
44
import { Range } from '../server/range';

crates/bindings-typescript/src/lib/procedures.ts

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)