Skip to content

Releases: alibaba/pont

v1.3.0

12 Apr 12:21
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.3.0

v1.2.0

18 Feb 06:51
Compare
Choose a tag to compare

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

18 Feb 06:42
Compare
Choose a tag to compare

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)

14 Feb 06:59
Compare
Choose a tag to compare

Attention

  • 该版本拆分了本地锁文件api-lock.json,从1.0.X升级到此版本时需要遵循如下步骤
    1. pontTemplate.ts如果定制了getMultipleOriginsFileStructuresgetOriginFileStructures,需要作出调整
    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;
       }
    1. 更新vscode插件版本为1.1.0
      更新后重新加载(更新插件版本会自动更新package.json)
      image
    2. 恢复新版本api-lock.json
      1. 删除outDir目录以下变动文件
        image
      2. 点击generage重新生成本地代码,拆分完成。
        image
      3. 剔除多余的api-lock.json.bak,提交其他文件

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

Full Changelog: v1.0.10...v1.1.0

v0.3.12(03/16, 2020)

16 Mar 14:39
Compare
Choose a tag to compare

1、该版本内置模板,支持了默认 fetch 方法,以及在项目中快速替换 fetch 方法。新项目接入真正实现一键接入。

2、该版本支持了 fetch 和 hooks 的默认模板。其中 hooks 模板支持基于 useSWR 的 useRequest 等方法,对 React Hooks 项目大大提高开发效率。

v0.3.11(02/27, 2020)

27 Feb 10:34
Compare
Choose a tag to compare

1、该版本支持快速接入 pont 命令: pont start

2、该版本支持 Javascript 项目。

v0.3.9(02/19, 2020)

19 Apr 09:23
Compare
Choose a tag to compare

自动化 mocks 服务

该版本 vscode-pont 插件支持 mocks 功能,使用文档参看 自动化-mocks-服务

代码懒生成

此前版本在生成代码时,将 outDir 文件夹清空后,依次重新生成每个文件。由于文件改动太大,常常使本地编译程序崩溃。本版本做了代码懒生成的优化:

  • 1、在更新 mod 、bo 后,pont 将立即对可预测的文件进行增量更新或删除。
  • 2、在点击 generate 按钮(或执行 pont generate)命令,pont 将读取本地生成的所有代码,对比即将生成的代码,计算需要更新或删除的文件,进行增量文件更新或删除。