@slonik/types 47.3.2 → 48.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { type ConnectionOptions, type Field, type PrimitiveValueExpression, type Query, type QueryResultRow, type SerializableValue, } from './types';
1
+ export { type ConnectionOptions, type Field, type PrimitiveValueExpression, type Query, type QueryResultRow, type SerializableValue, } from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,wBAAwB,EAC7B,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,wBAAwB,EAC7B,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=index.js.map
package/dist/types.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
@@ -1,10 +1,5 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- (0, ava_1.default)('ok', (t) => {
1
+ import test from 'ava';
2
+ test('ok', (t) => {
8
3
  t.true(true);
9
4
  });
10
5
  //# sourceMappingURL=types.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.test.js","sourceRoot":"","sources":["../src/types.test.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AAEvB,IAAA,aAAI,EAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE;IACf,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"types.test.js","sourceRoot":"","sources":["../src/types.test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AAEvB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE;IACf,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -11,23 +11,23 @@
11
11
  "files": [
12
12
  "src/**/*.test.ts"
13
13
  ],
14
- "require": [
15
- "ts-node/register/transpile-only"
14
+ "nodeArguments": [
15
+ "--import=tsimp"
16
16
  ]
17
17
  },
18
18
  "description": "A Node.js PostgreSQL client with strict types, detailed logging and assertions.",
19
19
  "devDependencies": {
20
- "@types/node": "^22.15.8",
20
+ "@types/node": "^22.15.19",
21
21
  "ava": "^6.3.0",
22
- "cspell": "^8.16.0",
23
- "eslint": "9.16.0",
24
- "nyc": "^15.1.0",
25
- "ts-node": "^10.9.1",
22
+ "cspell": "^9.0.1",
23
+ "eslint": "9.27.0",
24
+ "tsimp": "^2.0.12",
26
25
  "typescript": "^5.8.3",
27
- "@slonik/eslint-config": "^47.3.2"
26
+ "typescript-eslint": "^8.32.1",
27
+ "@slonik/eslint-config": "^48.1.0"
28
28
  },
29
29
  "engines": {
30
- "node": ">=18"
30
+ "node": ">=24"
31
31
  },
32
32
  "files": [
33
33
  "./src",
@@ -41,24 +41,6 @@
41
41
  "license": "BSD-3-Clause",
42
42
  "main": "./dist/index.js",
43
43
  "name": "@slonik/types",
44
- "nyc": {
45
- "all": true,
46
- "exclude": [
47
- "**/*.d.ts"
48
- ],
49
- "include": [
50
- "src/**/*.ts"
51
- ],
52
- "reporter": [
53
- "html",
54
- "text-summary"
55
- ],
56
- "require": [
57
- "ts-node/register/transpile-only"
58
- ],
59
- "silent": true,
60
- "sourceMap": false
61
- },
62
44
  "peerDependencies": {
63
45
  "zod": "^3"
64
46
  },
@@ -66,14 +48,15 @@
66
48
  "type": "git",
67
49
  "url": "https://github.com/gajus/slonik"
68
50
  },
51
+ "type": "module",
69
52
  "types": "./dist/index.d.ts",
70
- "version": "47.3.2",
53
+ "version": "48.1.0",
71
54
  "scripts": {
72
55
  "build": "rm -fr ./dist && tsc --project ./tsconfig.json",
73
56
  "lint": "npm run lint:cspell && npm run lint:eslint && npm run lint:tsc",
74
57
  "lint:cspell": "cspell . --no-progress --gitignore",
75
58
  "lint:eslint": "eslint --cache ./src",
76
59
  "lint:tsc": "tsc --noEmit",
77
- "test": "nyc ava --verbose --serial"
60
+ "test": "ava --verbose --serial"
78
61
  }
79
62
  }
package/src/index.ts CHANGED
@@ -5,4 +5,4 @@ export {
5
5
  type Query,
6
6
  type QueryResultRow,
7
7
  type SerializableValue,
8
- } from './types';
8
+ } from './types.js';