@bejibun/core 0.1.38 → 0.1.39

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
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  ---
5
5
 
6
- ## [v0.1.37](https://github.com/crenata/bejibun-core/compare/v0.1.36...v0.1.37) - 2025-10-17
6
+ ## [v0.1.38](https://github.com/crenata/bejibun-core/compare/v0.1.36...v0.1.38) - 2025-10-17
7
7
 
8
8
  ### 🩹 Fixes
9
9
 
@@ -1,4 +1,3 @@
1
- import type { Knex } from "knex";
2
1
  import { DateTime } from "luxon";
3
2
  import { Constructor, Model, ModelOptions, PartialModelObject, QueryBuilder, QueryBuilderType, QueryContext, TransactionOrKnex } from "objection";
4
3
  import SoftDeletes from "../facades/SoftDeletes";
@@ -16,7 +15,6 @@ export default class BaseModel extends Model implements BaseColumns {
16
15
  static idColumn: string;
17
16
  static deletedColumn: string;
18
17
  static QueryBuilder: typeof BunQueryBuilder;
19
- static knex: (knex?: Knex) => Knex;
20
18
  id: number | bigint;
21
19
  created_at: DateTime | string;
22
20
  updated_at: DateTime | string;
@@ -23,7 +23,6 @@ export default class BaseModel extends Model {
23
23
  static idColumn;
24
24
  static deletedColumn = "deleted_at";
25
25
  static QueryBuilder = BunQueryBuilder;
26
- static knex;
27
26
  static get namespace() {
28
27
  const filePath = fileURLToPath(import.meta.url);
29
28
  const appRoot = process.cwd();
package/bun.lock CHANGED
@@ -23,9 +23,9 @@
23
23
  },
24
24
  },
25
25
  "packages": {
26
- "@bejibun/cors": ["@bejibun/cors@0.1.0", "", { "dependencies": { "@bejibun/utils": "^0.1.0" } }, "sha512-tyUraDQkhxjbKPBgo+QnY9ry7t+sJ9j4v8Fwe4kPk++S1P2LpKDBw/5XlBtN/jgHbrfSz1Dor7ENeJsUAuMlYQ=="],
26
+ "@bejibun/cors": ["@bejibun/cors@0.1.1", "", { "dependencies": { "@bejibun/utils": "^0.1.0" } }, "sha512-9riA6+yZbCyS1KSB+DnUqF7EevecqbwwMWlJsq29Cqq15fX7YJJr6T/GIt6t905dlAQkbMOloPUp1mpKCKBhFg=="],
27
27
 
28
- "@bejibun/logger": ["@bejibun/logger@0.1.13", "", { "dependencies": { "@bejibun/utils": "^0.1.0", "chalk": "^5.6.2", "luxon": "^3.7.2" } }, "sha512-Vq17rFd10P/jtUdUHVNOP+cdHnMjobgw5t4rQ4iF/vPtS/qtyvBJN6rkmpL+4mtAquVYOdJCycZtk7cSdXhpGw=="],
28
+ "@bejibun/logger": ["@bejibun/logger@0.1.14", "", { "dependencies": { "@bejibun/utils": "^0.1.0", "chalk": "^5.6.2", "luxon": "^3.7.2" } }, "sha512-Y0rwHMUaJpKE2G3ZRsXKlpwKPQAVlqut44laFJfltTUS7vMZbnKMuWYdfaCp3rX6DCUNxeaChX+8Jte3tYJ50g=="],
29
29
 
30
30
  "@bejibun/utils": ["@bejibun/utils@0.1.1", "", {}, "sha512-8TofYYN+EhPQgNOkyovMaAamRqbK/PisrAxjspXFlqVLj8bnmdOsZjosTpNXesLGIftn4rKkaFsfaafD//31Hg=="],
31
31
 
@@ -257,10 +257,6 @@
257
257
 
258
258
  "yoctocolors": ["yoctocolors@2.1.2", "", {}, "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug=="],
259
259
 
260
- "@bejibun/cors/@bejibun/utils": ["@bejibun/utils@0.1.0", "", {}, "sha512-zH9Sxo1C+y8rzLTf5/t78HfDYp8C34d+gsEzbo98OKKwI9so37ljdz2LDlXxDinp3lDBi9r/l/EmkNLECfP10g=="],
261
-
262
- "@bejibun/logger/@bejibun/utils": ["@bejibun/utils@0.1.0", "", {}, "sha512-zH9Sxo1C+y8rzLTf5/t78HfDYp8C34d+gsEzbo98OKKwI9so37ljdz2LDlXxDinp3lDBi9r/l/EmkNLECfP10g=="],
263
-
264
260
  "knex/commander": ["commander@10.0.1", "", {}, "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug=="],
265
261
 
266
262
  "pg/pg-connection-string": ["pg-connection-string@2.9.1", "", {}, "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w=="],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/core",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,8 +9,8 @@
9
9
  "main": "index.js",
10
10
  "module": "index.js",
11
11
  "dependencies": {
12
- "@bejibun/cors": "^0.1.0",
13
- "@bejibun/logger": "^0.1.13",
12
+ "@bejibun/cors": "^0.1.1",
13
+ "@bejibun/logger": "^0.1.14",
14
14
  "@bejibun/utils": "^0.1.1",
15
15
  "@vinejs/vine": "^3.0.1",
16
16
  "commander": "^14.0.1",
@@ -47,8 +47,6 @@ export default class BaseModel extends Model implements BaseColumns {
47
47
 
48
48
  public static QueryBuilder = BunQueryBuilder;
49
49
 
50
- public static knex: (knex?: Knex) => Knex;
51
-
52
50
  declare id: number | bigint;
53
51
  declare created_at: DateTime | string;
54
52
  declare updated_at: DateTime | string;
package/src/bootstrap.ts CHANGED
@@ -1,4 +1,5 @@
1
+ import {Model} from "objection";
1
2
  import BaseModel from "@/bases/BaseModel";
2
3
  import {initDatabase} from "@/config/database";
3
4
 
4
- BaseModel.knex(initDatabase());
5
+ (BaseModel as any as typeof Model).knex(initDatabase());