New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

okam-core

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

okam-core - npm Package Versions

1
6

0.4.7

Diff

Changelog

Source

okam-core@0.4.7

  • Bug修复

    • 修复 behavior 扩展设置 useNativeBehavior: false 出错问题 (a971f4a)
  • 新功能

    • 增加快应用对于 mixin broadcast ref watch filter 支持 (a971f4a)
    • behavior 扩展支持自定义要使用 okam 实现特殊 mixin 的属性,基于 mixinAttrs 配置,同时也支持覆盖重写默认要特殊 mixin 属性。此外,也支持自定义要跟生命周期钩子一样 mixin 策略的方法属性,比如 onShow,基于 mixinHooks 配置,同时也支持覆盖重写默认要特殊 mixin 的钩子 (a971f4a)
    • broadcast 扩展新增上下文属性 $eventHub,用于取代目前封装的 $broadcast 相关 API,建议后续使用广播扩展,都通过 $eventHub 来实现,该属性暴露出了 on off emit 等事件操作 API。之所以引入该属性,考虑到广播监听移除由开发者自行控制会合适些,其次快应用平台存在 $broadcast API 会冲突,且其含义跟扩展完全不同 (a971f4a)
  • 优化

    • 优化 mixin (behavior) 扩展支持,默认所有 okam 的生命周期钩子都统一由 okam 完成 mixin (之前的 created 原生钩子由原生 behavior 实现),默认所有特殊属性 data props computed methods 都统一由 okam 完成 mixin (之前只有 data props methods 由原生 behavior 实现),这样调整确保了所有平台的 mixin 策略一致性,而不依赖原生实现。 (a971f4a)
    • 优化组件创建工厂兼容快应用平台,对于快应用使用全局对象缓存安装的扩展 (a971f4a)
    • 优化组件 props 的规范化,允许传入 {myProp: [String, Number]} 多类型场景及其它附加配置 {myProp: {type: String, validator() {}}} ( validator 会被保留),至于原生是否支持包括跨平台支持,需要开发者自行选择判断 (a971f4a)
wuhuiyao
published 0.4.6 •

Changelog

Source

okam-core@0.4.6

  • 新功能

    • 增加 okam-core 对外暴露 API,及新增 platform 相关 API,移除自动初始化平台信息逻辑 (5a8e862)
  • 优化

    • 移除 $api.okam 里定义的 platform 扩展 API,改成通过全局 API 方式暴露 (67185c3)
wuhuiyao
published 0.4.5 •

Changelog

Source

okam-build@0.4.5

  • Bug修复

    • 修复 px2rpx 设置 precision 无效 (fdbad10)
    • 修复模板的 class 绑定的对象定义换行转换失败问题 (6c035ae)
    • 修复入口脚本的 globalData 存在 config 导致 App 的 config 配置丢失 #20 (afd943e)
  • 新功能

    • 增加对 百度小程序 原生 filter微信小程序 wxs 脚本支持 (e3a0e95)
  • 优化

    • 优化构建异步任务,对于图片处理失败依旧正常输出图片文件 #19 (82a01ed)

2018-12-16

wuhuiyao
published 0.4.4 •

Changelog

Source

okam-core@0.4.4

  • Bug修复

    • 修复 微信小程序 下引入 contact 插件 导致 数组 类型数据修改比如 push 不更新问题 (3dd5d4b)
  • 优化

    • appGlobal 对象初始化 (5e9c0cf)
xhong
published 0.4.3 •

Changelog

Source

okam-core@0.4.3

  • Bug修复

    • 修复对象类型数组 splice 赋值操作不更新问题 (8b7745d)
  • 优化

    • 优化兼容小程序 Function 不支持情况 (01f3290)
xhong
published 0.3.5 •

Changelog

Source

okam-core@0.3.5

  • 优化
    • 优化兼容小程序 Function 不支持情况 (48a1612)

2018-12-24

wuhuiyao
published 0.4.2 •

Changelog

Source

okam-core@0.4.2

  • 优化
    • 优化数组 slice API 操作,对于 splice(idx, 1, newValue) 操作转成数组索引赋值操作 (6f30d48)
wuhuiyao
published 0.4.1 •

Changelog

Source

okam-core@0.4.1

  • Bug修复

    • 修复自定义组件 $emit 的事件详情数据为空变成空对象问题,改成保留原始的事件详情数据 (c5a55cb)
    • 修复内部方法错误显示 warning 信息 (15f32a2)
    • 修复 $nextTick 嵌套情况下,没有触发嵌套的数据修改的 $nextTick 回调 (bcb2d32)
  • 优化

    • 移除组件 $selector 属性,ref 扩展现在对于引用非自定义组件不再使用 createSelectorQuery 查询节点作为 fallback,即 ref 模板属性只能引用自定义组件,页面组件新增 createSelectorAPI 以对齐原生自定义组件提供的 createSelectorQuery API (007410e)
    • 优化模板事件代理新增的模板数据属性名称长度 (8d44206)
wuhuiyao
published 0.4.0 •

Changelog

Source

okam-core@0.4.0

  • Bug修复

    • 修复微信小程序的 canvas 组件的事件参数对象没有 currentTarget 属性导致事件监听报错问题。(4e93787)
  • 优化

    • 重构 ref 实现,原先基于 id 查询引用组件改成基于 class 避免跟开发者定义 id 冲突 (86480a5)
wuhuiyao
published 0.3.4 •

Changelog

Source

okam-core@0.3.4

  • Bug修复
    • 修复百度小程序从 swan-core 1.12 开始会自动对自定义组件事件参数对象自动加一层包裹以对齐 微信小程序,即原先事件参数 {counter: 2} 会变成 {type: 'counterChange', detail: {counter: 2}, counter: 2, currentTarget: {}, target: {}},如果碰巧你的事件参数包括 detail 信息,比如 {detail: {c: 2}} ,会导致变成 {type: 'counterChange', detail: {detail: {c: 2}}, currentTarget: {}, target: {}} 无法兼容原先代码。(a47c63d)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc