Releases: alibaba/pont
Releases · alibaba/pont
v1.3.0
What's Changed
- docs(readme): pont scan 生成的应该是 unusedRequests.json 文件 by @cklwblove in #290
- Feat/vscode by @ianfuin in #291
- feat: 添加注释 by @ianfuin in #292
- fix: 修复初始化时没有进行diff计算 by @ianfuin in #293
- fix(pontorigins.ts): 修复不存在配置时,文件名展示为undefined by @ianfuin in #296
- docs: 新文档 by @ianfuin in #302
- fix: 修复文档错误 by @ianfuin in #303
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- feat(pont-engine vscode-pont): 1.添加vscode插件代码块模板 2.工具栏底部添加呼出查询接口UI的快捷方式 by @ianfuin in #281
- refactor: 重构scan命令,支持其他通用用法 by @z979054461 in #282
- feat(pont-engine vscode-pont): 修改codeSnippet位置 by @ianfuin in #283
New Contributors
Full Changelog: v1.1.1...v1.2.0
v1.1.1
What's Changed
- chore(deps): bump follow-redirects from 1.14.7 to 1.14.8 by @dependabot in #278
- chore(deps): bump ajv from 6.10.2 to 6.12.6 in /examples/hooks-app by @dependabot in #277
- chore(deps): bump ajv from 6.10.2 to 6.12.6 by @dependabot in #276
- feat(all): 新增配置spiltApiLock(是否拆分api-lock.json,默认关闭)便于用户平滑升级 by @z979054461 in #279
Full Changelog: v1.1.0...v1.1.1
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
v0.3.12(03/16, 2020)
1、该版本内置模板,支持了默认 fetch 方法,以及在项目中快速替换 fetch 方法。新项目接入真正实现一键接入。
2、该版本支持了 fetch 和 hooks 的默认模板。其中 hooks 模板支持基于 useSWR 的 useRequest 等方法,对 React Hooks 项目大大提高开发效率。
v0.3.11(02/27, 2020)
1、该版本支持快速接入 pont 命令: pont start
2、该版本支持 Javascript 项目。
v0.3.9(02/19, 2020)
自动化 mocks 服务
该版本 vscode-pont 插件支持 mocks 功能,使用文档参看 自动化-mocks-服务
代码懒生成
此前版本在生成代码时,将 outDir 文件夹清空后,依次重新生成每个文件。由于文件改动太大,常常使本地编译程序崩溃。本版本做了代码懒生成的优化:
- 1、在更新 mod 、bo 后,pont 将立即对可预测的文件进行增量更新或删除。
- 2、在点击 generate 按钮(或执行 pont generate)命令,pont 将读取本地生成的所有代码,对比即将生成的代码,计算需要更新或删除的文件,进行增量文件更新或删除。