v1.1.0(02/14, 2022)
Attention
- 该版本拆分了本地锁文件api-lock.json,从1.0.X升级到此版本时需要遵循如下步骤:
pontTemplate.ts
如果定制了getMultipleOriginsFileStructures
和getOriginFileStructures
,需要作出调整
diff --git a/pontTemplate.ts b/pontTemplate.ts index 727f5ac..cd60631 100644 --- a/pontTemplate.ts +++ b/pontTemplate.ts @@ -71,7 +71,6 @@ export default class MyGenerator extends CodeGenerator { ...files, [getFileName('index', this.surrounding)]: this.getDataSourcesTs.bind(this), 'api.d.ts': this.getDataSourcesDeclarationTs.bind(this), - 'api-lock.json': this.getLockContent.bind(this) }; } @@ -112,13 +111,10 @@ export default class MyGenerator extends CodeGenerator { [getFileName('baseClass', this.surrounding)]: generator.getBaseClassesIndex.bind(generator), mods: mods, [indexFileName]: generator.getIndex.bind(generator), - 'api.d.ts': generator.getDeclaration.bind(generator) + 'api.d.ts': generator.getDeclaration.bind(generator), + 'api-lock.json': this.getLockContent(generator), }; - if (!usingMultipleOrigins) { - result['api-lock.json'] = this.getLockContent.bind(this); - } - return result; }
What's Changed
- chore(deps): bump ini from 1.3.5 to 1.3.8 in /examples/hooks-app by @dependabot in #207
- chore(deps): bump hosted-git-info from 2.7.1 to 2.8.9 in /examples/hooks-app by @dependabot in #231
- chore(deps): bump url-parse from 1.4.7 to 1.5.3 by @dependabot in #250
- chore: update prettier version to fixes #238 by @z979054461 in #258
- update readme for @nestjs/swagger v4 usage by @mutoe in #186
- fix(vscode-pont): 修复refresh mocks data 异常报错的问题 fixes #204 by @z979054461 in #259
- fix(pont-engine): 修复单数据源的情况下设置originType失败的问题 fixes #244 by @z979054461 in #260
- feat: add scan cli to recognize unused api(扫描未使用的接口) by @Moon-R in #261
- feat(pont-engine): 更新Mod时关联更新bo(BaseClass) by @z979054461 in #262
- feat(all): 多数据源场景,默认拆分api-lock.json到每个数据源目录下 by @z979054461 in #263
- chore(deps): bump follow-redirects from 1.9.0 to 1.14.7 by @dependabot in #265
- chore(deps): bump follow-redirects from 1.7.0 to 1.14.7 in /examples/hooks-app by @dependabot in #266
- chore(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 by @dependabot in #271
- chore(deps): bump node-fetch from 1.7.3 to 2.6.7 by @dependabot in #272
- chore(deps): bump postcss from 7.0.17 to 7.0.39 in /examples/hooks-app by @dependabot in #273
- fix(readme): md scannedPattern transfer bug by @3fuyu in #275
New Contributors
- @z979054461 made their first contribution in #258
- @mutoe made their first contribution in #186
- @Moon-R made their first contribution in #261
- @3fuyu made their first contribution in #275
Full Changelog: v1.0.10...v1.1.0