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

miniprogram-api-typings

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniprogram-api-typings - npm Package Compare versions

Comparing version

to
2.9.3

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 2019-12-06 v2.9.3
- 同步 API 定义到基础库 2.9.3
- 补齐 `Component` 纯数据字段(`pureDataPattern`)
- 支持 `Component` 的属性监听器使用 `string` 类型
## 2019-11-14 v2.9.2

@@ -2,0 +7,0 @@ - 同步 API 定义到基础库 2.9.2

4

package.json
{
"name": "miniprogram-api-typings",
"version": "2.9.2",
"version": "2.9.3",
"description": "Type definitions for APIs of Wechat Mini Program in TypeScript",

@@ -24,3 +24,3 @@ "main": "./index.d.ts",

"devDependencies": {
"tsd": "^0.9.0",
"tsd": "^0.11.0",
"tslint": "^5.20.0",

@@ -27,0 +27,0 @@ "typescript": "^3.5.3"

@@ -97,7 +97,9 @@ /*! *****************************************************************************

/** 属性值被更改时的响应函数 */
observer?(
newVal: ValueType<T>,
oldVal: ValueType<T>,
changedPath: Array<string | number>,
): void
observer?:
| string
| ((
newVal: ValueType<T>,
oldVal: ValueType<T>,
changedPath: Array<string | number>,
) => void)
/** 属性的类型(可以指定多个) */

@@ -210,2 +212,6 @@ optionalTypes?: ShortProperty[]

| 'page-shared'
/**
* [纯数据字段](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/pure-data.html) 是一些不用于界面渲染的 data 字段,可以用于提升页面更新性能。从小程序基础库版本 2.8.2 开始支持。
*/
pureDataPattern?: RegExp
}

@@ -212,0 +218,0 @@

@@ -5,2 +5,3 @@ ## 所有可用版本

-|-|-
[v2.9.3](https://developers.weixin.qq.com/miniprogram/dev/framework/release/) | [2.9.3](https://www.npmjs.com/package/miniprogram-api-typings/v/2.9.3) | `npm install miniprogram-api-typings@2.9.3`
[v2.9.2](https://developers.weixin.qq.com/miniprogram/dev/framework/release/#v2-9-2-2019-11-04) | [2.9.2](https://www.npmjs.com/package/miniprogram-api-typings/v/2.9.2) | `npm install miniprogram-api-typings@2.9.2`

@@ -7,0 +8,0 @@ [v2.9.1](https://developers.weixin.qq.com/miniprogram/dev/framework/release/#v2-9-1-2019-10-29) | [2.9.1](https://www.npmjs.com/package/miniprogram-api-typings/v/2.9.1) | `npm install miniprogram-api-typings@2.9.1`

Sorry, the diff of this file is too big to display