@hozon/store-log 0.2.0 → 0.2.1

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/lib/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Adapter } from '@hozon/adapter';
2
- import type { Kysely } from 'kysely';
2
+ import type { Kysely } from '@hozon/db';
3
3
  import type { LogTables } from './tables.js';
4
4
  import type { LogStore } from './types.js';
5
5
  export declare function createLogStoreAPI(db: Kysely<LogTables>, adapter: Adapter): LogStore;
@@ -1,3 +1,2 @@
1
- import type { MigrationContext } from '@hozon/db';
2
- import type { Migration } from 'kysely/migration';
1
+ import type { Migration, MigrationContext } from '@hozon/db';
3
2
  export declare function logStoreMigrations(ctx: MigrationContext): Record<string, Migration>;
package/lib/migrations.js CHANGED
@@ -1,4 +1,4 @@
1
- import { sql } from 'kysely';
1
+ import { sql } from '@hozon/db';
2
2
  export function logStoreMigrations(ctx) {
3
3
  return {
4
4
  '0-init': {
package/lib/tables.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ColumnType, Generated } from 'kysely';
1
+ import type { ColumnType, Generated } from '@hozon/db';
2
2
  import type { LogLevel, StoredLog } from './types.js';
3
3
  export type LogTables = {
4
4
  logs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hozon/store-log",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Portable structured log store for Hozon",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,14 +18,14 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "@hozon/adapter": "^0.1.0",
21
- "@hozon/db": "^0.2.0",
22
- "@sozai/json": "^0.3.0",
23
- "kysely": "^0.29.6"
21
+ "@hozon/db": "^0.2.1",
22
+ "@sozai/json": "^0.3.0"
24
23
  },
25
24
  "devDependencies": {
26
25
  "@hozon/node-sqlite": "^0.1.0",
27
26
  "@types/node": "^26.6.4",
28
27
  "del-cli": "^7.0.0",
28
+ "kysely": "^0.29.6",
29
29
  "vitest": "5.0.3"
30
30
  },
31
31
  "publishConfig": {