Skip to content

Commit

Permalink
version 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Jan 3, 2025
1 parent 013f11a commit 5636dc2
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 47 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.cjs

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,40 @@ on:
- cron: '0 0 * * *'

jobs:
node16:
name: Node 16
runs-on: ubuntu-22.04
node18:
name: Node 18
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: checkout node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '18'
- run: npm install
- run: npm test -- --run --no-cache
node18:
name: Node 18
runs-on: ubuntu-22.04
node20:
name: Node 20
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: checkout node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
- run: npm install
- run: npm test -- --run --no-cache
node20:
name: Node 20
runs-on: ubuntu-22.04
node22:
name: Node 22
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: checkout node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- run: npm install
- run: npm run lint
- run: npm run cs
Expand All @@ -55,7 +55,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: sonarcloud.io
uses: sonarsource/sonarcloud-github-action@master
uses: sonarsource/sonarqube-scan-action@v4.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2024 Dominik Zogg
Copyright (c) 2025 Dominik Zogg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Mongodb helper(s).

## Requirements

* node: 16
* [mongodb][2]: ^6.7.0
* node: 18
* [mongodb][2]: ^6.12.0

## Installation

Through [NPM](https://www.npmjs.com) as [@chubbyts/chubbyts-mongodb][1].

```ts
npm i @chubbyts/chubbyts-mongodb@^1.4.0
npm i @chubbyts/chubbyts-mongodb@^1.5.0
```

## Usage
Expand All @@ -57,7 +57,7 @@ await upsertIndexes(mongoClient, {

## Copyright

2024 Dominik Zogg
2025 Dominik Zogg

[1]: https://www.npmjs.com/package/@chubbyts/chubbyts-mongodb
[2]: https://www.npmjs.com/package/mongodb
1 change: 0 additions & 1 deletion build.js

This file was deleted.

1 change: 1 addition & 0 deletions build.mjs
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@chubbyts/chubbyts-eslint/dist/eslint.config';
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chubbyts/chubbyts-mongodb",
"type": "module",
"version": "1.4.0",
"version": "1.5.0",
"description": "Mongodb helper(s).",
"keywords": [
"chubbyts",
Expand All @@ -12,11 +12,11 @@
"license": "MIT",
"repository": "chubbyts/chubbyts-mongodb",
"scripts": {
"build": "node ./build.js",
"build": "node ./build.mjs",
"cs-fix": "prettier --write src tests",
"cs": "prettier --check src tests",
"infection": "stryker run",
"lint-fix": "eslint src tests --fix",
"lint-fix": "eslint src tests eslint.config.mjs vitest.config.ts --fix",
"lint": "eslint src tests",
"prepare": "npm run build",
"test": "vitest"
Expand All @@ -39,22 +39,22 @@
}
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"mongodb": "^6.7.0"
"mongodb": "^6.12.0"
},
"devDependencies": {
"@chubbyts/chubbyts-eslint": "^2.0.7",
"@chubbyts/chubbyts-function-mock": "^1.4.2",
"@chubbyts/chubbyts-packaging": "^2.0.7",
"@stryker-mutator/core": "^8.2.6",
"@stryker-mutator/vitest-runner": "^8.2.6",
"@types/node": "^20.14.2",
"@vitest/coverage-v8": "^1.6.0",
"prettier": "^3.3.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"@chubbyts/chubbyts-eslint": "^3.0.1",
"@chubbyts/chubbyts-function-mock": "^1.5.1",
"@chubbyts/chubbyts-packaging": "^3.0.0",
"@stryker-mutator/core": "^8.7.1",
"@stryker-mutator/vitest-runner": "^8.7.1",
"@types/node": "^22.10.5",
"@vitest/coverage-v8": "^2.1.8",
"prettier": "^3.4.2",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 0 additions & 1 deletion tsconfig.cjs.json

This file was deleted.

4 changes: 3 additions & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "./tsconfig.json",
"include": [
"eslint.config.mjs",
"vitest.config.ts",
"src",
"tests"
],
]
}
1 change: 0 additions & 1 deletion tsconfig.esm.json

This file was deleted.

1 change: 0 additions & 1 deletion tsconfig.types.json

This file was deleted.

0 comments on commit 5636dc2

Please sign in to comment.