Skip to content

Commit

Permalink
Merge pull request #18 from chf007/feature/support-nestjs-v9
Browse files Browse the repository at this point in the history
Feature/support nestjs v9
  • Loading branch information
chf007 authored Sep 6, 2022
2 parents 2be9eaa + dba7ab8 commit 210362a
Show file tree
Hide file tree
Showing 19 changed files with 4,766 additions and 9,035 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## [Unreleased]

## [9.0.0] - 2022-09-06

### Changed
- 升级依赖
- 换用 pnpm 管理依赖
- 支持 NestJS V9
- 主版本号规则向 NestJS 主版号对齐
- 使用 `ConfigurableModuleBuilder` 优化配置逻辑
- tslint 换用 eslint
- 默认为 global 模块

## [1.2.0] - 2021-12-13
### Added
- 新增 cookieHttpOnly 配置,默认为 true
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ export class AppModule {}
```
// 导入 Module
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { WechatWorkModule } from 'nestjs-wechat-work';
@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,
}),
WechatWorkModule.registerAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
Expand Down
Loading

0 comments on commit 210362a

Please sign in to comment.