chore(deps): update dependency miniprogram-api-typings to v4 #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.12.3
->^4.0.0
Release Notes
wechat-miniprogram/api-typings (miniprogram-api-typings)
v4.0.1
v4.0.0
Compare Source
合入 #332, #333, #334 by @lvzl。这几个 Pull Request 对
Component
和Behavior
的实现进行了较大改动,以支持:Array
和Object
类型的property
和data
,以值的实际类型作为泛型推导的结果,而非固定推导为any[]
和Record<string, any>
;BehaviorIdentifier
的类型,通过为其交叉一个带有Behavior
定义信息的虚假类型,使Component
和Behavior
能自动推导其使用到的Behavior
的data
,properties
及methods
;这是一个比较大的 破坏性改动,从低于 4.0.0 的版本升级时,可能需要进行一些适配:
Component
和Behavior
的第四个泛型现在是新的TBehavior
,如果之前的代码中有为这两个函数手动指定泛型的用例,需要手动添加这个泛型;Behavior()
的返回值不再是string
(或者说不完全是),之前使用string
接受Behavior()
返回值的实现需要修改为WechatMiniprogram.Behavior.BehaviorIdentifier
;this.data
和this.property
的推导类型可能会有所变化,需要根据推导类型进行响应改动。Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - "before 4am on the first day of the month" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.