mevn-orm 3.1.0 → 3.2.2

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 CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  ![npm](https://img.shields.io/npm/v/mevn-orm?style=for-the-badge) [![GitHub license](https://img.shields.io/github/license/stanleymasinde/mevn-orm?style=for-the-badge)](https://github.com/StanleyMasinde/mevn-orm/blob/master/LICENSE) ![GitHub issues](https://img.shields.io/github/issues/stanleymasinde/mevn-orm?style=for-the-badge)
4
4
 
5
- **Mevn ORM** is a lightweight ORM for Express.js and MySQL that provides a clean, fluent interface for building queries and managing models.
5
+ ### Do not use This
6
+ When I started this, I had so much intertest in the JS ecosytem and ORMs. I still have some intertest in javascript
7
+ bit not ORMs.
8
+
9
+ **Mevn ORM** is a lightweight ORM for Express.js and MySQL that provides a clean, fluent interface for building queries and managing models.
6
10
  It is under maintenance mode and receives security updates. Development is paused, but the core ORM functionality is complete and usable.
7
11
 
8
12
  ## Getting Started
@@ -46,12 +50,14 @@ const user = await User.create({
46
50
 
47
51
  ## Testing
48
52
 
49
- This project uses [Vitest](https://vitest.dev/) for testing.
53
+ Use Node.js 24.x (LTS) with pnpm.
54
+
55
+ This project uses [Mocha](https://mochajs.org/) for testing.
50
56
 
51
57
  ```bash
52
- npm install
53
- npm run migrate
54
- npm run test
58
+ pnpm install
59
+ pnpm run migrate
60
+ pnpm run test
55
61
  ```
56
62
 
57
63
  ## License
package/changelog.md ADDED
@@ -0,0 +1,135 @@
1
+ ## [unreleased]
2
+
3
+ ### 💼 Other
4
+
5
+ - Use Node 16 until I figure out what is going on
6
+ ## [3.2.0] - 2025-09-29
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ - *(deps)* Bump actions/checkout from 4 to 5
11
+ - *(deps)* Bump actions/setup-node from 4 to 5
12
+
13
+ ### 💼 Other
14
+
15
+ - Support the latest versions of node
16
+ - Only use Node 20 for tests
17
+
18
+ ### ⚙️ Miscellaneous Tasks
19
+
20
+ - Upgrade deps
21
+ ## [3.0.0] - 2025-07-02
22
+
23
+ ### 🐛 Bug Fixes
24
+
25
+ - *(deps)* Bump actions/checkout from 3 to 4
26
+ - *(deps)* Bump actions/setup-node from 3 to 4
27
+
28
+ ### ⚙️ Miscellaneous Tasks
29
+
30
+ - Upgrade deps
31
+ ## [2.4.7-1] - 2023-03-08
32
+
33
+ ### ⚙️ Miscellaneous Tasks
34
+
35
+ - Update the default peer dep
36
+ ## [2.4.6] - 2023-03-08
37
+
38
+ ### ⚙️ Miscellaneous Tasks
39
+
40
+ - Add auto publish to npm
41
+ ## [2.4.5] - 2023-03-06
42
+
43
+ ### 💼 Other
44
+
45
+ - Update npm dependencies
46
+
47
+ ### ⚙️ Miscellaneous Tasks
48
+
49
+ - *(ci)* Drop support for node 14
50
+ - *(version)* Release patch version 2.4.5
51
+ ## [2.4.4] - 2023-01-04
52
+
53
+ ### ⚙️ Miscellaneous Tasks
54
+
55
+ - *(version)* Release patch version 2.4.4
56
+ ## [2.4.3] - 2023-01-04
57
+
58
+ ### ⚙️ Miscellaneous Tasks
59
+
60
+ - *(version)* Release patch version 2.4.3
61
+ ## [2.4.2] - 2023-01-03
62
+
63
+ ### 🐛 Bug Fixes
64
+
65
+ - *(deps)* Bump actions/checkout from 2 to 3 (#60)
66
+
67
+ ### ⚙️ Miscellaneous Tasks
68
+
69
+ - *(version)* Release patch version 2.4.2
70
+ ## [2.4.1] - 2022-07-21
71
+
72
+ ### ⚙️ Miscellaneous Tasks
73
+
74
+ - *(version)* Release patch version 2.4.1
75
+ ## [2.4.0] - 2022-07-20
76
+
77
+ ### ⚙️ Miscellaneous Tasks
78
+
79
+ - *(version)* Release minor version 2.4.0
80
+ ## [2.3.7] - 2022-07-20
81
+
82
+ ### 🐛 Bug Fixes
83
+
84
+ - *(deps)* Bump actions/setup-node from 2 to 3 (#59)
85
+ - *(dev)* Throwing error in the init db command that is used for setup
86
+
87
+ ### ⚙️ Miscellaneous Tasks
88
+
89
+ - *(dev)* The default database in .env.example is now mysql
90
+ - *(dev)* Using sqlite 3 instead of @vscode/sqlite3
91
+ - *(version)* Release patch version 2.3.7
92
+ ## [2.3.6] - 2022-02-03
93
+
94
+ ### 🐛 Bug Fixes
95
+
96
+ - *(config)* Error when reolving config from the user defined config. file not found
97
+ - *(knexfile)* The path of the knex file was still not updated to use either of the 2 .js or .cjs
98
+
99
+ ### ⚙️ Miscellaneous Tasks
100
+
101
+ - *(version)* Release patch version 2.3.2
102
+ - *(version)* Release patch version 2.3.3
103
+ - *(version)* Release patch version 2.3.4
104
+ - *(version)* Release patch version 2.3.5
105
+ - *(version)* Release patch version 2.3.6
106
+ ## [2.3.1] - 2022-02-01
107
+
108
+ ### ⚙️ Miscellaneous Tasks
109
+
110
+ - *(version)* Release minor version 2.3.1
111
+ ## [2.3.0] - 2022-02-01
112
+
113
+ ### 🚀 Features
114
+
115
+ - *(find)* Added the static find method
116
+ - *(model)* Added the create method
117
+ - *(update)* Added the instance update method
118
+ - *(delete)* Added a delete method
119
+
120
+ ### 🐛 Bug Fixes
121
+
122
+ - *(deps)* Bump knex from 0.21.17 to 0.95.11 (#12)
123
+ - *(exports)* Breaking changes were pushed with the previous change. the changes has been fixed
124
+ - *(tableName)* Not hiding the table by default
125
+ - *(first)* Fixed the first method
126
+ - *(knexfile)* Loading knexfile from the current working dir instead of the root of the package
127
+ - *(deps)* The latest knex version removed as a peer dep.
128
+
129
+ ### ⚙️ Miscellaneous Tasks
130
+
131
+ - *(package)* Updated package.json
132
+ - *(es6)* Using .cjs for knexfile
133
+ - *(version)* Release 2.2.13
134
+ - *(version)* Release minor version 2.2.14
135
+ - *(version)* Release minor version 2.3.0
package/package.json CHANGED
@@ -1,15 +1,8 @@
1
1
  {
2
2
  "name": "mevn-orm",
3
- "version": "3.1.0",
3
+ "version": "3.2.2",
4
4
  "description": "simple ORM for express js",
5
5
  "type": "commonjs",
6
- "scripts": {
7
- "pretest": "node initDb",
8
- "test": "mocha --exit",
9
- "init:db": "node initDb",
10
- "migrate": "knex migrate:latest",
11
- "lint": "eslint --ext .js ./"
12
- },
13
6
  "peerDependencies": {
14
7
  "dotenv": "^17.0.1",
15
8
  "knex": "^3.0.0",
@@ -46,11 +39,11 @@
46
39
  "@babel/core": "^7.24.5",
47
40
  "@babel/eslint-parser": "^7.24.3",
48
41
  "@babel/eslint-plugin": "^7.24.0",
49
- "@faker-js/faker": "^9.8.0",
50
- "chai": "^4.4.1",
42
+ "@faker-js/faker": "^10.0.0",
43
+ "chai": "^6.2.0",
51
44
  "dotenv": "^17.0.1",
52
45
  "knex": "^3.0.0",
53
- "mocha": "^10.4.0",
46
+ "mocha": "^11.7.4",
54
47
  "mysql": "^2.18.1",
55
48
  "sqlite3": "^5.1.7"
56
49
  },
@@ -65,5 +58,12 @@
65
58
  "email": "stanleymasinde1@gmail.com"
66
59
  },
67
60
  "homepage": "https://github.com/StanleyMasinde/mevn-orm#readme",
68
- "main": "index.js"
69
- }
61
+ "main": "index.js",
62
+ "scripts": {
63
+ "pretest": "node initDb",
64
+ "test": "mocha --exit",
65
+ "init:db": "node initDb",
66
+ "migrate": "knex migrate:latest",
67
+ "lint": "eslint --ext .js ./"
68
+ }
69
+ }
@@ -0,0 +1,8 @@
1
+ onlyBuiltDependencies:
2
+ - sqlite3
3
+
4
+ overrides:
5
+ diff@>=6.0.0 <8.0.3: '>=8.0.3'
6
+ tar@<7.5.7: '>=7.5.7'
7
+ tar@<=7.5.2: '>=7.5.3'
8
+ tar@<=7.5.3: '>=7.5.4'
package/.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "plugins": ["@babel/plugin-proposal-class-properties"]
3
- }