@kysera/timestamps 0.8.1 → 0.8.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/README.md +7 -15
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -366,7 +366,13 @@ interface Database {
|
|
|
366
366
|
await userRepo.touch(userId)
|
|
367
367
|
```
|
|
368
368
|
|
|
369
|
-
**Note:** This option
|
|
369
|
+
**Note:** This option affects the following methods:
|
|
370
|
+
- `touch()` - Uses `primaryKeyColumn` in WHERE clause
|
|
371
|
+
- `createMany()` - Uses `primaryKeyColumn` for MySQL/MSSQL fallback ORDER BY
|
|
372
|
+
- `updateMany()` - Uses `primaryKeyColumn` in WHERE ... IN clause
|
|
373
|
+
- `touchMany()` - Uses `primaryKeyColumn` in WHERE ... IN clause
|
|
374
|
+
|
|
375
|
+
The base `update()` method uses the repository's own primary key logic.
|
|
370
376
|
|
|
371
377
|
---
|
|
372
378
|
|
|
@@ -1673,20 +1679,6 @@ await db.transaction().execute(async trx => {
|
|
|
1673
1679
|
|
|
1674
1680
|
---
|
|
1675
1681
|
|
|
1676
|
-
## 🤝 Contributing
|
|
1677
|
-
|
|
1678
|
-
Contributions are welcome! This package follows strict development principles:
|
|
1679
|
-
|
|
1680
|
-
- ✅ **Zero dependencies** (peer deps only)
|
|
1681
|
-
- ✅ **100% type safe** (TypeScript strict mode)
|
|
1682
|
-
- ✅ **95%+ test coverage** (16+ tests)
|
|
1683
|
-
- ✅ **Multi-database tested** (PostgreSQL, MySQL, SQLite)
|
|
1684
|
-
- ✅ **ESM only** (no CommonJS)
|
|
1685
|
-
|
|
1686
|
-
See [CLAUDE.md](../../CLAUDE.md) for development guidelines.
|
|
1687
|
-
|
|
1688
|
-
---
|
|
1689
|
-
|
|
1690
1682
|
## 📄 License
|
|
1691
1683
|
|
|
1692
1684
|
MIT © Kysera
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kysera/timestamps",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Automatic timestamp management plugin for Kysely repositories",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
"author": "Kysera Team",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@kysera/core": "0.8.
|
|
34
|
+
"@kysera/core": "0.8.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/better-sqlite3": "^7.6.13",
|
|
38
|
-
"@types/node": "^
|
|
38
|
+
"@types/node": "^25.2.1",
|
|
39
39
|
"@vitest/coverage-v8": "^4.0.16",
|
|
40
40
|
"better-sqlite3": "^12.5.0",
|
|
41
41
|
"kysely": "^0.28.9",
|
|
42
42
|
"tsup": "^8.5.1",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"vitest": "^4.0.16",
|
|
45
|
-
"zod": "^4.
|
|
46
|
-
"@kysera/repository": "0.8.
|
|
45
|
+
"zod": "^4.3.6",
|
|
46
|
+
"@kysera/repository": "0.8.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"kysely": ">=0.28.8",
|
|
50
|
-
"zod": "^4.
|
|
51
|
-
"@kysera/repository": "0.8.
|
|
52
|
-
"@kysera/executor": "0.8.
|
|
50
|
+
"zod": "^4.3.6",
|
|
51
|
+
"@kysera/repository": "0.8.3",
|
|
52
|
+
"@kysera/executor": "0.8.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"zod": {
|