Skip to content

Commit

Permalink
Merge pull request #8 from hexenq/dev
Browse files Browse the repository at this point in the history
refactor: adapt new version of gitbeaker
  • Loading branch information
hexenq committed Jan 27, 2021
2 parents 92be626 + 30bb1ec commit 57d9fca
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 106 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ Gitlab API library module for <a href="https://github.com/nestjs/nest">Nest</a>.
npm install --save nest-gitlab @gitbeaker/node
```

## Compatibility
| gitbeaker | nest-gitlab |
| :----------------------------: | :---------: |
| node-gitlab (former gitbeaker) | 1.x |
| 19.0.0 ~ 23.5.0 | 2.x |
| 23.6.0 ~ | 3.x |

## Quick Start

Import `GitlabModule` and configure it with the same initiating options as the gitbeaker package.
Expand Down
163 changes: 61 additions & 102 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nest-gitlab",
"version": "2.0.1",
"version": "3.0.0",
"description": "A gitbeaker wrapper for NestJS framework",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -31,7 +31,7 @@
"dist"
],
"devDependencies": {
"@gitbeaker/node": "19.6.0",
"@gitbeaker/node": "^28.0.4",
"@nestjs/common": "^7.6.7",
"@nestjs/core": "^7.6.7",
"@nestjs/platform-express": "^7.6.7",
Expand All @@ -45,7 +45,7 @@
"typescript": "^3.5.3"
},
"peerDependencies": {
"@gitbeaker/node": "19.0.0 - 23.5.0",
"@gitbeaker/node": ">=23.6.0",
"@nestjs/common": "^5.0.0 || ^6.0.0 || ^7.0.0"
},
"husky": {
Expand Down
2 changes: 1 addition & 1 deletion src/gitlab.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ModuleMetadata } from '@nestjs/common/interfaces';
import { Gitlab, GroupsBundle, ProjectsBundle, UsersBundle } from '@gitbeaker/node';
import { BaseServiceOptions } from '@gitbeaker/core/dist/types/infrastructure';
import { BaseServiceOptions } from '@gitbeaker/requester-utils';

export enum BundleType {
Groups = 'GroupsBundle',
Expand Down

0 comments on commit 57d9fca

Please sign in to comment.