Skip to content

Latest commit

 

History

History
565 lines (312 loc) · 35.4 KB

CHANGELOG.md

File metadata and controls

565 lines (312 loc) · 35.4 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.71 (2023-07-26)

Bug Fixes

  • plugin-compiler-web: 修复 pnpm 场景下 runtime-web 可能会找不到的问题 (b598de8)
  • plugin-compiler-web: 修复分包工程编译为 web 时可能会报错的问题 (b9d5203)
  • plugin-compiler: 分包或插件转 web 场景下不注入 App 的初始化模拟支持 (1bb21f6)

Features

  • plugin-generator: 修改模版文件用于支持 isSupportWeb 选项 (39896d1)
  • runtime-web: createIntersectionObserver 增加 dataset 透传 (3012c51)
  • runtime-web: this.createSelectorQuery 用法支持 (94abb99)

1.0.70 (2023-07-19)

Bug Fixes

  • runtime-mini: 修复组件初始化时,property 中的 observer 可能会不触发的问题 (#84) (f107657)

1.0.69 (2023-07-17)

Bug Fixes

  • plugin-compiler-alipay: 修复 sjs 文件模块变量 this 名称替换可能会漏掉的问题 (ed6046f)
  • plugin-compiler-alipay: 修复微信转支付宝分包配置可能会引发报错的问题 (63522f9)
  • plugin-compiler: 修复 autoInjectRuntime.api 设为 true,未自动转换为 enhanced 引发的 ts 类型报错 (#82) (4d5a660)
  • plugin-compiler: 修复部分情况下自动写入内存文件可能会引发报错的问题 (a2bac5f)

Features

  • plugin-compiler-web: 完善小程序转 Web 的功能逻辑以及禁止载入用户自定义的 babel 配置 (824e032)
  • plugin-compiler-web: 移除 slot 组件对 class, style 属性的解析以及完善节点返回值校验 (#79) (fcca600)
  • plugin-compiler: template 文件解析增加页面纬度的共享上下文透传支持 (184a132)
  • plugin-compiler: 优化微信 DSL 转 Web 对 wxs 文件解析逻辑的支持 (dac0fc5)
  • plugin-compiler: 完善 setEntrySource 对写入内存文件的逻辑支持 (3bb4a92)
  • plugin-generator: 优化生成的项目模板代码,移除无用的换行和空格 (2e4e6af)
  • plugin-generator: 完善生成器使用体验,替换报错为 prompts 选择 (f3b955a)
  • runtime-web: map 组件限制缩放级别范围 (#83) (aedf820)

1.0.68 (2023-07-14)

Bug Fixes

  • core: 修复 invokeHook 参数 hookName 的类型报错 (#78) (3e1cfcb)

Features

  • plugin-compiler: 新增多端组件构建模式支持 (#75) (3307838)
  • runtime-base: 新增 hooks 的 pause、resume 方法,用于暂停/恢复部分 hooks 生命周期的执行 (#77) (aa712eb)

1.0.67 (2023-07-13)

Bug Fixes

  • runtime-web: 解决 swiper item 数据更新异常以及单个 swiper-item 场景无需 autoplay 的问题 (#74) (5c40253)

Features

  • runtime-web: 地图组件支持自定义样式 (#76) (78e92a3)

1.0.66 (2023-07-10)

Bug Fixes

  • runtime-web: 修复地图组件 relative 布局错位问题 (#72) (598863b)

1.0.65 (2023-07-07)

Features

  • runtime-web: caniuse 函数增加部分能力判断 (#71) (a45cd02)

1.0.64 (2023-07-04)

Features

  • plugin-compiler: 优化分包和插件编译的 getApp 注入逻辑,避免在支付宝小程序上的 externals 生效问题 (#70) (be79063)

1.0.63 (2023-07-04)

Bug Fixes

  • plugin-compiler-web: 修复转 Web 小程序组件库的产物加载入口和文档不一致的问题 (584809f)

1.0.62 (2023-07-03)

Features

  • runtime-web: 元素获取适配 & 配置读取优先级调整 (#68) (0f4381d)

1.0.61 (2023-06-28)

Bug Fixes

  • plugin-compiler: 修复异步 require 或 require.async 的参数被跳过解析可能引起运行时报错的问题 (#66) (50f29b7)

1.0.60 (2023-06-25)

Bug Fixes

  • plugin-composer: 修复监听状态下集成编译可能会错误将当前宿主或分包模块产物进行二次编译的问题 (0e846c4)

1.0.59 (2023-06-25)

Bug Fixes

  • plugin-compiler-alipay: 修复 sjs 辅助文件某些情况下可能被注入多次的问题 (7781f72)
  • plugin-compiler-alipay: 优化 sjs 辅助函数注入检查逻辑 (cb9eb35)

1.0.58 (2023-06-21)

Note: Version bump only for package morjs-monorepo

1.0.57 (2023-06-21)

Bug Fixes

  • runtime-web: ios 设备无法正常渲染 2.0 版本地图 (#61) (89be519)

Features

  • plugin-compiler-alipay: 优化 sjs 帮助文件的名称生成逻辑 (30395bb)
  • plugin-compiler-web: 优化 Web 编译的 bundle 文件生成名称 (f07acec)
  • plugin-compiler: 优化编译相关全局文件名称生成逻辑,允许配置后缀名以避免冲突 (aae1dad)
  • plugin-compiler: 完善自定义入口配置文件的解析逻辑,允许指定为非源码目录的文件 (fb7610c)
  • utils: 优化全局集成应用信息的名称生成规则 (fcbc491)
  • utils: 全局文件名称常量方法支持配置后缀用于规避文件冲突 (7d99e50)

1.0.56 (2023-06-20)

Features

  • plugin-compiler: 优化项目配置文件载入逻辑,不需要输出项目配置文件时跳过查找 (a4cda13)
  • runtime-web: 地图重构 & 支持高级定制渲染 (#60) (eda6b66)

1.0.55 (2023-06-13)

Features

  • plugin-compiler-alipay: 完善支付宝转微信 sjs 中 export default function xxx(){} 的转换支持 (f907bb2)
  • plugin-compiler-alipay: 完善支付宝转微信不兼容选择器提示信息 (eacdf5e)
  • plugin-compiler-alipay: 完善支付宝转微信时模版中对部分方法调用的支持 (4780b28)
  • takin: 优化生成器逻辑增加模版解析对 <%_ 或 _%> 或 -%> 的支持 (1982ed6)

1.0.54 (2023-06-09)

Bug Fixes

  • runtime-mini: 修复微信转支付宝小程序后组件在 created 阶段无法从 data 中获取 properties 值的问题 (#58) (07f7ff9)

Features

  • takin: 优化生成器逻辑增加模版解析对 <%_ 或 _%> 或 -%> 的支持 (#57) (e82bb63)

1.0.53 (2023-06-07)

Bug Fixes

  • plugin-mocker: 修复 mock JSAPI 的异步方法获取 ESModule 数据需要使用 .default 的问题 (#55) (7476a47)
  • runtime-base: 修复 qq 等端 request 不执行的问题 (#54) (52fa701)

1.0.52 (2023-06-05)

Bug Fixes

  • core: 修复支付宝 DSL 下 lifetimes 无值可能导致报错的问题 (#51) (644f9b2)
  • plugin-mocker: 修复 windows 下 mock 编译报错的问题 (#50) (6f78eac)

1.0.51 (2023-06-02)

Bug Fixes

  • plugin-compiler-wechat: 修复微信双向绑定在抖音和快手端未正确处理 picker-view 的问题 (ea4b6c9)

Features

  • plugin-compiler-bytedance: 增加字节小程序双向绑定编译能力支持 (6a03f1c)
  • plugin-compiler-kuaishou: 增加快手小程序双向绑定编译能力支持 (53e72ee)
  • plugin-compiler-wechat: 增加微信转其他类似于微信端的双向绑定支持 (74f5b13)
  • runtime-mini: 增加字节小程序及快手小程序运行时双向绑定支持 (653767f)

1.0.50 (2023-05-31)

Features

  • plugin-compiler-bytedance: 新增抖音分包异步化编译支持 (#46) (6e2ede2)

1.0.49 (2023-05-30)

Features

  • plugin-compiler-baidu: 完善微信转百度双向绑定适配以及修复 s-for 指令适配逻辑 (3d15094)

1.0.48 (2023-05-23)

Bug Fixes

  • plugin-generator: 替换脚手架生成的 eslint 配置项,防止 eslint-config-prettier 8.0 所有子包收束到 prettier 后的报错 (#43) (004ce55)
  • runtime-mini: 修改生命周期执行顺序,修复微信 DSL 首次传入 props 未执行 observer 的问题 (#44) (3ee2f9a)

1.0.47 (2023-05-22)

Features

  • runtime-web: fields 调用和 scrollOffset,boundingClientRect 调用隔离 (#42) (f6d23e1)

1.0.46 (2023-05-19)

Features

  • runtime-mini: 对齐最新 lifetimes 的官方功能,优先使用官方提供的 lifetimes 方法,兜底使用 mor 的自实现 (#38) (0044d4a)
  • runtime-web: selectorQuery 方法重构 & 支持 fields 查询 (#41) (902ffb7)

1.0.45 (2023-05-17)

Bug Fixes

  • runtime-web: swiper 默认为 inline 元素导致上下边距异常 (#39) (4b852c1)

Features

  • runtime-web: tabbar 组件之间的切换方法由 navigateTo 切换为 switchTab 行为与小程序保持一致 (b0f29ad)

1.0.44 (2023-05-12)

Bug Fixes

  • plugin-compiler-web: 修复 web 组件转换在生产模式下 js 文件名称错误及内容为空的问题 (7501253)
  • plugin-compiler: 修复 web 编译在生产模式下 css 文件可能未被压缩的问题 (ed509e4)

1.0.43 (2023-05-09)

Bug Fixes

  • runtime-web: 修复 onAppear 在某些特殊场景下可能不执行的问题 (#37) (1413271)

1.0.42 (2023-05-05)

Features

  • plugin-compiler-alipay: 添加对 bind:abc-def 事件写法的支持 (c533d92)
  • runtime-mini: 添加 triggerEvent 方法对 bind:abc-def 的支持 (843435e)

1.0.41 (2023-05-05)

Bug Fixes

  • runtime-web: 修复父元素未完成挂载时尝试获取 DOM 节点及绑定事件可能会导致报错的问题 (#34) (3227eeb)

1.0.40 (2023-04-28)

Features

  • runtime-web: setClipboard 增加 queryCommand 实现方式 & 可以通过配置强切实现方式 (#32) (3b02ed7)

1.0.39 (2023-04-26)

Bug Fixes

  • runtime-mini: 修复判断 relations 和 externalClasses 参数错误 (c176e94)

Features

  • runtime-mini: 增加微信转支付宝外部样式类支持 (d9202e6)

1.0.38 (2023-04-26)

Bug Fixes

  • plugin-compiler-alipay: 修复微信转支付宝对分包配置的兼容 (17eb4da)

1.0.37 (2023-04-26)

Features

  • runtime-mini: 完善 selectComponent、selectAllComponents、selectOwnerComponent 组件或页面示例方法支持 (dd809eb)
  • runtime-mini: 增加微信转支付宝 relations 支持 (66f8dc0)

1.0.36 (2023-04-26)

Bug Fixes

  • plugin-compiler: 修复模版解析器处理多端编译时 attrName 可能无值导致逻辑错误的问题 (920249f)
  • runtime-mini: 优化属性监听器执行时机,仅在变更时执行 (3d0348c)

Features

  • plugin-compiler-alipay: 完善微信转支付宝的转端兼容性:处理支付宝不支持 sjs 模块名称为 this 及 组件名称不支持大写的问题 (b6aa409)
  • plugin-compiler: 完善 processNodeModules 对组件库的解析逻辑支持 (2b33ef1)

1.0.35 (2023-04-26)

Bug Fixes

  • runtime-mini: 修复微信转支付宝的 observer 触发多个 props 问题 (#27) (8e9b528)

Features

  • runtime-mini: 优化 observers 在支付宝端的兼容支持 (b610e3f)

1.0.34 (2023-04-25)

Bug Fixes

  • runtime-base: 修复同步接口抹平结果修改未被正确触发的问题 (8173706)

Features

  • plugin-compiler: 优化 processNodeModules 配置开启后对组件库的转端编译支持 (fcacc95)

1.0.33 (2023-04-25)

Bug Fixes

  • plugin-compiler-web: 修复 runtime-web chunk 未抽取为单独的文件的问题 (330eb5c)
  • plugin-compiler-web: 修复微信 DSL 转 Web 可能会找不到 sjs 文件的问题 (fc77d21)
  • plugin-compiler: 修复运行时自动注入可能会导致转 Web 运行时加载时机错误的问题 (aad48e9)
  • runtime-web: 提供 my.SDKVersion 支持 (ba333b3)

Features

  • runtime-mini: 增加微信转支付宝的 getSystemInfo、getSystemInfoSync、getSystemInfoAsync 等接口抹平支持 (431f7e9)
  • runtime-web: getSystemInfo 接口补充 SDKVersion 版本信息 (037eaef)

1.0.32 (2023-04-21)

Bug Fixes

  • plugin-compiler: 修复全局组件注入可能不生效的问题 (3fda777)
  • plugin-compiler: 修复提取内联 sjs 内容时文件后缀错误以及未执行 sjsParser 的问题 (3fb9971)

1.0.31 (2023-04-21)

Bug Fixes

  • plugin-compiler: 修复样式文件如果传入 null 或 undefined 会导致 postcss 报错的问题 (0d0ce21)
  • utils: 升级 sass 版本为 1.60.0 确保对 node 12 的支持 (4e3928e)

1.0.30 (2023-04-21)

Bug Fixes

  • plugin-compiler: 修复 getApp 在分包和插件场景下注入时 export default 导致无法被 commonjs 规范的文件正确引用的问题 (f47a2c5)

Features

  • plugin-compiler: 新增编译时自动检测运行时入口函数和 sourceType 类型是否匹配 (#22) (1096bad)

1.0.29 (2023-04-20)

Bug Fixes

  • plugin-composer: 修复不同配置的集成结果文件 compose-results.json 会相互覆盖的问题 (fb91ac7)

1.0.28 (2023-04-20)

Features

  • cli: 对外暴露 generateComposeModuleHash 方法方便定制集成能力 (993d66f)

1.0.27 (2023-04-19)

Bug Fixes

Features

  • 添加蓝牙转换方法 (fd6fcc4)
  • example: 添加蓝牙转换用例 (cd87efe)
  • plugin-composer: 完善集成临时文件存储逻辑,基于配置名称区分,避免多配置模式下集成缓存冲突 (cbefb55)
  • runtime-mini: 支付宝&微信蓝牙方法交叉兼容 (20251dc)
  • runtime-mini: openBluetoothAdapter 返回值兼容 (f38c46e)
  • utils: 提供通用 execCommands 方法便于执行脚本及错误处理 (36dfc64)

Performance Improvements

1.0.26 (2023-04-18)

Bug Fixes

  • plugin-compiler: 修复开启 processNodeModules 时错误将 runtime-base 中的接口转端从而引发报错的问题 (f7fd9db)
  • plugin-generator: 修改 morjs 依赖为 * 以处理无 beta 版本引发的 install 报错 (#21) (ff997b4)

Features

  • runtime-web: 修复转 Web 页面相对路径跳转支持 (#20) (c82b30d)

1.0.25 (2023-04-18)

Bug Fixes

  • plugin-generator: 修复初始化脚手架时可能缺少 .gitignore 文件的问题 (d4ae47c)

Features

  • plugin-generator: create-mor 用户 git 信息改成非必选, 不做输入的校验 (#15) (fd26ef5)
  • plugin-generator: create-morjs 项目初始化后根据用户输入更新 package.json 的名称和描述 (#16) (abc41f6)

1.0.24 (2023-04-17)

Bug Fixes

  • plugin-generator: 修复 create-mor 在当前目录项目初始化完成提示 (#14) (21c6df3)

1.0.23 (2023-04-14)

Note: Version bump only for package morjs-monorepo

1.0.22 (2023-04-13)

Bug Fixes

  • runtime-mini: 修复微信转支付宝部分 Api 无法调用的问题 (#12) (b824c33)

1.0.21 (2023-04-13)

Bug Fixes

  • runtime-mini: 修复支付宝转其他端时 created 生命周期未触发的问题 (d03262c)

1.0.20 (2023-04-11)

Features

  • plugin-compiler-alipay: 补充部分支付宝原生组件事件配置 (b1b7f76)
  • plugin-compiler-alipay: 完善支付宝 DSL 的模版字符串和样式对象支持 (c748f83)

1.0.19 (2023-03-31)

Bug Fixes

  • takin: 修复敏感日志过滤导致原对象或 Map 被修改的问题 (f5210ba)

Features

  • plugin-composer: 优化模块集成脚本变化判断逻辑,避免错误判断导致脚本重复执行 (b4c08fd)

1.0.18 (2023-03-31)

Features

  • plugin-compiler: 优化幽灵依赖和自动注入功能兼容性 (e5f97e3)

1.0.17 (2023-03-30)

Note: Version bump only for package morjs-monorepo

1.0.16 (2023-03-29)

Features

  • plugin-compiler: 添加幽灵依赖检测功能 (#7) (9899827)
  • runtime-mini: 修复微信转支付宝 data 更新未触发 observers 的问题 (#9) (8b8ac97)

1.0.15 (2023-03-28)

Bug Fixes

  • plugin-compiler: 修复开启 importHelpers 可能失败的问题 (56a662e)

1.0.14 (2023-03-28)

Features

  • plugin-compiler: 完善小程序转端运行时自动注入逻辑和兜底检查支持 (433d43c)

1.0.13 (2023-03-28)

Bug Fixes

  • runtime-web: 修复 switchTab 无法关闭之前打开的页面 (#8) (ed5e632)

1.0.12 (2023-03-28)

Features

  • plugin-compiler: 完善 transform 编译支持以及允许通过 customEntries 添加额外需要编译的页面或组件 (82fecc5)
  • plugin-compiler: consumes 和 shared 配置增加别名配置支持 (fb955ad)

1.0.11 (2023-03-24)

Bug Fixes

  • core: 完善 invokeHook 方法兜底检查,找不到 hook 时打印错误日志,不直接抛错 (f9f361b)

1.0.10 (2023-03-20)

Bug Fixes

  • plugin-compiler: 修复 esm 版本的运行时无法被正确注入小程序转端能力支持的问题 (b97071d)
  • runtime-web: 修复 hidden 使用 important 修饰符导致业务对元素布局方式修改失效以及 selectQuery 结果遍历支持 (ef0cd46)

1.0.9 (2023-03-17)

Bug Fixes

  • cli: 修复配置变更自动重启可能会触发多次的问题 (444d453)
  • plugin-compiler-web: 修复 @babel/runtime 依赖缺失 (93b478f)
  • plugin-compiler: 修复由于 peerDependencies 导致的 webpack 多实例问题 (#4) (323b70b)

1.0.8 (2023-03-15)

Bug Fixes

  • plugin-compiler: fix case where alias is an empty object (#5) (f1fec85)

1.0.7 (2023-03-10)

Bug Fixes

  • plugin-compiler: 修复同一个项目中混用支付宝或微信 DSL 可能会导致样式冲突的问题 (4f0577a)

1.0.6 (2023-03-10)

Bug Fixes

  • runtime-mini: replace @morjs/api with @morjs/runtime-base to avoid cycle references (84b4a0c)

1.0.5 (2023-03-10)

Features

  • plugin-compiler-web: .json 文件支持条件编译 (#3) (d717375)

1.0.4 (2023-03-09)

Bug Fixes

  • core: fix wechat npm build support (32af3e2)
  • runtime-mini: fix wechat npm build support (096fb7c)

1.0.3 (2023-03-07)

Bug Fixes

  • plugin-compiler: 修复错误将 npm 组件中样式文件作为普通样式文件解析的问题 (de6935e)

1.0.2 (2023-03-06)

Bug Fixes

  • plugin-compiler: transform 编译模式下允许找不到 npm 中的多端组件 (4cef590)

1.0.1 (2023-02-27)

Bug Fixes

  • plugin-compiler: 修复 getApp 注入逻辑中 getLaunchOptionsSync 可能不是一个函数的问题 (d2a3ef9)

Features

  • plugin-composer: 增加 --target, --compile-type, --output-path 命令行选项支持 (4fc9e0a)

1.0.0 (2023-02-22)

Note: Version bump only for package morjs-monorepo