Skip to content

Commit 9879c1c

Browse files
committed
make spin2 default and bump patch version
Signed-off-by: karthik2804 <[email protected]>
1 parent cbcd776 commit 9879c1c

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fermyon/spin-sdk",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -13,7 +13,7 @@
1313
"fmt-check": "prettier --check \"src/**/*.{ts,tsx,js,jsx}\"",
1414
"build": "tsc && cp -r src/types ./lib/",
1515
"build-docs": "typedoc --plugin typedoc-plugin-missing-exports src/index.ts --out ./docs --excludeExternals --readme none",
16-
"postinstall": "knitwit-postinstall --wit-path ../../bin/wit --world spin3-imports",
16+
"postinstall": "knitwit-postinstall --wit-path ../../bin/wit --world spin-imports",
1717
"fmt-examples": "prettier --write \"examples/**/*.{ts,tsx,js,jsx}\" --ignore-patterm \"node_modules\""
1818
},
1919
"sideEffects": false,

src/postgresv3.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* PostgresV3 enables interacting with a Postgres database using Spin's v3 interface.
3+
* To use this module you need to add `spin3-imports` to your `knitwit.json` file and run
4+
* `npx knitwit`.
5+
*
6+
* @module PostgresV3
7+
*/
8+
19
//@ts-ignore
210
import * as spinPg from 'spin:postgres/[email protected]';
311

@@ -76,13 +84,13 @@ export interface PostgresV3RowSet {
7684
columns: PostgresV3Column[];
7785
rows: {
7886
[key: string]:
79-
| number
80-
| boolean
81-
| bigint
82-
| null
83-
| string
84-
| Uint8Array
85-
| Date;
87+
| number
88+
| boolean
89+
| bigint
90+
| null
91+
| string
92+
| Uint8Array
93+
| Date;
8694
}[];
8795
}
8896

0 commit comments

Comments
 (0)