@mpxjs/core 2.7.16 → 2.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/core",
3
- "version": "2.7.16",
3
+ "version": "2.7.18",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -41,5 +41,5 @@
41
41
  "url": "https://github.com/didi/mpx/issues"
42
42
  },
43
43
  "sideEffects": false,
44
- "gitHead": "7a2b5ae385cbd035172ec11bc0bfba84eff10243"
44
+ "gitHead": "5cca51d77d97143319c895dab301ef9a789ce40f"
45
45
  }
package/src/index.js CHANGED
@@ -104,13 +104,6 @@ if (__mpx_mode__ === 'web') {
104
104
  watch = vm.$watch.bind(vm)
105
105
  const set = Vue.set.bind(Vue)
106
106
  const del = Vue.delete.bind(Vue)
107
- const remove = function (...args) {
108
- if (process.env.NODE_ENV !== 'production') {
109
- error('$remove will be removed in next minor version, please use $delete instead!', this.$rawOptions && this.$rawOptions.mpxFileResource)
110
- }
111
- return del.apply(this, args)
112
- }
113
- // todo 补齐web必要api
114
107
  APIs = {
115
108
  createApp,
116
109
  createPage,
@@ -124,15 +117,10 @@ if (__mpx_mode__ === 'web') {
124
117
  watch,
125
118
  use,
126
119
  set,
127
- remove,
128
120
  delete: del,
129
121
  getMixin,
130
122
  implement
131
123
  }
132
-
133
- InstanceAPIs = {
134
- $remove: remove
135
- }
136
124
  } else {
137
125
  observable = function (obj) {
138
126
  observe(obj)
@@ -140,18 +128,10 @@ if (__mpx_mode__ === 'web') {
140
128
  }
141
129
 
142
130
  const vm = {}
143
-
144
131
  watch = function (expOrFn, cb, options) {
145
132
  return watchWithVm(vm, expOrFn, cb, options)
146
133
  }
147
134
 
148
- const remove = function (...args) {
149
- if (process.env.NODE_ENV !== 'production') {
150
- error('$remove will be removed in next minor version, please use $delete instead!', this.$rawOptions && this.$rawOptions.mpxFileResource)
151
- }
152
- return del.apply(this, args)
153
- }
154
-
155
135
  APIs = {
156
136
  createApp,
157
137
  createPage,
@@ -165,7 +145,6 @@ if (__mpx_mode__ === 'web') {
165
145
  watch,
166
146
  use,
167
147
  set,
168
- remove,
169
148
  delete: del,
170
149
  getMixin,
171
150
  implement
@@ -173,7 +152,6 @@ if (__mpx_mode__ === 'web') {
173
152
 
174
153
  InstanceAPIs = {
175
154
  $set: set,
176
- $remove: remove,
177
155
  $delete: del
178
156
  }
179
157
  }