Skip to content

Commit 2e80943

Browse files
committed
Merge branch 'beta'
2 parents 27741b4 + d0f3e58 commit 2e80943

22 files changed

+8865
-4992
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Before making a Pull Request
44

55
- Make sure all tests pass locally (`npm run test`)
6-
- Make sure you have run `yarn run lint` & if something should come up, fix it to keep the code in one style (`yarn run lint --fix`)
6+
- Make sure you have run `npm run lint` & if something should come up, fix it to keep the code in one style (`npm run lint --fix`)
77
- When you add documentation please make sure to keep the existing style
88
- Make sure you read [Mastering-Markdown](https://guides.github.com/features/mastering-markdown/)
99
- Make sure when you make documentation of a something, you use the [TSDoc standard](https://api-extractor.com/pages/tsdoc/doc_comment_syntax/), not JSDoc

.github/workflows/tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
node-version: [16.x, 18.x, 20.x, 22.x, 24.x]
28+
node-version: [20.x, 22.x, 24.x]
2929
steps:
3030
- uses: actions/checkout@v3
3131
- name: Use Node.js ${{ matrix.node-version }}
@@ -39,19 +39,19 @@ jobs:
3939
path: ~/.cache/mongodb-binaries
4040
key: ${{ matrix.node-version }}
4141
- name: Install Dependencies
42-
run: yarn install --frozen-lockfile
42+
run: npm ci
4343
- name: Run Audit
44-
run: (yarn audit || exit 0)
44+
run: (npm audit || exit 0)
4545
- name: Test Compiling Everything
46-
run: yarn run build:tests
46+
run: npm run build:tests
4747
- name: Lint
48-
run: yarn run lint
48+
run: npm run lint
4949
- name: Test
50-
run: yarn run test:coverage --colors
50+
run: npm run test:coverage -- --colors
5151
env:
5252
CI: true
5353
- name: Send codecov.io stats
54-
if: matrix.node-version == '18.x'
54+
if: matrix.node-version == '24.x'
5555
uses: codecov/codecov-action@v3
5656
publish:
5757
permissions:
@@ -75,9 +75,9 @@ jobs:
7575
path: ~/.cache/mongodb-binaries
7676
key: publish
7777
- name: Install node_modules
78-
run: yarn install
78+
run: npm ci
7979
- name: Build
80-
run: yarn build
80+
run: npm run build
8181
- name: Semantic Release
8282
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
8383
with:

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn commitlint --edit $1
1+
commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn lint-staged
1+
lint-staged

.releaserc.js

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,47 @@ module.exports = {
55
{
66
preset: 'angular',
77
releaseRules: [
8-
{breaking: true, release: 'major'},
9-
{type: 'feat', release: 'minor'},
10-
{type: 'fix', release: 'patch'},
11-
{type: 'docs', release: false},
12-
{type: 'style', release: false},
13-
{type: 'refactor', release: 'patch'},
14-
{type: 'perf', release: 'patch'},
15-
{type: 'test', release: false},
16-
{type: 'chore', release: false},
17-
{type: 'devdeps', release: false},
18-
{type: 'deps', release: 'minor'},
19-
{type: 'revert', release: 'patch'},
8+
{ breaking: true, release: 'major' },
9+
{ type: 'feat', release: 'minor' },
10+
{ type: 'fix', release: 'patch' },
11+
{ type: 'docs', release: false },
12+
{ type: 'style', release: false },
13+
{ type: 'refactor', release: 'patch' },
14+
{ type: 'perf', release: 'patch' },
15+
{ type: 'test', release: false },
16+
{ type: 'chore', release: false },
17+
{ type: 'devdeps', release: false },
18+
{ type: 'deps', release: 'minor' },
19+
{ type: 'revert', release: 'patch' },
2020
// dont trigger another release on release commit
21-
{type: 'release', release: false}
21+
{ type: 'release', release: false },
2222
],
2323
parserOpts: {
24-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES']
25-
}
26-
}
24+
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
25+
},
26+
},
2727
],
2828
[
2929
'@semantic-release/release-notes-generator',
3030
{
3131
preset: 'conventionalcommits',
3232
presetConfig: {
3333
types: [
34-
{type: 'feat', section: 'Features'},
35-
{type: 'fix', section: 'Fixes'},
36-
{type: 'docs', hidden: true},
37-
{type: 'style', section: 'Style'},
38-
{type: 'refactor', section: 'Refactor'},
39-
{type: 'perf', section: 'Performance'},
40-
{type: 'test', hidden: true},
41-
{type: 'chore', hidden: true},
42-
{type: 'deps', section: 'Dependencies'},
43-
{type: 'devdeps', section: 'Dev-Dependencies'},
44-
{type: 'revert', section: 'Reverts'},
45-
{type: 'release', hidden: true}
46-
]
47-
}
48-
}
34+
{ type: 'feat', section: 'Features' },
35+
{ type: 'fix', section: 'Fixes' },
36+
{ type: 'docs', hidden: true },
37+
{ type: 'style', section: 'Style' },
38+
{ type: 'refactor', section: 'Refactor' },
39+
{ type: 'perf', section: 'Performance' },
40+
{ type: 'test', hidden: true },
41+
{ type: 'chore', hidden: true },
42+
{ type: 'deps', section: 'Dependencies' },
43+
{ type: 'devdeps', section: 'Dev-Dependencies' },
44+
{ type: 'revert', section: 'Reverts' },
45+
{ type: 'release', hidden: true },
46+
],
47+
},
48+
},
4949
],
5050
'@semantic-release/changelog',
5151
[
@@ -56,12 +56,13 @@ module.exports = {
5656
},
5757
],
5858
[
59-
'@semantic-release/git', {
59+
'@semantic-release/git',
60+
{
6061
assets: ['package.json', 'CHANGELOG.md'],
61-
message: 'release: v${nextRelease.version}'
62-
}
62+
message: 'release: v${nextRelease.version}',
63+
},
6364
],
64-
'@semantic-release/github'
65+
'@semantic-release/github',
6566
],
6667
branches: [
6768
// from what I read in the semantic-release configuration and in some issues, the order has to be like this:

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
## [5.0.0-beta.1](https://github.com/typegoose/auto-increment/compare/v4.13.1...v5.0.0-beta.1) (2025-12-04)
2+
3+
### ⚠ BREAKING CHANGES
4+
5+
* **mongoose:** mongoose 9.0.0
6+
* **tsconfig.json:** tsconfig "target" is now "es2023" which could be potentially breaking
7+
* **package.json:** Minimal NodeJS version is now 20.19.0
8+
9+
### Features
10+
11+
* **package.json:** update nodejs version to 20.19 ([aedf152](https://github.com/typegoose/auto-increment/commit/aedf152953463bd0d96fd5ba28deacc0984bc0a0))
12+
* **tsconfig.json:** update "target" to match minimal NodeJS capabilities ([d723e29](https://github.com/typegoose/auto-increment/commit/d723e292794a3e8171afc29cd996cdd15b34f923))
13+
14+
### Style
15+
16+
* **autoIncrement:** remove unused ts-expect-error directive ([0691e87](https://github.com/typegoose/auto-increment/commit/0691e871dbb0fa126a04656e6bc3f69d2062331f))
17+
* migrate to eslint flat config ([42aecc1](https://github.com/typegoose/auto-increment/commit/42aecc13a4b5dbb07fb4e64c86e67b84bd640a44))
18+
19+
### Dependencies
20+
21+
* **mongoose:** upgrade to 9.0.0 ([46a3a56](https://github.com/typegoose/auto-increment/commit/46a3a56521f45a2b62b0992d1bf9a8e81848f845))
22+
23+
### Dev-Dependencies
24+
25+
* **@types/jest:** upgrade to 30.0.0 ([5875131](https://github.com/typegoose/auto-increment/commit/58751310f6e966be3acf90ebc26846e05fd8c1b4))
26+
* **@types/node:** upgrade to 24.10.0 ([106ebdc](https://github.com/typegoose/auto-increment/commit/106ebdcbd83b8184fab451e578c2a6b8125fa14f))
27+
* **@typescript-eslint/*:** upgrade to 7.18.0 ([7b47ee9](https://github.com/typegoose/auto-increment/commit/7b47ee91419d96a821d49a3339f93a0a3ee713ba))
28+
* **@typescript-eslint/*:** upgrade to 8.31.1 ([c89af48](https://github.com/typegoose/auto-increment/commit/c89af48177ad8624ed8424b276b431c7400d5550))
29+
* **commitlint:** upgrade to 20.1.0 ([892b03e](https://github.com/typegoose/auto-increment/commit/892b03e49bba41fdb17ff16ed132d75e707bfcad))
30+
* **eslint-config-prettier:** upgrade to 10.1.8 ([c8698b4](https://github.com/typegoose/auto-increment/commit/c8698b46f0e2bd2472e8dcf6331105bab40da8d9))
31+
* **eslint-plugin-prettier:** upgrade to 5.5.4 ([250af40](https://github.com/typegoose/auto-increment/commit/250af40a96d04ad4fc109a4a5820818b7c18aa14))
32+
* **eslint:** upgrade to 9.39.1 ([db80884](https://github.com/typegoose/auto-increment/commit/db8088481812fef1d15c25cad5688c5d577187c9))
33+
* **husky:** upgrade to 9.1.7 ([2eed465](https://github.com/typegoose/auto-increment/commit/2eed465442384d761ec04ad0d7063743e0ddc54a))
34+
* **jest:** upgrade to 30.2.0 ([fef76e5](https://github.com/typegoose/auto-increment/commit/fef76e5879660803fdee3625cf79298f817a01d7))
35+
* **lint-staged:** upgrade to 16.2.7 ([5de6901](https://github.com/typegoose/auto-increment/commit/5de69012be0ef1ee432b8c52c530235259819170))
36+
* **prettier:** upgrade to 3.7.4 ([c27cf03](https://github.com/typegoose/auto-increment/commit/c27cf03c18c7d0d1391ec8740c30ebbd2a2bde4b))
37+
* **rimraf:** upgrade to 6.1.2 ([98ac22f](https://github.com/typegoose/auto-increment/commit/98ac22f05c149a8bb152557e1f547ff036e0d818))
38+
* **ts-jest:** upgrade to 29.4.6 ([1e72420](https://github.com/typegoose/auto-increment/commit/1e72420a7f8a586c981cf0d55f9677d8f26fe1c9))
39+
* **typescript:** upgrade to 5.9.3 ([29ed2c2](https://github.com/typegoose/auto-increment/commit/29ed2c299815a2fdd4008691d00a6c3dfa45ce8a))
40+
141
## [4.13.1](https://github.com/typegoose/auto-increment/compare/v4.13.0...v4.13.1) (2025-10-07)
242

343

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ I started `@typegoose/auto-increment` because `mongoose-auto-increment` and `mon
7878

7979
## Requirements
8080

81-
- Node 16.20.1+
82-
- TypeScript 5.3+ (older versions could work, but are not tested)
83-
- mongoose 8.13.0+
81+
- Node 20.19.0+
82+
- TypeScript 5.9+ (older versions could work, but are not tested)
83+
- mongoose 9.0.0+
8484

8585
## Install
8686

commitlint.config.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
module.exports = {
2-
"extends": [
3-
"@commitlint/config-conventional"
4-
],
5-
"rules": {
6-
"scope-case": [0, "never"],
7-
"body-min-length": [2, "always", 3],
8-
"footer-max-line-length": [1, "always", 200],
9-
"type-enum": [2, "always", ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'chore', 'revert', 'deps', 'devdeps', 'release']]
10-
}
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'scope-case': [0, 'never'],
5+
'body-min-length': [2, 'always', 3],
6+
'footer-max-line-length': [1, 'always', 200],
7+
'type-enum': [
8+
2,
9+
'always',
10+
['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'chore', 'revert', 'deps', 'devdeps', 'release'],
11+
],
12+
},
1113
};

0 commit comments

Comments
 (0)