@pikku/kysely 0.9.1 → 0.9.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @pikku/kysely
|
|
2
2
|
|
|
3
|
+
## 0.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 917bd6b: feat: fixing number issue with pure generation
|
|
8
|
+
- af95a59: fix: adding a number type (string or number) to db for now. Going forward should probably parse to a number but js and floats..
|
|
9
|
+
- Updated dependencies [9691aba]
|
|
10
|
+
- Updated dependencies [2ab0278]
|
|
11
|
+
- Updated dependencies [81005ba]
|
|
12
|
+
- @pikku/core@0.9.3
|
|
13
|
+
|
|
14
|
+
## 0.9.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- a5905a9: chore: updating all dependencies
|
|
19
|
+
- Updated dependencies [1256238]
|
|
20
|
+
- Updated dependencies [6cf8efd]
|
|
21
|
+
- Updated dependencies [d3a9a09]
|
|
22
|
+
- Updated dependencies [840e078]
|
|
23
|
+
- Updated dependencies [667d23c]
|
|
24
|
+
- Updated dependencies [a5905a9]
|
|
25
|
+
- @pikku/core@0.9.2
|
|
26
|
+
|
|
3
27
|
## 0.9.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/bin/pikku-kysely-pure.ts
CHANGED
|
@@ -14,7 +14,7 @@ const main = async (output: string, input?: string) => {
|
|
|
14
14
|
inputPath = `${execDirectory}/${input}`
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
let kysely
|
|
17
|
+
let kysely: string
|
|
18
18
|
try {
|
|
19
19
|
kysely = await readFile(inputPath, 'utf8')
|
|
20
20
|
} catch {
|
|
@@ -23,13 +23,18 @@ const main = async (output: string, input?: string) => {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
kysely = kysely
|
|
26
|
-
.replace(
|
|
26
|
+
.replace('import type { ColumnType } from "kysely";', '')
|
|
27
27
|
.replace(
|
|
28
28
|
new RegExp('^export\\s+type\\s+Generated<[^>]+>.*?;\\s*$', 'ms'),
|
|
29
29
|
''
|
|
30
30
|
)
|
|
31
31
|
.replace(/Generated<(.*)>/g, '$1')
|
|
32
|
+
.replace(
|
|
33
|
+
/export type Numeric =.*;/,
|
|
34
|
+
'export type Numeric = string | number'
|
|
35
|
+
)
|
|
32
36
|
.replace(/export type Timestamp =.*;/, 'export type Timestamp = Date')
|
|
37
|
+
|
|
33
38
|
console.log('Writing kysely-pure.gen.ts')
|
|
34
39
|
|
|
35
40
|
const outputPath = `${execDirectory}/${output}`
|
|
@@ -19,9 +19,10 @@ const main = async (output, input) => {
|
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
kysely = kysely
|
|
22
|
-
.replace(
|
|
22
|
+
.replace('import type { ColumnType } from "kysely";', '')
|
|
23
23
|
.replace(new RegExp('^export\\s+type\\s+Generated<[^>]+>.*?;\\s*$', 'ms'), '')
|
|
24
24
|
.replace(/Generated<(.*)>/g, '$1')
|
|
25
|
+
.replace(/export type Numeric =.*;/, 'export type Numeric = string | number')
|
|
25
26
|
.replace(/export type Timestamp =.*;/, 'export type Timestamp = Date');
|
|
26
27
|
console.log('Writing kysely-pure.gen.ts');
|
|
27
28
|
const outputPath = `${execDirectory}/${output}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/index.ts","../src/kysely-channel-store.ts","../src/kysely-eventhub-store.ts","../src/pikku-kysely.ts","../bin/pikku-kysely-pure.ts"],"version":"5.
|
|
1
|
+
{"root":["../src/index.ts","../src/kysely-channel-store.ts","../src/kysely-eventhub-store.ts","../src/pikku-kysely.ts","../bin/pikku-kysely-pure.ts"],"version":"5.9.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/kysely",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/src/index.js",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"release": "npm run build && npm test"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@pikku/core": "^0.9.
|
|
20
|
+
"@pikku/core": "^0.9.3"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"kysely": "^0.
|
|
23
|
+
"kysely": "^0.28.5",
|
|
24
24
|
"kysely-postgres-js": "^2.0.0",
|
|
25
|
-
"postgres": "^3.4.
|
|
25
|
+
"postgres": "^3.4.7"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"kysely": "^0.
|
|
29
|
-
"kysely-codegen": "^0.
|
|
28
|
+
"kysely": "^0.28.5",
|
|
29
|
+
"kysely-codegen": "^0.18.5",
|
|
30
30
|
"kysely-postgres-js": "^2.0.0",
|
|
31
|
-
"postgres": "^3.4.
|
|
32
|
-
"typescript": "^5.
|
|
31
|
+
"postgres": "^3.4.7",
|
|
32
|
+
"typescript": "^5.9"
|
|
33
33
|
}
|
|
34
34
|
}
|