feat: remove data api sdk base #5507
Annotations
6 errors and 21 warnings
test/integration/json.test.ts:
test/integration/json.test.ts#L18
TypeError: Cannot read properties of undefined (reading 'afterAll')
❯ test/integration/json.test.ts:18:15
|
test/integration/search.test.ts:
test/integration/search.test.ts#L50
TypeError: Cannot read properties of undefined (reading 'afterAll')
❯ test/integration/search.test.ts:50:15
|
packages/client/src/schema/index.test.ts > query > getMany > simple query:
packages/client/src/schema/index.test.ts#L298
Error: Snapshot `query > getMany > simple query 1` mismatched
- Expected
+ Received
@@ -3,10 +3,10 @@
"body": "{"statement":"select * from \"users\" order by \"xata_id\" asc limit $1","params":["20"]}",
"method": "POST",
"url": "https://my-workspace-v0fo9s.us-east-1.xata.sh/db/mydb:main/sql",
},
{
- "body": "{"statement":"select * from \"users\" order by \"xata_id\" asc limit $1 offset $2","params":["1","0"]}",
+ "body": "{"statement":"select * from \"users\" order by \"xata_id\" asc limit $1 offset $2","params":["1","20"]}",
"method": "POST",
"url": "https://my-workspace-v0fo9s.us-east-1.xata.sh/db/mydb:main/sql",
},
]
❯ packages/client/src/schema/index.test.ts:298:22
|
packages/client/src/schema/index.test.ts > query > getMany > query with one filter:
packages/client/src/schema/index.test.ts#L323
Error: Snapshot `query > getMany > query with one filter 1` mismatched
- Expected
+ Received
@@ -3,10 +3,10 @@
"body": "{"statement":"select * from \"users\" where CAST (\"name\" AS text) = $1 order by \"xata_id\" asc limit $2","params":["foo","20"]}",
"method": "POST",
"url": "https://my-workspace-v0fo9s.us-east-1.xata.sh/db/mydb:main/sql",
},
{
- "body": "{"statement":"select * from \"users\" where CAST (\"name\" AS text) = $1 order by \"xata_id\" asc limit $2 offset $3","params":["foo","1","0"]}",
+ "body": "{"statement":"select * from \"users\" where CAST (\"name\" AS text) = $1 order by \"xata_id\" asc limit $2 offset $3","params":["foo","1","20"]}",
"method": "POST",
"url": "https://my-workspace-v0fo9s.us-east-1.xata.sh/db/mydb:main/sql",
},
]
❯ packages/client/src/schema/index.test.ts:323:22
|
packages/client/src/schema/index.test.ts > query > getFirst > returns null if no objects are returned:
packages/client/src/schema/index.test.ts#L386
Error: Snapshot `query > getFirst > returns null if no objects are returned 1` mismatched
- Expected
+ Received
@@ -3,10 +3,10 @@
"body": "{"statement":"select * from \"users\" order by \"xata_id\" asc limit $1","params":["1"]}",
"method": "POST",
"url": "https://my-workspace-v0fo9s.us-east-1.xata.sh/db/mydb:main/sql",
},
{
- "body": "{"statement":"select * from \"users\" order by \"xata_id\" asc limit $1 offset $2","params":["1","0"]}",
+ "body": "{"statement":"select * from \"users\" order by \"xata_id\" asc limit $1 offset $2","params":["1","1"]}",
"method": "POST",
"url": "https://my-workspace-v0fo9s.us-east-1.xata.sh/db/mydb:main/sql",
},
]
❯ packages/client/src/schema/index.test.ts:386:22
|
test
Process completed with exit code 1.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: peter-evans/find-comment@v1, peter-evans/create-or-update-comment@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, peter-evans/find-comment@v1, peter-evans/create-or-update-comment@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test:
packages/client/src/schema/identifiable.spec.ts#L4
'tables' is assigned a value but only used as a type. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/identifiable.spec.ts#L114
'DbIndentifiableKey' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/identifiable.spec.ts#L115
'DbIndentifiableValue' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/identifiable.ts#L48
'LinkedTable' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/inference.ts#L4
'Identifiable' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/inference.ts#L4
'XataRecord' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/inference.ts#L59
'Tables' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/inference.ts#L59
'LinkedTable' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/repository.ts#L37
'isNumber' is defined but never used. Allowed unused vars must match /^_/u
|
test:
packages/client/src/schema/repository.ts#L3622
'c' is defined but never used. Allowed unused args must match /^_/u
|